pkgsrc/databases/py-barman/Makefile
adam f2b4163df7 py-barman: updated to 2.5
Version 2.5:

- Add support for PostgreSQL 11

- Add check-backup command to verify that WAL files required for
   consistency of a base backup are present in the archive. Barman now
   adds a new state (WAITING_FOR_WALS) after completing a base backup,
   and sets it to DONE once it has verified that all WAL files from
   start to the end of the backup exist. This command is included in
   the regular cron maintenance job. Barman now notifies users
   attempting to recover a backup that is in WAITING_FOR_WALS state.

- Allow switch-xlog --archive to work on a standby (just for the
   archive part)

- Bug fixes:
  - Fix decoding errors reading external commands output
  - Fix documentation regarding WAL streaming and backup from
        standby
2019-01-04 22:20:41 +00:00

58 lines
1.8 KiB
Makefile

# $NetBSD: Makefile,v 1.12 2019/01/04 22:20:41 adam Exp $
DISTNAME= barman-2.5
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= databases python
MASTER_SITES= ${MASTER_SITE_PYPI:=b/barman/}
MAINTAINER= fhajny@NetBSD.org
HOMEPAGE= http://www.pgbarman.org/
COMMENT= Backup and Recovery Manager for PostgreSQL
LICENSE= gnu-gpl-v3
DEPENDS+= ${PYPKGPREFIX}-argcomplete-[0-9]*:../../devel/py-argcomplete
DEPENDS+= ${PYPKGPREFIX}-argh>=0.21.2:../../devel/py-argh
DEPENDS+= ${PYPKGPREFIX}-dateutil-[0-9]*:../../time/py-dateutil
DEPENDS+= ${PYPKGPREFIX}-psycopg2>=2.4.2:../../databases/py-psycopg2
DEPENDS+= rsync-[0-9]*:../../net/rsync
USE_LANGUAGES= # none
PYTHON_SELF_CONFLICT= yes
CONF_FILES+= share/examples/barman/barman.conf \
${PKG_SYSCONFDIR}/barman.conf
INSTALLATION_DIRS+= share/examples/barman
.include "../../mk/bsd.prefs.mk"
BUILD_DEFS+= VARBASE
BARMAN_DIR?= ${VARBASE}/lib/barman
BARMAN_LOG_DIR?= ${VARBASE}/log/barman
BARMAN_USER= barman
BARMAN_GROUP= ${BARMAN_USER}
PKG_GROUPS+= ${BARMAN_GROUP}
PKG_USERS+= ${BARMAN_USER}:${BARMAN_GROUP}
PKG_GECOS.barman= PG Barman user
PKG_HOME.barman= ${BARMAN_DIR}
OWN_DIRS_PERMS+= ${BARMAN_DIR} ${BARMAN_USER} ${BARMAN_GROUP} 0700
OWN_DIRS_PERMS+= ${BARMAN_LOG_DIR} ${BARMAN_USER} ${BARMAN_GROUP} 0755
SUBST_CLASSES+= path
SUBST_STAGE.path= pre-configure
SUBST_FILES.path= barman/config.py doc/barman.conf setup.py
SUBST_MESSAGE.path= Fixing paths
SUBST_SED.path= -e 's,/etc/,${PKG_SYSCONFDIR}/,g'
SUBST_SED.path+= -e 's,/var/lib/barman,${BARMAN_DIR},g'
SUBST_SED.path+= -e 's,/var/log/barman,${BARMAN_LOG_DIR},g'
SUBST_SED.path+= -e 's,share/man,${PKGMANDIR},g'
post-install:
${INSTALL_DATA} ${WRKSRC}/doc/barman.conf \
${DESTDIR}${PREFIX}/share/examples/barman/barman.conf
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"