Index: Makefile =================================================================== --- Makefile +++ Makefile @@ -1,11 +1,11 @@ # Created by: alp@sfedu.ru # $FreeBSD$ -PORTNAME= postgresql-repmgr +PORTNAME= repmgr PORTVERSION= 4.2.0 +PORTREVISION= 1 CATEGORIES= databases MASTER_SITES= http://www.repmgr.org/download/ -DISTNAME= repmgr-${PORTVERSION} MAINTAINER= bofh@FreeBSD.org COMMENT= PostgreSQL replication manager @@ -14,8 +14,16 @@ RUN_DEPENDS= rsync:net/rsync -USES+= gettext gmake pgsql:9.3+ +FLAVORS= pgsql94 pgsql95 pgsql96 pgsql10 pgsql11 +FLAVOR?= ${FLAVORS:[2]} +pgsql94_PKGNAMEPREFIX= postgresql94- +pgsql95_PKGNAMEPREFIX= postgresql95- +pgsql96_PKGNAMEPREFIX= postgresql96- +pgsql10_PKGNAMEPREFIX= postgresql10- +pgsql11_PKGNAMEPREFIX= postgresql11- +USES= gettext gmake + GNU_CONFIGURE= yes LLD_UNSAFE= yes USE_RC_SUBR= repmgrd @@ -28,6 +36,22 @@ PORTDOCS= CONTRIBUTING.md COPYRIGHT CREDITS FAQ.md HISTORY LICENSE PACKAGES.md \ README.md +.if ${FLAVOR} == pgsql94 +USES+= pgsql:9.4 +.endif +.if ${FLAVOR} == pgsql95 +USES+= pgsql:9.5 +.endif +.if ${FLAVOR} == pgsql96 +USES+= pgsql:9.6 +.endif +.if ${FLAVOR} == pgsql10 +USES+= pgsql:10 +.endif +.if ${FLAVOR} == pgsql11 +USES+= pgsql:11 +.endif + post-install: ${INSTALL_DATA} ${WRKSRC}/repmgr.conf.sample ${STAGEDIR}${PREFIX}/etc ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/repmgr