void-packages/srcpkgs/redis/template
2015-09-10 15:48:11 +02:00

33 lines
850 B
Bash

# Template file for 'redis'
pkgname=redis
version=3.0.4
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=a35e90ad581925134aa0fc92e969cc825f5cdee8e13c36a87d4d6995316112cf
build_pie=yes
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
}