freebsd-ports/databases/postgresql-repmgr/Makefile
Matthew Seaman c74922e73f * Drop the patches replacing strnlen() -- this function is
available in libc for all currently supported versions of
     FreeBSD.

   * Install the default config file into
     ${PREFIX}/etc/repmgr.conf.sample and uses the standard @sample
     plist functionality.  This is where hier(7) expects config files
     to be installed.

   * Add an rc.d script to start up repmgrd automatically on system
     boot, which relies on the config file being in ${PREFIX}/etc/.

PR:		195106
Submitted by:	matthew
Approved by:	5u623l20@gmail.com (maintainer)
2014-11-18 15:47:34 +00:00

34 lines
860 B
Makefile

# Created by: alp@sfedu.ru
# $FreeBSD$
PORTNAME= postgresql-repmgr
PORTVERSION= 2.0
PORTREVISION= 2
CATEGORIES= databases
MASTER_SITES= http://www.repmgr.org/download/
DISTNAME= repmgr-${PORTVERSION}
MAINTAINER= 5u623l20@gmail.com
COMMENT= PostgreSQL replication manager
LICENSE= GPLv3
RUN_DEPENDS= rsync:${PORTSDIR}/net/rsync
USES+= gmake pgsql:9.0+
USE_RC_SUBR= repmgrd
WANT_PGSQL= server
MAKE_ENV= USE_PGXS=1
OPTIONS_DEFINE= DOCS
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/repmgr ${STAGEDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/repmgrd ${STAGEDIR}${PREFIX}/sbin
${INSTALL_DATA} ${WRKSRC}/repmgr.conf.sample ${STAGEDIR}${PREFIX}/etc
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README.rst ${STAGEDIR}${DOCSDIR}
@${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKSRC}/repmgr.sql ${STAGEDIR}${DATADIR}
.include <bsd.port.mk>