From 145da884401f28afe441883abdf8f0cd8c165d2d Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Thu, 21 Aug 2014 07:36:15 +0200 Subject: [PATCH] redis: added systemd build option. --- srcpkgs/redis/template | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/srcpkgs/redis/template b/srcpkgs/redis/template index 0af8eac11e..363e094d99 100644 --- a/srcpkgs/redis/template +++ b/srcpkgs/redis/template @@ -8,7 +8,6 @@ short_desc="advanced key-value store" maintainer="Enno Boland " license="BSD" checksum=b87bc83d13b9bf1f20d41a0efd06eda78b80002e013566d8b69c332e0cbccb08 -systemd_services="redis.service on" system_accounts="redis" redis_homedir="/var/lib/redis" conf_files="/etc/redis/redis.conf" @@ -16,6 +15,10 @@ only_for_archs="x86_64 i686" make_dirs=" /var/lib/redis 0700 redis redis /run/redis 0750 redis redis" +build_options="systemd" +if [ "$build_option_systemd" ]; then + systemd_services="redis.service on" +fi do_configure() { sed -i \ @@ -33,5 +36,7 @@ do_install() { vlicense COPYING vinstall "redis.conf" 644 "etc/redis" - vinstall "${FILESDIR}/redis.service" 644 "usr/lib/systemd/system" + if [ "$build_option_systemd" ]; then + vinstall "${FILESDIR}/redis.service" 644 "usr/lib/systemd/system" + fi }