diff options
author | Audrius Kažukauskas <audrius@neutrino.lt> | 2014-03-31 09:08:52 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2014-03-31 09:08:52 +0700 |
commit | 68f90841b5cef71c32027576c5581fe942da1a24 (patch) | |
tree | 0b7c52a1a8e7a803675521da2da234b077581f1e /system/redis/redis.SlackBuild | |
parent | 5a23c1b55b085329f027b7942e4552a13b50098b (diff) | |
download | slackbuilds-68f90841b5cef71c32027576c5581fe942da1a24.tar.gz |
system/redis: Updated for version 2.8.8.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/redis/redis.SlackBuild')
-rw-r--r-- | system/redis/redis.SlackBuild | 13 |
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 |