forked from Lainports/freebsd-ports
- Update MASTER_SITES - Assign with expansion for RUN_DEPENDS -> BUILD_DEPENDS - Remove patch-strnlen after refactoring changes into new patches - Add patch to fix compilation by cherrypicking a commit in 2.x - Trim Makefile header PR: ports/174216 Submitted by: Kubilay Kocak <koobs.freebsd@gmail.com> (maintainer) Approved by: Alexander Pyhalov <alp@rsu.ru> (maintainer)
35 lines
859 B
Makefile
35 lines
859 B
Makefile
# Created by: alp@sfedu.ru
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= postgresql-repmgr
|
|
PORTVERSION= 1.2.0
|
|
CATEGORIES= databases
|
|
MASTER_SITES= http://www.repmgr.org/download/
|
|
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
|
|
|
|
USE_GMAKE= yes
|
|
MAKE_ENV= USE_PGXS=1
|
|
|
|
PORTDOCS= README.*
|
|
|
|
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
|
|
|
|
.include <bsd.port.mk>
|