From cf965dab9a209495fe57bb15e88fcdf1fb7ee028 Mon Sep 17 00:00:00 2001 From: Danilo Egea Gondolfo Date: Tue, 22 Oct 2013 03:19:13 +0000 Subject: - Convert {BUILD,RUN}_DEPENDS to USE_PGSQL [1] - Add LICENSE - Convert USE_GMAKE to USES - Add DOCS option - Add stage support PR: ports/183166 Submitted by: Alexander Pyhalov (maintainer) [1] --- databases/postgresql-repmgr/Makefile | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) (limited to 'databases/postgresql-repmgr') diff --git a/databases/postgresql-repmgr/Makefile b/databases/postgresql-repmgr/Makefile index 52bf95ac835b..ae636780ab74 100644 --- a/databases/postgresql-repmgr/Makefile +++ b/databases/postgresql-repmgr/Makefile @@ -10,27 +10,26 @@ DISTNAME= repmgr-${PORTVERSION} MAINTAINER= alp@sfedu.ru COMMENT= PostgreSQL replication manager -BUILD_DEPENDS= postgresql-server>=9.0:${PORTSDIR}/databases/postgresql90-server -RUN_DEPENDS:= ${BUILD_DEPENDS} \ - rsync:${PORTSDIR}/net/rsync +LICENSE= GPLv3 -USE_GMAKE= yes +RUN_DEPENDS= rsync:${PORTSDIR}/net/rsync + +USES= gmake +USE_PGSQL= yes +WANT_PGSQL_VER= 90+ MAKE_ENV= USE_PGXS=1 +OPTIONS_DEFINE= DOCS + PORTDOCS= README.* -NO_STAGE= yes do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/repmgr ${PREFIX}/bin - ${INSTALL_PROGRAM} ${WRKSRC}/repmgrd ${PREFIX}/sbin -.if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/README.rst ${DOCSDIR} -.endif -.if !defined(NOPORTDATA) - @${MKDIR} ${DATADIR} - ${INSTALL_DATA} ${WRKSRC}/repmgr.conf ${DATADIR} - ${INSTALL_DATA} ${WRKSRC}/repmgr.sql ${DATADIR} -.endif + ${INSTALL_PROGRAM} ${WRKSRC}/repmgr ${STAGEDIR}${PREFIX}/bin + ${INSTALL_PROGRAM} ${WRKSRC}/repmgrd ${STAGEDIR}${PREFIX}/sbin + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README.rst ${STAGEDIR}${DOCSDIR} + @${MKDIR} ${STAGEDIR}${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/repmgr.conf ${STAGEDIR}${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/repmgr.sql ${STAGEDIR}${DATADIR} .include -- cgit v1.2.3