summaryrefslogtreecommitdiff
path: root/community/redis/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
committerroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
commit7a65a910b77ad191d69881098c47f9b0c852d92e (patch)
tree9564e611af1442f8952a8cbddb3b0ad25ed71aab /community/redis/PKGBUILD
parent60da6abff6c9577a783d72865f11de7a585e912e (diff)
Tue Aug 13 01:31:08 PDT 2013
Diffstat (limited to 'community/redis/PKGBUILD')
-rw-r--r--community/redis/PKGBUILD49
1 files changed, 49 insertions, 0 deletions
diff --git a/community/redis/PKGBUILD b/community/redis/PKGBUILD
new file mode 100644
index 000000000..34b769bce
--- /dev/null
+++ b/community/redis/PKGBUILD
@@ -0,0 +1,49 @@
+# $Id: PKGBUILD 95069 2013-08-05 10:49:57Z 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.14
+pkgrel=2
+pkgdesc="Advanced key-value store"
+arch=('i686' 'x86_64')
+url="http://redis.io/"
+license=('BSD')
+depends=('bash')
+makedepends=('gcc>=3.1' 'make' 'pkgconfig')
+backup=("etc/redis.conf"
+ "etc/logrotate.d/redis")
+install=redis.install
+source=("http://redis.googlecode.com/files/${pkgname}-${pkgver}.tar.gz"
+ "redis.service"
+ "redis.logrotate"
+ "redis.tmpfiles.d")
+md5sums=('02e0c06e953413017ff64862953e2756'
+ '5320aa6d0f31aadc1d6202ca40425aea'
+ '9e2d75b7a9dc421122d673fe520ef17f'
+ 'dd9ab8022b4d963b2e5899170dfff490')
+
+prepare() {
+ cd "$srcdir/${pkgname}-${pkgver}"
+ sed -i 's|# bind 127.0.0.1|bind 127.0.0.1|' redis.conf
+ sed -i 's|pidfile .*|pidfile /run/redis/redis.pid|' redis.conf
+}
+
+build() {
+ cd "$srcdir/${pkgname}-${pkgver}"
+ make MALLOC=libc
+}
+
+package() {
+ cd "$srcdir/${pkgname}-${pkgver}"
+ 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 -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/redis.tmpfiles.d" "$pkgdir/usr/lib/tmpfiles.d/redis.conf"
+}