pkgsrc/databases/repmgr/Makefile
adam 63109d12ef repmgr: updated to 5.0.0
repmgr 5.0 is a major release.
* Configuration file parsing has been made stricter
* Some "repmgr daemon ..." commands renamed
* Some deprecated command line options removed
* Support for PostgreSQL 12 added.
* The repmgr configuration file is now parsed using flex, meaning it will be parsed in the same way as PostgreSQL parses its own configuration files.
* repmgr standby clone: checks for availability of the repmgr extension on the upstream node have been improved and error messages improved.
* When executing repmgr remotely, if the repmgr log level was explicitly provided (with -L/--log-level), that log level will be passed to the remote repmgr.
* Bug fixes
2019-10-26 23:39:04 +00:00

46 lines
1.2 KiB
Makefile

# $NetBSD: Makefile,v 1.8 2019/10/26 23:39:04 adam Exp $
DISTNAME= repmgr-5.0.0
PKGNAME= postgresql${PGSQL_VERSION}-${DISTNAME}
CATEGORIES= databases
MASTER_SITES= https://repmgr.org/download/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://repmgr.org/
COMMENT= Replication Manager for PostgreSQL clusters
LICENSE= gnu-gpl-v3
DEPENDS+= postgresql${PGSQL_VERSION}-server>=0:../../databases/postgresql${PGSQL_VERSION}-server
USE_TOOLS+= gmake
GNU_CONFIGURE= yes
PKG_SYSCONFSUBDIR= postgresql
BUILD_DEFS+= PGUSER PGGROUP PGHOME
FILES_SUBST+= PGUSER=${PGUSER} PGGROUP=${PGGROUP} PGHOME=${PGHOME}
DOCDIR= share/doc/repmgr
EGDIR= share/examples/repmgr
SMF_NAME= postgresql-repmgr
INSTALLATION_DIRS+= ${DOCDIR} ${EGDIR}
CONF_FILES_PERMS+= ${EGDIR}/repmgr.conf.sample \
${PKG_SYSCONFDIR}/repmgr.conf \
${REAL_ROOT_USER} ${PGGROUP} 0640
PLIST_VARS+= llvm
.include "../../mk/pgsql.buildlink3.mk"
.if !empty(PKG_OPTIONS.postgresql${PGSQL_VERSION}:Mllvm)
PLIST.llvm= yes
.endif
post-install:
${INSTALL_DATA} ${WRKSRC}/README.md \
${DESTDIR}${PREFIX}/${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/repmgr.conf.sample \
${DESTDIR}${PREFIX}/${EGDIR}
.include "../../mk/readline.buildlink3.mk"
.include "../../textproc/libxml2/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"