summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2015-02-27 17:24:48 (GMT)
committerSam Thursfield <sam.thursfield@codethink.co.uk>2015-02-27 17:24:55 (GMT)
commit7d9f8ffb86efb9cb2f005e4c2e67dbb744bb9ec2 (patch)
tree532d02a686a74486e30c46f1d331cd076bc40929
parent0af72d076f2c20a724436581622cdf2d7e6d9bda (diff)
parentfe0fd2a9b64cf9c4ce28619f689b2a3ed6a87907 (diff)
downloaddefinitions-7d9f8ffb86efb9cb2f005e4c2e67dbb744bb9ec2.tar.gz
Merge branch 'pdar/integrate-swift-v3'
Reviewed-By: Jim MacArthur <jim.macarthur@codethink.co.uk> Reviewed-By: Francisco Redondo Marchena <francisco.marchena@codethink.co.uk> Reviewed-By: Sam Thursfield <sam.thursfield@codethink.co.uk>
-rw-r--r--strata/databases/memcached.morph13
-rw-r--r--strata/tools/rsync.morph3
2 files changed, 16 insertions, 0 deletions
diff --git a/strata/databases/memcached.morph b/strata/databases/memcached.morph
index 28e0136..5d55b72 100644
--- a/strata/databases/memcached.morph
+++ b/strata/databases/memcached.morph
@@ -6,3 +6,16 @@ configure-commands:
- touch README
- autoreconf -fvi
- ./configure --prefix="$PREFIX"
+install-commands:
+- make install
+- install -D -m 755 scripts/memcached.service "$DESTDIR"/etc/systemd/system/memcached.service
+post-install-commands:
+- mkdir -p "$DESTDIR"/etc/sysconfig
+- |
+ cat <<EOF > "$DESTDIR"/etc/sysconfig/memcached
+ PORT="11211"
+ USER="nobody"
+ MAXCONN="1024"
+ CACHESIZE="64"
+ OPTIONS=""
+ EOF
diff --git a/strata/tools/rsync.morph b/strata/tools/rsync.morph
index 9a92878..7b99bdd 100644
--- a/strata/tools/rsync.morph
+++ b/strata/tools/rsync.morph
@@ -4,3 +4,6 @@ build-system: autotools
build-commands:
- make proto
- make
+install-commands:
+- make install
+- install -D -m 755 packaging/systemd/rsync.service "$DESTDIR"/etc/systemd/system/rsync.service