diff options
Diffstat (limited to 'community/redis/PKGBUILD')
-rw-r--r-- | community/redis/PKGBUILD | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/community/redis/PKGBUILD b/community/redis/PKGBUILD index ce1944df0..1683734c9 100644 --- a/community/redis/PKGBUILD +++ b/community/redis/PKGBUILD @@ -1,11 +1,11 @@ -# $Id: PKGBUILD 96458 2013-08-29 15:11:24Z spupykin $ +# $Id: PKGBUILD 97559 2013-09-24 10:30:40Z spupykin $ # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> # Maintainer: Jan-Erik Rediger <badboy at archlinux dot us> # Contributor: nofxx <x@<nick>.com> pkgname=redis pkgver=2.6.16 -pkgrel=1 +pkgrel=2 pkgdesc="Advanced key-value store" arch=('i686' 'x86_64') url="http://redis.io/" @@ -27,12 +27,15 @@ md5sums=('ca1b81bd56fe0c5e2c8ec443a95c908d' prepare() { cd "$srcdir/${pkgname}-${pkgver}" sed -i 's|# bind 127.0.0.1|bind 127.0.0.1|' redis.conf + sed -i 's|daemonize no|daemonize yes|' redis.conf + sed -i 's|dir \./|dir /var/lib/redis/|' redis.conf sed -i 's|pidfile .*|pidfile /run/redis/redis.pid|' redis.conf + sed -i 's|logfile stdout|logfile /var/log/redis.log|' redis.conf } build() { cd "$srcdir/${pkgname}-${pkgver}" - make MALLOC=libc + make } package() { @@ -40,10 +43,9 @@ package() { mkdir -p $pkgdir/usr/bin make INSTALL_BIN="$pkgdir/usr/bin" PREFIX=/usr install - install -D -m755 "$srcdir/${pkgname}-${pkgver}/COPYING" "$pkgdir/usr/share/licenses/redis/COPYING" + install -Dm755 "$srcdir/${pkgname}-${pkgver}/COPYING" "$pkgdir/usr/share/licenses/redis/COPYING" install -Dm644 "$srcdir"/redis.service "$pkgdir"/usr/lib/systemd/system/redis.service install -Dm644 "$srcdir/redis.logrotate" "$pkgdir/etc/logrotate.d/redis" - sed -i 's|daemonize no|daemonize yes|;s|dir \./|dir /var/lib/redis/|;s|logfile stdout|logfile /var/log/redis.log| ' $srcdir/${pkgname}-${pkgver}/redis.conf - install -D -m644 "$srcdir/${pkgname}-${pkgver}/redis.conf" "$pkgdir/etc/redis.conf" + install -Dm644 "$srcdir/${pkgname}-${pkgver}/redis.conf" "$pkgdir/etc/redis.conf" install -Dm644 "$srcdir/redis.tmpfiles.d" "$pkgdir/usr/lib/tmpfiles.d/redis.conf" } |