void-packages/srcpkgs/redis/template
2014-09-01 22:12:00 +02:00

43 lines
1.1 KiB
Plaintext

# Template file for 'redis'
pkgname=redis
version=2.8.14
revision=1
homepage="http://redis.io"
distfiles="http://download.redis.io/releases/${pkgname}-${version}.tar.gz"
short_desc="advanced key-value store"
maintainer="Enno Boland <eb@s01.de>"
license="BSD"
checksum=593e4a882f81913373923389a8d49b39f230d69c9a1be50f883cdbecf7381763
system_accounts="redis"
redis_homedir="/var/lib/redis"
conf_files="/etc/redis/redis.conf"
nocross=yes
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 \
-e "s|^# bind 127.0.0.1|bind 127.0.0.1|" \
-e "s|^dir .*|dir ${redis_homedir}|" \
-e "s|^pidfile .*|pidfile /run/redis/redis.pid|" redis.conf
}
do_build() {
make CC=$CC CFLAGS="$CFLAGS" ${makejobs}
}
do_install() {
make INSTALL_BIN="${DESTDIR}/usr/bin" PREFIX=/usr install
vlicense COPYING
vinstall "redis.conf" 644 "etc/redis"
if [ "$build_option_systemd" ]; then
vinstall "${FILESDIR}/redis.service" 644 "usr/lib/systemd/system"
fi
}