2014-03-11 19:47:09 +01:00
|
|
|
# Template file for 'redis'
|
|
|
|
pkgname=redis
|
2014-12-17 00:39:26 +01:00
|
|
|
version=2.8.19
|
2014-12-05 07:51:15 +01:00
|
|
|
revision=1
|
2014-09-24 10:56:19 +02:00
|
|
|
makedepends="jemalloc-devel"
|
2014-03-11 19:47:09 +01:00
|
|
|
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-12-17 00:39:26 +01:00
|
|
|
checksum=29bb08abfc3d392b2f0c3e7f48ec46dd09ab1023f9a5575fc2a93546f4ca5145
|
2014-03-11 19:47:09 +01:00
|
|
|
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"
|
2014-08-21 07:36:15 +02:00
|
|
|
build_options="systemd"
|
|
|
|
if [ "$build_option_systemd" ]; then
|
|
|
|
systemd_services="redis.service on"
|
|
|
|
fi
|
2014-03-11 19:47:09 +01:00
|
|
|
|
|
|
|
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() {
|
2014-07-18 11:43:33 +02:00
|
|
|
make CC=$CC CFLAGS="$CFLAGS" ${makejobs}
|
2014-03-11 19:47:09 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
|
|
|
make INSTALL_BIN="${DESTDIR}/usr/bin" PREFIX=/usr install
|
2014-07-18 11:43:33 +02:00
|
|
|
vlicense COPYING
|
2014-03-11 19:47:09 +01:00
|
|
|
|
|
|
|
vinstall "redis.conf" 644 "etc/redis"
|
2014-08-21 07:36:15 +02:00
|
|
|
if [ "$build_option_systemd" ]; then
|
|
|
|
vinstall "${FILESDIR}/redis.service" 644 "usr/lib/systemd/system"
|
|
|
|
fi
|
2014-10-13 11:27:38 +02:00
|
|
|
|
|
|
|
vsv redis
|
2014-03-11 19:47:09 +01:00
|
|
|
}
|