Date: Tue, 13 May 2014 22:36:12 +0600 (BDT) From: Muhammad Moinur Rahman <5u623l20@gmail.com> To: FreeBSD-gnats-submit@FreeBSD.org Cc: alp@sfedu.ru Subject: ports/189775: [PATCH] databases/postgresql-repmgr: update to 2.0, take maintainership Message-ID: <201405131636.s4DGaCLF065244@bofh.1asiacom.net> Resent-Message-ID: <201405131640.s4DGe05a076148@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 189775 >Category: ports >Synopsis: [PATCH] databases/postgresql-repmgr: update to 2.0, take maintainership >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Tue May 13 16:40:00 UTC 2014 >Closed-Date: >Last-Modified: >Originator: Muhammad Moinur Rahman >Release: FreeBSD 11.0-CURRENT amd64 >Organization: >Environment: System: FreeBSD bofh.1asiacom.net 11.0-CURRENT FreeBSD 11.0-CURRENT #1 r263870: Fri Mar 28 16:37:49 BDT >Description: - Update to 2.0 - Take maintainership For Committer's reference: http://pdr.s.ubze.ro/bulk/latest-per-pkg/postgresql-repmgr/2.0/ Requesting maintainership as current maintainer no longer wants to maintain it ports@ Port maintainer (alp@sfedu.ru) is cc'd. Generated with FreeBSD Port Tools 1.02 (mode: update, diff: ports) >How-To-Repeat: >Fix: --- postgresql-repmgr-2.0.patch begins here --- diff -ruN /usr/ports//databases/postgresql-repmgr/Makefile ./Makefile --- /usr/ports//databases/postgresql-repmgr/Makefile 2013-10-22 09:19:13.000000000 +0600 +++ ./Makefile 2014-05-13 22:21:45.397553393 +0600 @@ -2,12 +2,12 @@ # $FreeBSD: head/databases/postgresql-repmgr/Makefile 331217 2013-10-22 03:19:13Z danilo $ PORTNAME= postgresql-repmgr -PORTVERSION= 1.2.0 +PORTVERSION= 2.0 CATEGORIES= databases MASTER_SITES= http://www.repmgr.org/download/ DISTNAME= repmgr-${PORTVERSION} -MAINTAINER= alp@sfedu.ru +MAINTAINER= 5u623l20@gmail.com COMMENT= PostgreSQL replication manager LICENSE= GPLv3 @@ -29,7 +29,7 @@ @${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> diff -ruN /usr/ports//databases/postgresql-repmgr/distinfo ./distinfo --- /usr/ports//databases/postgresql-repmgr/distinfo 2012-12-10 08:27:32.000000000 +0600 +++ ./distinfo 2014-05-13 22:13:30.421588094 +0600 @@ -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 diff -ruN /usr/ports//databases/postgresql-repmgr/files/patch-repmgr.c ./files/patch-repmgr.c --- /usr/ports//databases/postgresql-repmgr/files/patch-repmgr.c 2012-12-10 08:27:32.000000000 +0600 +++ ./files/patch-repmgr.c 2014-05-13 22:19:38.813562176 +0600 @@ -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 @@ +@@ -1871,7 +1871,7 @@ char host_string[MAXLEN]; int r; diff -ruN /usr/ports//databases/postgresql-repmgr/pkg-plist ./pkg-plist --- /usr/ports//databases/postgresql-repmgr/pkg-plist 2014-01-22 21:16:56.000000000 +0600 +++ ./pkg-plist 2014-05-13 22:21:35.158554576 +0600 @@ -1,5 +1,5 @@ bin/repmgr sbin/repmgrd -%%PORTDATA%%%%DATADIR%%/repmgr.conf +%%PORTDATA%%%%DATADIR%%/repmgr.conf.sample %%PORTDATA%%%%DATADIR%%/repmgr.sql %%PORTDATA%%@dirrm %%DATADIR%% --- postgresql-repmgr-2.0.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201405131636.s4DGaCLF065244>