summaryrefslogtreecommitdiff
path: root/community/redis
diff options
context:
space:
mode:
authorMichał Masłowski <mtjm@mtjm.eu>2013-05-16 16:49:47 +0200
committerMichał Masłowski <mtjm@mtjm.eu>2013-05-16 16:49:47 +0200
commitbc864260b40f40e8f689788c54f6138007764077 (patch)
tree9c9be0d9a53d7e3a03d76276fc4b02dd08b552bf /community/redis
parentb90f83b99150003a2022c3a4bbad90b12eb56b7e (diff)
parent453f3b8b2c568e9babcdc4852772278a39f130c0 (diff)
Merge branch 'master' of ssh://parabolagnulinux.org:1863/home/parabola/abslibre-pre-mips64el
Conflicts: community/bird/PKGBUILD community/drbd/PKGBUILD community/etherape/PKGBUILD community/ext4magic/PKGBUILD community/fcron/PKGBUILD community/fcron/systab.orig community/gnome-panel/PKGBUILD community/libident/PKGBUILD community/libtorrent/PKGBUILD community/linux-tools/PKGBUILD community/linux-tools/usbipd.service community/makedev/PKGBUILD community/minbif/PKGBUILD community/noip/PKGBUILD community/notmuch/PKGBUILD community/pam_pwcheck/PKGBUILD community/pound/PKGBUILD community/preload/PKGBUILD community/python-cchardet/PKGBUILD community/rtorrent/PKGBUILD community/tor/PKGBUILD community/ude/PKGBUILD core/openldap/PKGBUILD core/sysvinit/PKGBUILD extra/cd-discid/PKGBUILD extra/cvs/PKGBUILD extra/epiphany-extensions/PKGBUILD extra/fbset/PKGBUILD extra/fluidsynth/PKGBUILD extra/gtkmm/PKGBUILD extra/gvfs/PKGBUILD extra/kdepim/PKGBUILD extra/libical/PKGBUILD extra/mutt/PKGBUILD extra/netkit-bsd-finger/PKGBUILD extra/ossp/PKGBUILD extra/php/PKGBUILD extra/pidgin/PKGBUILD extra/rtkit/PKGBUILD extra/samba/PKGBUILD extra/totem/PKGBUILD extra/webkitgtk/PKGBUILD libre/liferea-libre/PKGBUILD libre/mplayer-vaapi-libre/PKGBUILD
Diffstat (limited to 'community/redis')
-rw-r--r--community/redis/PKGBUILD7
-rw-r--r--community/redis/redis.d78
2 files changed, 2 insertions, 83 deletions
diff --git a/community/redis/PKGBUILD b/community/redis/PKGBUILD
index e1a879ac5..6d45cce5f 100644
--- a/community/redis/PKGBUILD
+++ b/community/redis/PKGBUILD
@@ -1,11 +1,11 @@
-# $Id: PKGBUILD 89919 2013-05-05 14:50:37Z spupykin $
+# $Id: PKGBUILD 90717 2013-05-13 14:36:35Z 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.13
-pkgrel=1
+pkgrel=2
pkgdesc="Advanced key-value store"
arch=('i686' 'x86_64' 'mips64el')
url="http://redis.io/"
@@ -15,11 +15,9 @@ 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.service"
"redis.logrotate")
md5sums=('c4be422013905c64af18b1ef140de21f'
- '8d843919d9f165e9a47e56cadb4ac2ed'
'5ab9fdb200e15c13b450fda77fa030b6'
'9e2d75b7a9dc421122d673fe520ef17f')
@@ -35,7 +33,6 @@ package() {
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.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
diff --git a/community/redis/redis.d b/community/redis/redis.d
deleted file mode 100644
index e1c79dd2b..000000000
--- a/community/redis/redis.d
+++ /dev/null
@@ -1,78 +0,0 @@
-#!/bin/bash
-
-daemon_name=redis
-
-. /etc/rc.conf
-. /etc/rc.d/functions
-
-REDISPORT=6379
-EXEC=/usr/bin/redis-server
-CLIEXEC=/usr/bin/redis-cli
-PIDFILE=/var/run/redis.pid
-WORKDIR=/var/lib/redis
-CONF="/etc/redis.conf"
-
-# Check if process exists
-PID=$(cat $PIDFILE 2>/dev/null)
-[ -d /proc/${PID} ] || rm -f $PIDFILE
-
-# Grab the server password, if exists
-REDISPASS=`egrep -o '^requirepass ([^#]+)' $CONF | cut -d\ -f 2`
-[ -n "$REDISPASS" ] && CLIEXEC="$CLIEXEC -a $REDISPASS"
-
-case "$1" in
- start)
- stat_busy "Starting $daemon_name"
- [ -d $WORKDIR ] || mkdir $WORKDIR
-
- if [ -f $PIDFILE ]; then
- stat_fail
- exit 1
- else
- $EXEC $CONF >/dev/null
- if [ $? -gt 0 ]; then
- stat_fail
- exit 1
- else
- add_daemon $daemon_name
- stat_done
- fi
- fi
- ;;
-
- stop)
- stat_busy "Stopping $daemon_name"
-
- if [ ! -f $PIDFILE ]; then
- stat_fail
- exit 1
- else
- PID=$(cat $PIDFILE)
-
- # And grab the server address
- REDISADDR=`egrep -o '^bind ([^#]+)' $CONF | cut -d' ' -f2`
- [ -n "$REDISADDR" ] && CLIEXEC="$CLIEXEC -h $REDISADDR"
-
- $CLIEXEC -p $REDISPORT shutdown
- [ -d /proc/${PID} ] && sleep 1
- [ -d /proc/${PID} ] && sleep 5
- [ -d /proc/${PID} ] && kill -9 $PID
- [ -d /proc/${PID} ] && stat_fail || { stat_done; rm_daemon $daemon_name; }
- fi
- ;;
-
- restart)
- $0 stop
- sleep 1
- $0 start
- ;;
-
- status)
- stat_busy "Checking $daemon_name status";
- ck_status $daemon_name
- ;;
-
- *)
- echo "usage: $0 {start|stop|restart|status}"
-esac
-exit 0