From 68f90841b5cef71c32027576c5581fe942da1a24 Mon Sep 17 00:00:00 2001 From: Audrius Kažukauskas Date: Mon, 31 Mar 2014 09:08:52 +0700 Subject: system/redis: Updated for version 2.8.8. Signed-off-by: Willy Sudiarto Raharjo --- system/redis/redis.SlackBuild | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'system/redis/redis.SlackBuild') 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 -# Copyright 2012-2013 Audrius Kažukauskas +# Copyright 2012-2014 Audrius Kažukauskas # 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 -- cgit v1.2.3