Add the new (starting from 2.6) Sentinel stuff.
This commit is contained in:
parent
85f470b53c
commit
3c68c9fa9e
@ -1,7 +1,8 @@
|
||||
# $OpenBSD: Makefile,v 1.35 2012/10/23 10:41:23 dcoppa Exp $
|
||||
# $OpenBSD: Makefile,v 1.36 2012/10/23 13:05:27 dcoppa Exp $
|
||||
|
||||
COMMENT = persistent key-value database
|
||||
DISTNAME = redis-2.6.0
|
||||
REVISION = 0
|
||||
CATEGORIES = databases
|
||||
HOMEPAGE = http://redis.io/
|
||||
|
||||
@ -45,9 +46,13 @@ pre-configure:
|
||||
${SUBST_CMD} ${WRKSRC}/src/redis.c
|
||||
|
||||
post-install:
|
||||
cd ${PREFIX}/bin/ && ln -f -s redis-server redis-sentinel
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/redis
|
||||
${SUBST_CMD} -o ${SHAREOWN} -g ${SHAREGRP} -c \
|
||||
${WRKSRC}/redis.conf \
|
||||
${PREFIX}/share/examples/redis/redis.conf
|
||||
${SUBST_CMD} -o ${SHAREOWN} -g ${SHAREGRP} -c \
|
||||
${WRKSRC}/sentinel.conf \
|
||||
${PREFIX}/share/examples/redis/sentinel.conf
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
20
databases/redis/patches/patch-sentinel_conf
Normal file
20
databases/redis/patches/patch-sentinel_conf
Normal file
@ -0,0 +1,20 @@
|
||||
$OpenBSD: patch-sentinel_conf,v 1.1 2012/10/23 13:05:27 dcoppa Exp $
|
||||
--- sentinel.conf.orig Tue Oct 23 14:21:40 2012
|
||||
+++ sentinel.conf Tue Oct 23 14:29:45 2012
|
||||
@@ -108,7 +108,7 @@ sentinel failover-timeout mymaster 900000
|
||||
#
|
||||
# Example:
|
||||
#
|
||||
-# sentinel notification-script mymaster /var/redis/notify.sh
|
||||
+# sentinel notification-script mymaster ${DBDIR}/notify.sh
|
||||
|
||||
# CLIENTS RECONFIGURATION SCRIPT
|
||||
#
|
||||
@@ -145,6 +145,6 @@ sentinel failover-timeout mymaster 900000
|
||||
#
|
||||
# Example:
|
||||
#
|
||||
-# sentinel client-reconfig-script mymaster /var/redis/reconfig.sh
|
||||
+# sentinel client-reconfig-script mymaster ${DBDIR}/reconfig.sh
|
||||
|
||||
|
@ -1,15 +1,18 @@
|
||||
@comment $OpenBSD: PLIST,v 1.5 2011/11/29 16:07:23 dcoppa Exp $
|
||||
@comment $OpenBSD: PLIST,v 1.6 2012/10/23 13:05:27 dcoppa Exp $
|
||||
@newgroup _redis:686
|
||||
@newuser _redis:686:_redis:daemon:redis account:${DBDIR}:/sbin/nologin
|
||||
@bin bin/redis-benchmark
|
||||
@bin bin/redis-check-aof
|
||||
@bin bin/redis-check-dump
|
||||
@bin bin/redis-cli
|
||||
bin/redis-sentinel
|
||||
@bin bin/redis-server
|
||||
share/examples/redis/
|
||||
@sample ${SYSCONFDIR}/redis/
|
||||
share/examples/redis/redis.conf
|
||||
@sample ${SYSCONFDIR}/redis/redis.conf
|
||||
share/examples/redis/sentinel.conf
|
||||
@sample ${SYSCONFDIR}/redis/sentinel.conf
|
||||
@mode 0700
|
||||
@owner _redis
|
||||
@group _redis
|
||||
|
Loading…
Reference in New Issue
Block a user