From 6d2c130a4f1a87223222d31240630da496ebce20 Mon Sep 17 00:00:00 2001 From: Patrick Darley Date: Thu, 19 Feb 2015 11:10:15 +0000 Subject: Install systemd unit provided with rsync --- strata/tools/rsync.morph | 3 +++ 1 file changed, 3 insertions(+) diff --git a/strata/tools/rsync.morph b/strata/tools/rsync.morph index 9a92878d..7b99bdd9 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 -- cgit v1.2.1 From fe0fd2a9b64cf9c4ce28619f689b2a3ed6a87907 Mon Sep 17 00:00:00 2001 From: Patrick Darley Date: Thu, 19 Feb 2015 11:07:41 +0000 Subject: Install the systemd unit included with memcached source and add a default config file where the systemd unit expects --- strata/databases/memcached.morph | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/strata/databases/memcached.morph b/strata/databases/memcached.morph index 28e01362..5d55b727 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 < "$DESTDIR"/etc/sysconfig/memcached + PORT="11211" + USER="nobody" + MAXCONN="1024" + CACHESIZE="64" + OPTIONS="" + EOF -- cgit v1.2.1