2013-09-20 18:13:47 +02:00
|
|
|
# Created by: alp@sfedu.ru
|
2011-01-18 14:10:35 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2011-08-25 17:04:16 +02:00
|
|
|
PORTNAME= postgresql-repmgr
|
2015-03-08 12:48:25 +01:00
|
|
|
PORTVERSION= 2.0.2
|
2011-08-25 17:04:16 +02:00
|
|
|
CATEGORIES= databases
|
2012-12-10 03:27:32 +01:00
|
|
|
MASTER_SITES= http://www.repmgr.org/download/
|
2011-08-25 17:04:16 +02:00
|
|
|
DISTNAME= repmgr-${PORTVERSION}
|
2011-01-18 14:10:35 +01:00
|
|
|
|
2014-12-24 01:14:11 +01:00
|
|
|
MAINTAINER= bofh@FreeBSD.org
|
2011-08-25 17:04:16 +02:00
|
|
|
COMMENT= PostgreSQL replication manager
|
2011-01-18 14:10:35 +01:00
|
|
|
|
2013-10-22 05:19:13 +02:00
|
|
|
LICENSE= GPLv3
|
2011-01-18 14:10:35 +01:00
|
|
|
|
2013-10-22 05:19:13 +02:00
|
|
|
RUN_DEPENDS= rsync:${PORTSDIR}/net/rsync
|
|
|
|
|
2014-08-25 19:53:26 +02:00
|
|
|
USES+= gmake pgsql:9.0+
|
2014-11-18 16:47:34 +01:00
|
|
|
USE_RC_SUBR= repmgrd
|
2014-08-25 19:53:26 +02:00
|
|
|
WANT_PGSQL= server
|
2011-08-25 17:04:16 +02:00
|
|
|
MAKE_ENV= USE_PGXS=1
|
2011-01-18 14:10:35 +01:00
|
|
|
|
2013-10-22 05:19:13 +02:00
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
|
2011-01-18 14:10:35 +01:00
|
|
|
do-install:
|
2013-10-22 05:19:13 +02:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/repmgr ${STAGEDIR}${PREFIX}/bin
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/repmgrd ${STAGEDIR}${PREFIX}/sbin
|
2014-11-18 16:47:34 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/repmgr.conf.sample ${STAGEDIR}${PREFIX}/etc
|
2013-10-22 05:19:13 +02:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README.rst ${STAGEDIR}${DOCSDIR}
|
|
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/repmgr.sql ${STAGEDIR}${DATADIR}
|
2014-12-14 18:59:53 +01:00
|
|
|
${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
|
|
|
|
|
2011-01-18 14:10:35 +01:00
|
|
|
.include <bsd.port.mk>
|