mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
system/redis: Updated for version 2.8.8.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
5a23c1b55b
commit
68f90841b5
5 changed files with 14 additions and 11 deletions
|
@ -22,6 +22,6 @@ preserve_perms() {
|
|||
config $NEW
|
||||
}
|
||||
|
||||
config etc/redis.conf.new
|
||||
config etc/redis/redis.conf.new
|
||||
config etc/logrotate.d/redis.new
|
||||
preserve_perms etc/rc.d/rc.redis.new
|
||||
|
|
|
@ -6,7 +6,7 @@ PORT=6379
|
|||
SERV=/usr/bin/redis-server
|
||||
CLI=/usr/bin/redis-cli
|
||||
PIDFILE=/var/run/redis.pid
|
||||
CONF=/etc/redis.conf
|
||||
CONF=/etc/redis/redis.conf
|
||||
|
||||
redis_start() {
|
||||
if [ ! -r $CONF ]; then
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
PRGNAM="redis"
|
||||
VERSION="2.8.3"
|
||||
VERSION="2.8.8"
|
||||
HOMEPAGE="http://redis.io/"
|
||||
DOWNLOAD="http://download.redis.io/releases/redis-2.8.3.tar.gz"
|
||||
MD5SUM="6327e6786130b556b048beef0edbdfa7"
|
||||
DOWNLOAD="http://download.redis.io/releases/redis-2.8.8.tar.gz"
|
||||
MD5SUM="f3af82ca88b9d84c81d0b77614d07426"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES=""
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/var/log/redis.log {
|
||||
/var/log/redis/redis.log {
|
||||
daily
|
||||
rotate 7
|
||||
copytruncate
|
||||
|
|
Loading…
Reference in a new issue