redis: added systemd build option.

This commit is contained in:
Enno Boland 2014-08-21 07:36:15 +02:00
parent 9ac23f1fcf
commit 145da88440

View file

@ -8,7 +8,6 @@ short_desc="advanced key-value store"
maintainer="Enno Boland <eb@s01.de>"
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
}