summaryrefslogtreecommitdiff
path: root/system/redis/redis.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/redis/redis.SlackBuild')
-rw-r--r--system/redis/redis.SlackBuild13
1 files changed, 8 insertions, 5 deletions
diff --git a/system/redis/redis.SlackBuild b/system/redis/redis.SlackBuild
index 38e3185845..40bb97d883 100644
--- a/system/redis/redis.SlackBuild
+++ b/system/redis/redis.SlackBuild
@@ -3,7 +3,7 @@
# Slackware build script for redis
# Copyright 2010 Kuroi Kenshi <kuroi_kenshi96@yahoo.com>
-# Copyright 2012-2013 Audrius Kažukauskas <audrius@neutrino.lt>
+# Copyright 2012-2014 Audrius Kažukauskas <audrius@neutrino.lt>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -24,7 +24,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=redis
-VERSION=${VERSION:-2.8.3}
+VERSION=${VERSION:-2.8.8}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -92,18 +92,21 @@ find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
# Use sample config and set some sane defaults.
-install -D -m 0644 redis.conf $PKG/etc/redis.conf.new
+install -D -m 0644 redis.conf $PKG/etc/redis/redis.conf.new
sed -i \
-e 's|^daemonize no|daemonize yes|' \
-e 's|^dir \.|dir /var/lib/redis|' \
- -e 's|^logfile ""|logfile /var/log/redis.log|' \
+ -e 's|^logfile ""|logfile /var/log/redis/redis.log|' \
-e 's|^# bind 127.0.0.1|bind 127.0.0.1|' \
- $PKG/etc/redis.conf.new
+ $PKG/etc/redis/redis.conf.new
# Create data directory.
mkdir -p $PKG/var/lib/redis
chmod 0700 $PKG/var/lib/redis
+# Create log directory.
+mkdir -p $PKG/var/log/redis
+
# Install init script.
mkdir -p $PKG/etc/rc.d
cat $CWD/rc.redis.new > $PKG/etc/rc.d/rc.redis.new