update to repmgr-5.2.1

This commit is contained in:
sthen 2021-02-21 17:19:58 +00:00
parent ae151a55e8
commit aee5f45f22
4 changed files with 31 additions and 33 deletions

View File

@ -1,20 +1,22 @@
# $OpenBSD: Makefile,v 1.10 2019/07/12 20:44:01 sthen Exp $
# $OpenBSD: Makefile,v 1.11 2021/02/21 17:19:58 sthen Exp $
COMMENT = HA and replication cluster management for PostgreSQL
DISTNAME = repmgr-3.0.3
DISTNAME = repmgr-5.2.1
CATEGORIES = databases
HOMEPAGE = http://www.repmgr.org/
REVISION = 0
HOMEPAGE = https://repmgr.org/
# GPLv3
PERMIT_PACKAGE = Yes
WANTLIB += c crypto curses m pq pthread readline ssl xml2 z
WANTLIB += c pq
MASTER_SITES = ${HOMEPAGE}download/
USE_GMAKE = Yes
MAKE_FLAGS = USE_PGXS=1
CONFIGURE_ENV = HAVE_GSED=no
CONFIGURE_STYLE = gnu
# for getopt_long.h
BUILD_DEPENDS = databases/postgresql,-server
@ -23,9 +25,6 @@ RUN_DEPENDS = net/rsync
NO_TEST = Yes
pre-configure:
${SUBST_CMD} ${WRKSRC}/config.c
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/repmgr
${INSTALL_DATA} ${WRKSRC}/README.md ${PREFIX}/share/doc/repmgr

View File

@ -1,2 +1,2 @@
SHA256 (repmgr-3.0.3.tar.gz) = My5PpsuVkZOs7f0UEGDxgjQWR2a/7PQ8cfK3YVQoOBQ=
SIZE (repmgr-3.0.3.tar.gz) = 102211
SHA256 (repmgr-5.2.1.tar.gz) = jm0QQ1KrTBK42SPfUfWBcgsjA8ROK+mNVtTPaqmGJ3I=
SIZE (repmgr-5.2.1.tar.gz) = 448164

View File

@ -1,16 +0,0 @@
$OpenBSD: patch-config_c,v 1.1 2016/01/23 18:01:07 ajacoutot Exp $
--- config.c.orig Sat Jan 23 18:59:43 2016
+++ config.c Sat Jan 23 18:59:34 2016
@@ -128,10 +128,10 @@ load_config(const char *config_file, bool verbose, t_c
/* 2. "/etc/repmgr.conf" */
if (verbose == true)
{
- log_notice(_("looking for configuration file in /etc\n"));
+ log_notice(_("looking for configuration file in ${SYSCONFDIR}\n"));
}
- snprintf(config_file_path, MAXPGPATH, "/etc/%s", CONFIG_FILE_NAME);
+ snprintf(config_file_path, MAXPGPATH, "${SYSCONFDIR}/%s", CONFIG_FILE_NAME);
if (stat(config_file_path, &stat_config) == 0)
{
config_file_found = true;

View File

@ -1,14 +1,29 @@
@comment $OpenBSD: PLIST,v 1.2 2015/09/19 21:37:12 landry Exp $
@comment $OpenBSD: PLIST,v 1.3 2021/02/21 17:19:58 sthen Exp $
@bin bin/repmgr
@bin bin/repmgrd
lib/postgresql/repmgr_funcs.so
@so lib/postgresql/repmgr.so
share/doc/repmgr/
share/doc/repmgr/README.md
share/examples/repmgr/
share/examples/repmgr/repmgr.conf
@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
share/postgresql/extension/
share/postgresql/extension/repmgr--4.0--4.1.sql
share/postgresql/extension/repmgr--4.0.sql
share/postgresql/extension/repmgr--4.1--4.2.sql
share/postgresql/extension/repmgr--4.1.sql
share/postgresql/extension/repmgr--4.2--4.3.sql
share/postgresql/extension/repmgr--4.2.sql
share/postgresql/extension/repmgr--4.3--4.4.sql
share/postgresql/extension/repmgr--4.3.sql
share/postgresql/extension/repmgr--4.4--5.0.sql
share/postgresql/extension/repmgr--4.4.sql
share/postgresql/extension/repmgr--5.0--5.1.sql
share/postgresql/extension/repmgr--5.0.sql
share/postgresql/extension/repmgr--5.1--5.2.sql
share/postgresql/extension/repmgr--5.1.sql
share/postgresql/extension/repmgr--5.2.sql
share/postgresql/extension/repmgr--unpackaged--4.0.sql
share/postgresql/extension/repmgr--unpackaged--5.1.sql
share/postgresql/extension/repmgr--unpackaged--5.2.sql
share/postgresql/extension/repmgr.control