void-packages/srcpkgs/redis/template

38 lines
1,003 B
Text
Raw Normal View History

2014-03-11 18:47:09 +00:00
# Template file for 'redis'
pkgname=redis
2014-06-24 20:08:53 +00:00
version=2.8.12
2014-03-11 18:47:09 +00:00
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"
2014-06-24 20:08:53 +00:00
checksum=9f9077c6b8f8b54f2d2269aab37e2080f6d88c4e90a75b610ed65681611f314d
2014-03-11 18:47:09 +00:00
systemd_services="redis.service on"
system_accounts="redis"
redis_homedir="/var/lib/redis"
conf_files="/etc/redis/redis.conf"
2014-04-23 09:39:51 +00:00
only_for_archs="x86_64 i686"
2014-03-11 18:47:09 +00:00
make_dirs="
/var/lib/redis 0700 redis redis
/run/redis 0750 redis redis"
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
}
do_install() {
make INSTALL_BIN="${DESTDIR}/usr/bin" PREFIX=/usr install
vinstall COPYING 644 "usr/share/licenses/redis"
vinstall "redis.conf" 644 "etc/redis"
vinstall "${FILESDIR}/redis.service" 644 "usr/lib/systemd/system"
}