# Template file for 'redis' pkgname=redis version=2.8.9 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 " license="BSD" checksum=7834c37f2ff186c46aef8e4a066dfbf1d6772a285aa31c19c58162f264f1007f systemd_services="redis.service on" system_accounts="redis" redis_homedir="/var/lib/redis" conf_files="/etc/redis/redis.conf" only_for_archs="x86_64 i686" 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" }