mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
- Update to 2.0
- Pass maintainership to submitter Changes: http://www.repmgr.org/release-notes-2.0.html PR: ports/189775 Submitted by: Muhammad Moinur Rahman <5u623l20@gmail.com>
This commit is contained in:
parent
397b107367
commit
e689d5eb5e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=355026
4 changed files with 10 additions and 39 deletions
|
@ -2,19 +2,19 @@
|
|||
# $FreeBSD$
|
||||
|
||||
PORTNAME= postgresql-repmgr
|
||||
PORTVERSION= 1.2.0
|
||||
PORTVERSION= 2.0
|
||||
CATEGORIES= databases
|
||||
MASTER_SITES= http://www.repmgr.org/download/
|
||||
DISTNAME= repmgr-${PORTVERSION}
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
MAINTAINER= 5u623l20@gmail.com
|
||||
COMMENT= PostgreSQL replication manager
|
||||
|
||||
LICENSE= GPLv3
|
||||
|
||||
RUN_DEPENDS= rsync:${PORTSDIR}/net/rsync
|
||||
|
||||
USES= gmake
|
||||
USES= gmake
|
||||
USE_PGSQL= yes
|
||||
WANT_PGSQL_VER= 90+
|
||||
MAKE_ENV= USE_PGXS=1
|
||||
|
@ -29,7 +29,7 @@ do-install:
|
|||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/README.rst ${STAGEDIR}${DOCSDIR}
|
||||
@${MKDIR} ${STAGEDIR}${DATADIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/repmgr.conf ${STAGEDIR}${DATADIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/repmgr.conf.sample ${STAGEDIR}${DATADIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/repmgr.sql ${STAGEDIR}${DATADIR}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
SHA256 (repmgr-1.2.0.tar.gz) = 191c077a15b9f7fa729b8f1c4e5ace8b340fda6285c7b552545f94ca4490ec5b
|
||||
SIZE (repmgr-1.2.0.tar.gz) = 51608
|
||||
SHA256 (repmgr-2.0.tar.gz) = b891d8a98700f73a58ce9580377978a1e43834f3bdcf6992e565b4aacddee887
|
||||
SIZE (repmgr-2.0.tar.gz) = 72227
|
||||
|
|
|
@ -1,35 +1,6 @@
|
|||
--- ./repmgr.c.orig 2012-07-28 02:30:35.000000000 +1000
|
||||
+++ ./repmgr.c 2012-12-04 19:41:06.157429458 +1100
|
||||
@@ -28,6 +28,7 @@
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
+#include <sys/wait.h>
|
||||
#include <time.h>
|
||||
#include <unistd.h>
|
||||
|
||||
@@ -1603,11 +1604,18 @@
|
||||
char script[MAXLEN];
|
||||
int r;
|
||||
|
||||
+/* On some OS, true is located in a different place than in Linux */
|
||||
+#ifdef __FreeBSD__
|
||||
+#define TRUEBIN_PATH "/usr/bin/true"
|
||||
+#else
|
||||
+#define TRUEBIN_PATH "/bin/true"
|
||||
+#endif
|
||||
+
|
||||
/* Check if we have ssh connectivity to host before trying to rsync */
|
||||
if (!remote_user[0])
|
||||
- maxlen_snprintf(script, "ssh -o Batchmode=yes %s /bin/true", host);
|
||||
+ maxlen_snprintf(script, "ssh -o Batchmode=yes %s %s", host, TRUEBIN_PATH);
|
||||
else
|
||||
- maxlen_snprintf(script, "ssh -o Batchmode=yes %s -l %s /bin/true", host, remote_user);
|
||||
+ maxlen_snprintf(script, "ssh -o Batchmode=yes %s -l %s %s", host, remote_user, TRUEBIN_PATH);
|
||||
|
||||
log_debug(_("command is: %s"), script);
|
||||
r = system(script);
|
||||
@@ -1625,7 +1633,7 @@
|
||||
--- repmgr.c.orig 2014-03-17 21:27:40.000000000 +0800
|
||||
+++ repmgr.c 2014-05-24 17:55:10.996404127 +0800
|
||||
@@ -1871,7 +1871,7 @@
|
||||
char host_string[MAXLEN];
|
||||
int r;
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
bin/repmgr
|
||||
sbin/repmgrd
|
||||
%%PORTDATA%%%%DATADIR%%/repmgr.conf
|
||||
%%PORTDATA%%%%DATADIR%%/repmgr.conf.sample
|
||||
%%PORTDATA%%%%DATADIR%%/repmgr.sql
|
||||
%%PORTDATA%%@dirrm %%DATADIR%%
|
||||
|
|
Loading…
Add table
Reference in a new issue