aboutsummaryrefslogtreecommitdiffstats
path: root/databases/postgresql-repmgr/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'databases/postgresql-repmgr/Makefile')
-rw-r--r--databases/postgresql-repmgr/Makefile22
1 files changed, 10 insertions, 12 deletions
diff --git a/databases/postgresql-repmgr/Makefile b/databases/postgresql-repmgr/Makefile
index 390be67ce8aa..32461212c864 100644
--- a/databases/postgresql-repmgr/Makefile
+++ b/databases/postgresql-repmgr/Makefile
@@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= postgresql-repmgr
-PORTVERSION= 3.3.1
+PORTVERSION= 4.0.1
CATEGORIES= databases
MASTER_SITES= http://www.repmgr.org/download/
DISTNAME= repmgr-${PORTVERSION}
@@ -14,25 +14,23 @@ LICENSE= GPLv3
RUN_DEPENDS= rsync:net/rsync
+GNU_CONFIGURE= yes
USES+= gettext gmake pgsql:9.3+
USE_RC_SUBR= repmgrd
WANT_PGSQL= server
MAKE_ENV= USE_PGXS=1
+LIBS= -L${LOCALBASE}/lib -lintl
OPTIONS_DEFINE= DOCS
-PORTDOCS= CONTRIBUTING.md COPYRIGHT CREDITS FAILOVER.rst FAQ.md HISTORY LICENSE \
- PACKAGES.md QUICKSTART.md README.md SSH-RSYNC.md TODO
-do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/repmgr ${STAGEDIR}${PREFIX}/bin
- ${INSTALL_PROGRAM} ${WRKSRC}/repmgrd ${STAGEDIR}${PREFIX}/sbin
+PORTDOCS= CONTRIBUTING.md COPYRIGHT CREDITS FAQ.md HISTORY LICENSE PACKAGES.md \
+ README.md
+
+post-install:
${INSTALL_DATA} ${WRKSRC}/repmgr.conf.sample ${STAGEDIR}${PREFIX}/etc
- @${MKDIR} ${STAGEDIR}${DATADIR}
- ${INSTALL_DATA} ${WRKSRC}/repmgr.sql ${STAGEDIR}${DATADIR}
- ${INSTALL_DATA} ${WRKSRC}/sql/repmgr_funcs.sql ${STAGEDIR}${DATADIR}
- ${INSTALL_DATA} ${WRKSRC}/sql/uninstall_repmgr_funcs.sql ${STAGEDIR}${DATADIR}
- @${MKDIR} ${STAGEDIR}${PREFIX}/lib/postgresql
- ${INSTALL_LIB} ${WRKSRC}/sql/repmgr_funcs.so ${STAGEDIR}${PREFIX}/lib/postgresql
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/repmgr
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/repmgrd
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/postgresql/repmgr.so
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}