Update to repmgr 3.0.1.
See http://www.repmgr.org/release-notes-3.0.1.html
This commit is contained in:
parent
b11a666deb
commit
08d3adb955
@ -1,11 +1,11 @@
|
||||
# $OpenBSD: Makefile,v 1.4 2015/04/21 18:40:21 sthen Exp $
|
||||
# $OpenBSD: Makefile,v 1.5 2015/09/19 21:37:12 landry Exp $
|
||||
|
||||
COMMENT = HA and replication cluster management for PostgreSQL
|
||||
|
||||
DISTNAME = repmgr-1.2.0
|
||||
DISTNAME = repmgr-3.0.1
|
||||
CATEGORIES = databases
|
||||
HOMEPAGE = http://www.repmgr.org/
|
||||
REVISION= 1
|
||||
SHARED_ONLY = Yes
|
||||
|
||||
# GPLv3
|
||||
PERMIT_PACKAGE_CDROM = Yes
|
||||
@ -22,11 +22,13 @@ LIB_DEPENDS = databases/postgresql
|
||||
RUN_DEPENDS = net/rsync
|
||||
NO_TEST = Yes
|
||||
|
||||
post-patch:
|
||||
${SUBST_CMD} ${WRKSRC}/repmgr.h
|
||||
|
||||
post-install:
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/repmgr
|
||||
${INSTALL_DATA} ${WRKSRC}/README.rst ${PREFIX}/share/doc/repmgr
|
||||
${INSTALL_DATA} ${WRKSRC}/README.md ${PREFIX}/share/doc/repmgr
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/repmgr
|
||||
${INSTALL_DATA} ${WRKSRC}/repmgr.conf ${PREFIX}/share/examples/repmgr
|
||||
${INSTALL_DATA} ${WRKSRC}/repmgr.conf.sample ${PREFIX}/share/examples/repmgr/repmgr.conf
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,2 +1,2 @@
|
||||
SHA256 (repmgr-1.2.0.tar.gz) = GRwHehW59/pym48cTlrOizQP2mKFx7VSVF+UykSQ7Fs=
|
||||
SIZE (repmgr-1.2.0.tar.gz) = 51608
|
||||
SHA256 (repmgr-3.0.1.tar.gz) = J2VkQqrMHJegBgOaUM9tqEtNOPwRVCpVXfJNk65rArw=
|
||||
SIZE (repmgr-3.0.1.tar.gz) = 91724
|
||||
|
@ -1,13 +0,0 @@
|
||||
$OpenBSD: patch-repmgr_c,v 1.1.1.1 2013/08/10 16:07:02 landry Exp $
|
||||
for WEXITSTATUS()
|
||||
--- repmgr.c.orig Thu Nov 22 21:18:27 2012
|
||||
+++ repmgr.c Thu Nov 22 21:19:48 2012
|
||||
@@ -30,6 +30,8 @@
|
||||
#include <stdlib.h>
|
||||
#include <time.h>
|
||||
#include <unistd.h>
|
||||
+#include <sys/types.h>
|
||||
+#include <sys/wait.h>
|
||||
|
||||
#include "log.h"
|
||||
#include "config.h"
|
16
databases/repmgr/patches/patch-repmgr_conf_sample
Normal file
16
databases/repmgr/patches/patch-repmgr_conf_sample
Normal file
@ -0,0 +1,16 @@
|
||||
$OpenBSD: patch-repmgr_conf_sample,v 1.1 2015/09/19 21:37:12 landry Exp $
|
||||
--- repmgr.conf.sample.orig Sat Sep 19 23:17:31 2015
|
||||
+++ repmgr.conf.sample Sat Sep 19 23:18:09 2015
|
||||
@@ -118,8 +118,10 @@ reconnect_attempts=6
|
||||
reconnect_interval=10
|
||||
|
||||
# Autofailover options
|
||||
-failover=automatic # one of 'automatic', 'manual'
|
||||
-priority=100 # a value of zero or less prevents the node being promoted to master
|
||||
+# one of 'automatic', 'manual'
|
||||
+failover=automatic
|
||||
+# a value of zero or less prevents the node being promoted to master
|
||||
+priority=100
|
||||
promote_command='repmgr standby promote -f /path/to/repmgr.conf'
|
||||
follow_command='repmgr standby follow -f /path/to/repmgr.conf -W'
|
||||
|
12
databases/repmgr/patches/patch-repmgr_h
Normal file
12
databases/repmgr/patches/patch-repmgr_h
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-repmgr_h,v 1.1 2015/09/19 21:37:12 landry Exp $
|
||||
--- repmgr.h.orig Thu Apr 16 06:33:17 2015
|
||||
+++ repmgr.h Sat Sep 19 23:19:20 2015
|
||||
@@ -38,7 +38,7 @@
|
||||
#define MAXFILENAME 1024
|
||||
#define ERRBUFF_SIZE 512
|
||||
|
||||
-#define DEFAULT_CONFIG_FILE "./repmgr.conf"
|
||||
+#define DEFAULT_CONFIG_FILE "${SYSCONFDIR}/repmgr.conf"
|
||||
#define DEFAULT_WAL_KEEP_SEGMENTS "5000"
|
||||
#define DEFAULT_DEST_DIR "."
|
||||
#define DEFAULT_MASTER_PORT "5432"
|
@ -1,12 +1,14 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2013/08/10 16:07:02 landry Exp $
|
||||
@comment $OpenBSD: PLIST,v 1.2 2015/09/19 21:37:12 landry Exp $
|
||||
@bin bin/repmgr
|
||||
@bin bin/repmgrd
|
||||
lib/postgresql/repmgr_funcs.so
|
||||
share/doc/repmgr/
|
||||
share/doc/repmgr/README.rst
|
||||
share/doc/repmgr/README.md
|
||||
share/examples/repmgr/
|
||||
share/examples/repmgr/repmgr.conf
|
||||
@sample ${SYSCONFDIR}/rempgr.conf
|
||||
share/postgresql/
|
||||
@sample ${SYSCONFDIR}/repmgr.conf
|
||||
share/postgresql/contrib/
|
||||
share/postgresql/contrib/repmgr.sql
|
||||
share/postgresql/contrib/repmgr_funcs.sql
|
||||
share/postgresql/contrib/uninstall_repmgr.sql
|
||||
share/postgresql/contrib/uninstall_repmgr_funcs.sql
|
||||
|
Loading…
x
Reference in New Issue
Block a user