[Midnightbsd-cvs] mports [21213] trunk/databases/redis: redis 3.0.7
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Thu Mar 17 21:06:43 EDT 2016
Revision: 21213
http://svnweb.midnightbsd.org/mports/?rev=21213
Author: laffer1
Date: 2016-03-17 21:06:42 -0400 (Thu, 17 Mar 2016)
Log Message:
-----------
redis 3.0.7
Modified Paths:
--------------
trunk/databases/redis/Makefile
trunk/databases/redis/distinfo
trunk/databases/redis/files/redis.in
Modified: trunk/databases/redis/Makefile
===================================================================
--- trunk/databases/redis/Makefile 2016-03-18 00:55:56 UTC (rev 21212)
+++ trunk/databases/redis/Makefile 2016-03-18 01:06:42 UTC (rev 21213)
@@ -1,7 +1,7 @@
# $MidnightBSD$
PORTNAME= redis
-DISTVERSION= 3.0.5
+DISTVERSION= 3.0.7
CATEGORIES= databases
MASTER_SITES= http://download.redis.io/releases/
Modified: trunk/databases/redis/distinfo
===================================================================
--- trunk/databases/redis/distinfo 2016-03-18 00:55:56 UTC (rev 21212)
+++ trunk/databases/redis/distinfo 2016-03-18 01:06:42 UTC (rev 21213)
@@ -1,2 +1,2 @@
-SHA256 (redis-3.0.5.tar.gz) = 4c176826eee909fbdc63db1c15adc22aab42d758043829e556f4331e6a5bd480
-SIZE (redis-3.0.5.tar.gz) = 1366160
+SHA256 (redis-3.0.7.tar.gz) = b2a791c4ea3bb7268795c45c6321ea5abcc24457178373e6a6e3be6372737f23
+SIZE (redis-3.0.7.tar.gz) = 1375200
Modified: trunk/databases/redis/files/redis.in
===================================================================
--- trunk/databases/redis/files/redis.in 2016-03-18 00:55:56 UTC (rev 21212)
+++ trunk/databases/redis/files/redis.in 2016-03-18 01:06:42 UTC (rev 21213)
@@ -11,6 +11,11 @@
#
#redis_enable="YES"
#
+# Define profiles here to run separate redis instances:
+#
+#redis_profiles="foo bar" # Script uses %%PREFIX%%/etc/redis-NAME.conf respectively.
+# For correct script working please update pidfile entries in
+# redis-NAME.conf files.
. /etc/rc.subr
@@ -30,4 +35,35 @@
command_args="${redis_config}"
required_files="${redis_config}"
+
+_profile_exists() {
+ for _p in ${redis_profiles}; do
+ [ "${_p}" = "$1" ] && return 1;
+ done
+ return 0
+}
+
+if [ $# -eq 2 ]; then
+ _profile=$2
+ _profile_exists $_profile
+ _exists=$?
+ [ ${_exists} -ne 1 ] && {
+ echo "`basename %%PREFIX%%/etc/rc.d/redis`: no '$2' in 'redis_profiles'"
+ exit 1
+ };
+ echo "-- Profile: ${_profile} --"
+ config_file="%%PREFIX%%/etc/${name}-${_profile}.conf"
+ command_args="${config_file}"
+ pidfile="%%REDIS_RUNDIR%%/${_profile}.pid"
+ required_files="${config_file}"
+elif [ -n "${redis_profiles}" ]; then
+ _swap=$*; shift; _profiles=$*
+ _profiles=${_profiles:-${redis_profiles}}
+ set -- ${_swap}
+ for _profile in ${_profiles}; do
+ %%PREFIX%%/etc/rc.d/redis $1 ${_profile}
+ done
+ exit 0
+fi
+
run_rc_command "$1"
More information about the Midnightbsd-cvs
mailing list