Accepting request 87357 from home:vintozver:branches:server:database
OBS-URL: https://build.opensuse.org/request/show/87357 OBS-URL: https://build.opensuse.org/package/show/server:database/redis?expand=0&rev=21
This commit is contained in:
parent
5ee5ca17b5
commit
debd3d515f
3
redis-2.2.14.tar.gz
Normal file
3
redis-2.2.14.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:212d8e6f8f3bdfee71697d6e1ec41caa3365d24d57108992d221f722eb45402d
|
||||||
|
size 455988
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:a3497a6ee23b678585f92e81da2239e2ef12ff1524bb7216bfe3e9395d1e0a2b
|
|
||||||
size 448151
|
|
@ -1,56 +1,86 @@
|
|||||||
---
|
*** utils/redis_init_script.orig 2011-09-21 19:12:56.000000000 +0300
|
||||||
utils/redis_init_script | 67 +++++++++++++++++++++++++++++++++++++-----------
|
--- utils/redis_init_script 2011-10-10 18:34:43.000000000 +0300
|
||||||
1 file changed, 53 insertions(+), 14 deletions(-)
|
***************
|
||||||
|
*** 1,42 ****
|
||||||
Index: utils/redis_init_script
|
|
||||||
===================================================================
|
|
||||||
--- utils/redis_init_script.orig
|
|
||||||
+++ utils/redis_init_script
|
|
||||||
@@ -1,35 +1,74 @@
|
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
+#
|
#
|
||||||
+# /etc/init.d/redis
|
! # Simple Redis init.d script conceived to work on Linux systems
|
||||||
+#
|
! # as it does use of the /proc filesystem.
|
||||||
+### BEGIN INIT INFO
|
|
||||||
+# Provides: redis
|
|
||||||
+# Required-Start: $syslog $remote_fs
|
|
||||||
+# Should-Start:
|
|
||||||
+# Required-Stop: $syslog $remote_fs
|
|
||||||
+# Should-Stop:
|
|
||||||
+# Default-Start: 3 4 5
|
|
||||||
+# Default-Stop: 0 1 2 6
|
|
||||||
+# Short-Description: Redis server
|
|
||||||
+# Description: Starts and stops the Redis daemon
|
|
||||||
+### END INIT INFO
|
|
||||||
+
|
|
||||||
+. /etc/rc.status
|
|
||||||
|
|
||||||
REDISPORT=6379
|
REDISPORT=6379
|
||||||
-EXEC=/usr/local/bin/redis-server
|
! EXEC=/usr/local/bin/redis-server
|
||||||
+EXEC=/usr/sbin/redis-server
|
! CLIEXEC=/usr/local/bin/redis-cli
|
||||||
|
|
||||||
-PIDFILE=/var/run/redis_${REDISPORT}.pid
|
PIDFILE=/var/run/redis_${REDISPORT}.pid
|
||||||
-CONF="/etc/redis/${REDISPORT}.conf"
|
! CONF="/etc/redis/${REDISPORT}.conf"
|
||||||
+LOGFILE=/var/log/redis.log
|
|
||||||
+PIDFILE=/var/run/redis.pid
|
|
||||||
+CONF=/etc/redis.conf
|
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
start)
|
start)
|
||||||
- if [ -f $PIDFILE ]
|
! if [ -f $PIDFILE ]
|
||||||
- then
|
! then
|
||||||
- echo -n "$PIDFILE exists, process is already running or crashed\n"
|
! echo "$PIDFILE exists, process is already running or crashed"
|
||||||
- else
|
! else
|
||||||
- echo -n "Starting Redis server...\n"
|
! echo "Starting Redis server..."
|
||||||
- $EXEC $CONF
|
! $EXEC $CONF
|
||||||
+ if [ ! -r $LOGFILE ]; then
|
fi
|
||||||
+ touch $LOGFILE
|
;;
|
||||||
+ chown redis:redis $LOGFILE
|
stop)
|
||||||
+ fi
|
if [ ! -f $PIDFILE ]
|
||||||
+ # Create a pidfile the server can write into.
|
then
|
||||||
+ if [ ! -r $PIDFILE ]; then
|
! echo "$PIDFILE does not exist, process is not running"
|
||||||
+ touch $PIDFILE
|
else
|
||||||
+ chown redis:redis $PIDFILE
|
! PID=$(cat $PIDFILE)
|
||||||
|
! echo "Stopping ..."
|
||||||
|
$CLIEXEC -p $REDISPORT shutdown
|
||||||
|
! while [ -x /proc/${PID} ]
|
||||||
|
do
|
||||||
|
- echo "Waiting for Redis to shutdown ..."
|
||||||
|
sleep 1
|
||||||
|
done
|
||||||
|
- echo "Redis stopped"
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
! *)
|
||||||
|
! echo "Please use start or stop as first argument"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
--- 1,75 ----
|
||||||
|
#!/bin/sh
|
||||||
|
#
|
||||||
|
! # /etc/init.d/redis
|
||||||
|
! #
|
||||||
|
! ### BEGIN INIT INFO
|
||||||
|
! # Provides: redis
|
||||||
|
! # Required-Start: $syslog $remote_fs
|
||||||
|
! # Should-Start:
|
||||||
|
! # Required-Stop: $syslog $remote_fs
|
||||||
|
! # Should-Stop:
|
||||||
|
! # Default-Start: 3 4 5
|
||||||
|
! # Default-Stop: 0 1 2 6
|
||||||
|
! # Short-Description: Redis server
|
||||||
|
! # Description: Starts and stops the Redis daemon
|
||||||
|
! ### END INIT INFO
|
||||||
|
!
|
||||||
|
! . /etc/rc.status
|
||||||
|
|
||||||
|
REDISPORT=6379
|
||||||
|
! EXEC=/usr/sbin/redis-server
|
||||||
|
! CLIEXEC=/usr/sbin/redis-cli
|
||||||
|
|
||||||
|
+ CONF=/etc/redis/${REDISPORT}.conf
|
||||||
|
PIDFILE=/var/run/redis_${REDISPORT}.pid
|
||||||
|
! LOGFILE=/var/log/redis_${REDISPORT}.log
|
||||||
|
|
||||||
|
case "$1" in
|
||||||
|
start)
|
||||||
|
! if [ ! -r $LOGFILE ]; then
|
||||||
|
! touch $LOGFILE
|
||||||
|
! chown redis:redis $LOGFILE
|
||||||
|
! fi
|
||||||
|
! # Create a pidfile the server can write into.
|
||||||
|
! if [ ! -r $PIDFILE ]; then
|
||||||
|
! touch $PIDFILE
|
||||||
|
! chown redis:redis $PIDFILE
|
||||||
fi
|
fi
|
||||||
+ echo -n "Starting service Redis "
|
+ echo -n "Starting service Redis "
|
||||||
+ /sbin/startproc -u redis -g redis -p $PIDFILE -s -e $EXEC $CONF >/dev/null 2>&1
|
+ /sbin/startproc -u redis -g redis -p $PIDFILE -s -e $EXEC $CONF >/dev/null 2>&1
|
||||||
@ -59,27 +89,22 @@ Index: utils/redis_init_script
|
|||||||
stop)
|
stop)
|
||||||
if [ ! -f $PIDFILE ]
|
if [ ! -f $PIDFILE ]
|
||||||
then
|
then
|
||||||
- echo -n "$PIDFILE does not exist, process is not running\n"
|
! echo -n "$PIDFILE does not exist, process is not running"
|
||||||
+ echo -n "$PIDFILE does not exist, process is not running"
|
! rc_failed
|
||||||
+ rc_failed
|
|
||||||
else
|
else
|
||||||
+ echo -n "Stopping service Redis..."
|
! echo -n "Stopping service Redis..."
|
||||||
+ echo -e "SHUTDOWN\r" | /usr/bin/netcat localhost $REDISPORT &
|
$CLIEXEC -p $REDISPORT shutdown
|
||||||
PID=$(cat $PIDFILE)
|
! PID=$(cat $PIDFILE)
|
||||||
- echo -n "Stopping ...\n"
|
! while [ -x /proc/${PIDFILE} ]
|
||||||
- echo -n "SHUTDOWN\r\n" | nc localhost $REDISPORT &
|
|
||||||
while [ -x /proc/${PIDFILE} ]
|
|
||||||
do
|
do
|
||||||
- echo "Waiting for Redis to shutdown ..."
|
|
||||||
sleep 1
|
sleep 1
|
||||||
done
|
done
|
||||||
- echo "Redis stopped"
|
|
||||||
fi
|
fi
|
||||||
+ rc_status -v
|
+ rc_status -v
|
||||||
+ ;;
|
;;
|
||||||
+ restart)
|
! restart)
|
||||||
+ $0 stop
|
! $0 stop
|
||||||
+ $0 start
|
! $0 start
|
||||||
;;
|
;;
|
||||||
+ reload)
|
+ reload)
|
||||||
+ $0 restart
|
+ $0 restart
|
||||||
@ -93,5 +118,5 @@ Index: utils/redis_init_script
|
|||||||
+ echo $"Usage: $0 {start|stop|status|restart|reload}"
|
+ echo $"Usage: $0 {start|stop|status|restart|reload}"
|
||||||
+ exit 1
|
+ exit 1
|
||||||
esac
|
esac
|
||||||
+rc_exit
|
+ rc_exit
|
||||||
+
|
+
|
||||||
|
@ -1,49 +0,0 @@
|
|||||||
---
|
|
||||||
src/Makefile | 12 ++++++------
|
|
||||||
1 file changed, 6 insertions(+), 6 deletions(-)
|
|
||||||
|
|
||||||
Index: src/Makefile
|
|
||||||
===================================================================
|
|
||||||
--- src/Makefile.orig
|
|
||||||
+++ src/Makefile
|
|
||||||
@@ -19,7 +19,7 @@ ifeq ($(USE_TCMALLOC),yes)
|
|
||||||
CCLINK+= -ltcmalloc
|
|
||||||
CFLAGS+= -DUSE_TCMALLOC
|
|
||||||
endif
|
|
||||||
-CCOPT= $(CFLAGS) $(CCLINK) $(ARCH) $(PROF)
|
|
||||||
+CCOPT= $(CFLAGS) $(ARCH) $(PROF)
|
|
||||||
|
|
||||||
PREFIX= /usr/local
|
|
||||||
INSTALL_BIN= $(PREFIX)/bin
|
|
||||||
@@ -111,26 +111,26 @@ dependencies:
|
|
||||||
cd ../deps/linenoise && $(MAKE) ARCH="$(ARCH)"
|
|
||||||
|
|
||||||
redis-server: $(OBJ)
|
|
||||||
- $(CC) -o $(PRGNAME) $(CCOPT) $(DEBUG) $(OBJ)
|
|
||||||
+ $(CC) -o $(PRGNAME) $(CCOPT) $(DEBUG) $(OBJ) $(CCLINK)
|
|
||||||
|
|
||||||
redis-benchmark: dependencies $(BENCHOBJ)
|
|
||||||
cd ../deps/hiredis && $(MAKE) static
|
|
||||||
- $(CC) -o $(BENCHPRGNAME) $(CCOPT) $(DEBUG) $(BENCHOBJ) ../deps/hiredis/libhiredis.a
|
|
||||||
+ $(CC) -o $(BENCHPRGNAME) $(CCOPT) $(DEBUG) $(BENCHOBJ) $(CCLINK) ../deps/hiredis/libhiredis.a
|
|
||||||
|
|
||||||
redis-benchmark.o:
|
|
||||||
$(CC) -c $(CFLAGS) -I../deps/hiredis $(DEBUG) $(COMPILE_TIME) $<
|
|
||||||
|
|
||||||
redis-cli: dependencies $(CLIOBJ)
|
|
||||||
- $(CC) -o $(CLIPRGNAME) $(CCOPT) $(DEBUG) $(CLIOBJ) ../deps/hiredis/libhiredis.a ../deps/linenoise/linenoise.o
|
|
||||||
+ $(CC) -o $(CLIPRGNAME) $(CCOPT) $(DEBUG) $(CLIOBJ) $(CCLINK) ../deps/hiredis/libhiredis.a ../deps/linenoise/linenoise.o
|
|
||||||
|
|
||||||
redis-cli.o:
|
|
||||||
$(CC) -c $(CFLAGS) -I../deps/hiredis -I../deps/linenoise $(DEBUG) $(COMPILE_TIME) $<
|
|
||||||
|
|
||||||
redis-check-dump: $(CHECKDUMPOBJ)
|
|
||||||
- $(CC) -o $(CHECKDUMPPRGNAME) $(CCOPT) $(DEBUG) $(CHECKDUMPOBJ)
|
|
||||||
+ $(CC) -o $(CHECKDUMPPRGNAME) $(CCOPT) $(DEBUG) $(CHECKDUMPOBJ) $(CCLINK)
|
|
||||||
|
|
||||||
redis-check-aof: $(CHECKAOFOBJ)
|
|
||||||
- $(CC) -o $(CHECKAOFPRGNAME) $(CCOPT) $(DEBUG) $(CHECKAOFOBJ)
|
|
||||||
+ $(CC) -o $(CHECKAOFPRGNAME) $(CCOPT) $(DEBUG) $(CHECKAOFOBJ) $(CCLINK)
|
|
||||||
|
|
||||||
.c.o:
|
|
||||||
$(CC) -c $(CFLAGS) $(DEBUG) $(COMPILE_TIME) $<
|
|
@ -18,7 +18,7 @@
|
|||||||
%define _log_dir %{_var}/log/%{name}
|
%define _log_dir %{_var}/log/%{name}
|
||||||
|
|
||||||
Name: redis
|
Name: redis
|
||||||
Version: 2.2.7
|
Version: 2.2.14
|
||||||
Release: 1
|
Release: 1
|
||||||
#
|
#
|
||||||
License: BSD License
|
License: BSD License
|
||||||
@ -32,8 +32,7 @@ Source4: redis.sysconfig
|
|||||||
#
|
#
|
||||||
Patch0: %{name}-initscript.patch
|
Patch0: %{name}-initscript.patch
|
||||||
Patch1: %{name}-conf.patch
|
Patch1: %{name}-conf.patch
|
||||||
Patch2: %{name}-linkargsorder.patch
|
Patch2: skip-aof-test.patch
|
||||||
Patch3: skip-aof-test.patch
|
|
||||||
#
|
#
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
# for init script
|
# for init script
|
||||||
@ -63,11 +62,10 @@ HTML documentation for redis database.
|
|||||||
%setup -q
|
%setup -q
|
||||||
%patch0
|
%patch0
|
||||||
%patch1
|
%patch1
|
||||||
%patch2
|
|
||||||
|
|
||||||
# skip-aof-test.patch
|
# skip-aof-test.patch
|
||||||
# Failures: - Fixed AOF: Server should have been started: Expected '1' to equal or match '0'
|
# Failures: - Fixed AOF: Server should have been started: Expected '1' to equal or match '0'
|
||||||
%patch3 -p1
|
%patch2 -p1
|
||||||
|
|
||||||
mv doc html
|
mv doc html
|
||||||
|
|
||||||
|
@ -1,13 +1,19 @@
|
|||||||
Index: redis-2.2.7/tests/test_helper.tcl
|
*** redis-2.2.14/tests/test_helper.tcl.orig 2011-10-11 10:49:53.526776515 +0300
|
||||||
===================================================================
|
--- redis-2.2.14/tests/test_helper.tcl 2011-10-11 10:50:30.166776516 +0300
|
||||||
--- redis-2.2.7.orig/tests/test_helper.tcl
|
***************
|
||||||
+++ redis-2.2.7/tests/test_helper.tcl
|
*** 122,128 ****
|
||||||
@@ -121,7 +121,7 @@ proc execute_everything {} {
|
|
||||||
execute_tests "unit/cas"
|
execute_tests "unit/cas"
|
||||||
execute_tests "unit/quit"
|
execute_tests "unit/quit"
|
||||||
execute_tests "integration/replication"
|
execute_tests "integration/replication"
|
||||||
- execute_tests "integration/aof"
|
! execute_tests "integration/aof"
|
||||||
+# execute_tests "integration/aof"
|
|
||||||
# execute_tests "integration/redis-cli"
|
# execute_tests "integration/redis-cli"
|
||||||
execute_tests "unit/pubsub"
|
execute_tests "unit/pubsub"
|
||||||
|
execute_tests "unit/slowlog"
|
||||||
|
--- 122,128 ----
|
||||||
|
execute_tests "unit/cas"
|
||||||
|
execute_tests "unit/quit"
|
||||||
|
execute_tests "integration/replication"
|
||||||
|
! # execute_tests "integration/aof"
|
||||||
|
# execute_tests "integration/redis-cli"
|
||||||
|
execute_tests "unit/pubsub"
|
||||||
|
execute_tests "unit/slowlog"
|
||||||
|
Loading…
Reference in New Issue
Block a user