void-packages/srcpkgs/redis/template
Enno Boland dae11ee3db redis: checksum has changed.
The uncompressed tar has the same checksum though.
2016-03-03 07:56:54 +01:00

32 lines
836 B
Bash

# Template file for 'redis'
pkgname=redis
version=3.0.7
revision=1
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 <gottox@voidlinux.eu>"
license="BSD"
checksum=b2a791c4ea3bb7268795c45c6321ea5abcc24457178373e6a6e3be6372737f23
system_accounts="redis"
redis_homedir="/var/lib/redis"
conf_files="/etc/redis/redis.conf"
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
}