summaryrefslogtreecommitdiff
path: root/community/redis/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/redis/PKGBUILD')
-rw-r--r--community/redis/PKGBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/community/redis/PKGBUILD b/community/redis/PKGBUILD
new file mode 100644
index 000000000..2f90659f0
--- /dev/null
+++ b/community/redis/PKGBUILD
@@ -0,0 +1,35 @@
+# $Id: PKGBUILD 41768 2011-03-08 20:19:06Z 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.2.2
+pkgrel=1
+pkgdesc="Advanced key-value store"
+arch=('i686' 'x86_64')
+url="http://code.google.com/p/redis"
+license=('BSD')
+depends=('bash')
+makedepends=('gcc>=3.1' 'make' 'pkgconfig')
+backup=("etc/redis.conf"
+ "etc/logrotate.d/redis")
+source=("http://redis.googlecode.com/files/${pkgname}-${pkgver}.tar.gz"
+ "redis.d"
+ "redis.logrotate")
+md5sums=('1c5b0d961da84a8f9b44a328b438549e'
+ 'bf61968d18d0e42529880f5c488ea9ed'
+ '9e2d75b7a9dc421122d673fe520ef17f')
+
+build() {
+ cd "$srcdir/${pkgname}-${pkgver}"
+ CFLAGS="$CFLAGS -std=c99" make
+ 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 -D -m755 "$srcdir/redis.d" "$pkgdir/etc/rc.d/redis"
+ 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"
+}