void-packages/srcpkgs/redis/template
2015-07-01 09:23:14 +02:00

35 lines
907 B
Bash

# Template file for 'redis'
pkgname=redis
version=3.0.2
revision=2
makedepends="jemalloc-devel"
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=93e422c0d584623601f89b956045be158889ebe594478a2c24e1bf218495633f
system_accounts="redis"
redis_homedir="/var/lib/redis"
conf_files="/etc/redis/redis.conf"
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 CFLAGS="$CFLAGS" ${makejobs}
}
do_install() {
make INSTALL_BIN="${DESTDIR}/usr/bin" PREFIX=/usr install
vlicense COPYING
vinstall "redis.conf" 644 "etc/redis"
vsv redis
}