git: ba1b2e241733 - main - databases/postgresql-repmgr: Update version 5.2.0=>5.3.2

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Fri, 27 May 2022 19:16:10 UTC
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=ba1b2e241733c6dc7b8a4634aa41ee56c45fb3e4

commit ba1b2e241733c6dc7b8a4634aa41ee56c45fb3e4
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2022-05-27 19:12:51 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2022-05-27 19:16:03 +0000

    databases/postgresql-repmgr: Update version 5.2.0=>5.3.2
    
    - Fix build with NLS. See the following:
      https://github.com/EnterpriseDB/repmgr/issues/755
    - Update WWW
    - Pet portclippy/portfmt
    
    Reported by:    mike.jakubik@swiftsmsgateway.com
---
 databases/postgresql-repmgr/Makefile               | 27 ++++++++++++----------
 databases/postgresql-repmgr/distinfo               |  6 ++---
 .../postgresql-repmgr/files/patch-Makefile.in      | 15 ++++++++++++
 databases/postgresql-repmgr/pkg-descr              |  2 +-
 databases/postgresql-repmgr/pkg-plist              |  3 +++
 5 files changed, 37 insertions(+), 16 deletions(-)

diff --git a/databases/postgresql-repmgr/Makefile b/databases/postgresql-repmgr/Makefile
index 3b0d144d42d6..84661572875e 100644
--- a/databases/postgresql-repmgr/Makefile
+++ b/databases/postgresql-repmgr/Makefile
@@ -1,7 +1,7 @@
 # Created by: alp@sfedu.ru
 
 PORTNAME=	postgresql-repmgr
-PORTVERSION=	5.2.0
+PORTVERSION=	5.3.2
 CATEGORIES=	databases
 MASTER_SITES=	http://www.repmgr.org/download/
 DISTNAME=	repmgr-${PORTVERSION}
@@ -14,24 +14,21 @@ LICENSE=	GPLv3
 RUN_DEPENDS=	rsync:net/rsync
 
 USES=		gettext gmake pgsql
+WANT_PGSQL=	server
+USE_RC_SUBR=	repmgrd
 
 GNU_CONFIGURE=	yes
-LLD_UNSAFE=	yes
-USE_RC_SUBR=	repmgrd
-WANT_PGSQL=	server
+
 MAKE_ENV=	USE_PGXS=1
+
 LIBS=		-L${LOCALBASE}/lib -lintl
 
-OPTIONS_DEFINE=	DOCS
+LLD_UNSAFE=	yes
 
-PORTDOCS=	CONTRIBUTING.md COPYRIGHT CREDITS FAQ.md HISTORY LICENSE PACKAGES.md \
-	       	README.md
+PORTDOCS=	CONTRIBUTING.md COPYRIGHT CREDITS FAQ.md HISTORY LICENSE \
+		PACKAGES.md README.md
 
-post-install:
-	${INSTALL_DATA} ${WRKSRC}/repmgr.conf.sample ${STAGEDIR}${PREFIX}/etc
-	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/repmgr
-	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/repmgrd
-	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/postgresql/repmgr.so
+OPTIONS_DEFINE=	DOCS
 
 do-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
@@ -39,4 +36,10 @@ do-install-DOCS-on:
 	${INSTALL_DATA} ${WRKSRC}/$f ${STAGEDIR}${DOCSDIR}
 .endfor
 
+post-install:
+	${INSTALL_DATA} ${WRKSRC}/repmgr.conf.sample ${STAGEDIR}${PREFIX}/etc
+	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/repmgr
+	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/repmgrd
+	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/postgresql/repmgr.so
+
 .include <bsd.port.mk>
diff --git a/databases/postgresql-repmgr/distinfo b/databases/postgresql-repmgr/distinfo
index 362b8e6e2016..cc7471086734 100644
--- a/databases/postgresql-repmgr/distinfo
+++ b/databases/postgresql-repmgr/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1603484572
-SHA256 (repmgr-5.2.0.tar.gz) = 7e4b6f2e60a90235db143d185e9f5b60db3f07c4610833129f8f90bd1c5d7b85
-SIZE (repmgr-5.2.0.tar.gz) = 446137
+TIMESTAMP = 1653677536
+SHA256 (repmgr-5.3.2.tar.gz) = 2d9be1d9a7a55b25855e805252c394d67ac4e3c04ee80d4aa984b8ffc7a9a3a2
+SIZE (repmgr-5.3.2.tar.gz) = 456455
diff --git a/databases/postgresql-repmgr/files/patch-Makefile.in b/databases/postgresql-repmgr/files/patch-Makefile.in
new file mode 100644
index 000000000000..dd356136506c
--- /dev/null
+++ b/databases/postgresql-repmgr/files/patch-Makefile.in
@@ -0,0 +1,15 @@
+--- Makefile.in.orig	2022-05-25 06:59:51 UTC
++++ Makefile.in
+@@ -79,10 +79,10 @@ repmgr: $(REPMGR_CLIENT_OBJS)
+ $(REPMGR_CLIENT_OBJS): repmgr-client.h repmgr_version.h
+ 
+ repmgr: $(REPMGR_CLIENT_OBJS)
+-	$(CC) $(CFLAGS) $(REPMGR_CLIENT_OBJS) $(libpq_pgport) $(LDFLAGS) $(LDFLAGS_EX) -o $@$(X)
++	$(CC) $(CFLAGS) $(REPMGR_CLIENT_OBJS) $(libpq_pgport) $(LDFLAGS) $(LDFLAGS_EX) $(LIBS) -o $@$(X)
+ 
+ repmgrd: $(REPMGRD_OBJS)
+-	$(CC) $(CFLAGS) $(REPMGRD_OBJS) $(libpq_pgport) $(LDFLAGS) $(LDFLAGS_EX) -o $@$(X)
++	$(CC) $(CFLAGS) $(REPMGRD_OBJS) $(libpq_pgport) $(LDFLAGS) $(LDFLAGS_EX) $(LIBS) -o $@$(X)
+ 
+ $(REPMGR_CLIENT_OBJS): $(HEADERS)
+ $(REPMGRD_OBJS): $(HEADERS)
diff --git a/databases/postgresql-repmgr/pkg-descr b/databases/postgresql-repmgr/pkg-descr
index a45d06d0f05f..e80296353320 100644
--- a/databases/postgresql-repmgr/pkg-descr
+++ b/databases/postgresql-repmgr/pkg-descr
@@ -1,4 +1,4 @@
 repmgr allows you to monitor and manage your replicated PostgreSQL
 databases as a single cluster.
 
-WWW: http://projects.2ndquadrant.com/repmgr
+WWW: https://repmgr.org/
diff --git a/databases/postgresql-repmgr/pkg-plist b/databases/postgresql-repmgr/pkg-plist
index c34fc85afa45..d426a885625d 100644
--- a/databases/postgresql-repmgr/pkg-plist
+++ b/databases/postgresql-repmgr/pkg-plist
@@ -16,8 +16,11 @@ share/postgresql/extension/repmgr--5.0--5.1.sql
 share/postgresql/extension/repmgr--5.1.sql
 share/postgresql/extension/repmgr--5.1--5.2.sql
 share/postgresql/extension/repmgr--5.2.sql
+share/postgresql/extension/repmgr--5.2--5.3.sql
+share/postgresql/extension/repmgr--5.3.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--unpackaged--5.3.sql
 share/postgresql/extension/repmgr.control
 @sample etc/repmgr.conf.sample