# Created by: Matthew Seaman # $FreeBSD$ PORTNAME= barman DISTVERSION= 1.4.1 CATEGORIES= databases MASTER_SITES= SF/${PKGNAMEPREFIX}${PORTNAME}/${DISTVERSION} PKGNAMEPREFIX= pg DISTFILES= ${DISTNAME}${EXTRACT_SUFX} barman-tutorial.en.pdf EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} MAINTAINER= matthew@FreeBSD.org COMMENT= Backup and recovery manager for PostgreSQL LICENSE= GPLv3 RUN_DEPENDS= rsync:${PORTSDIR}/net/rsync \ ${PYTHON_PKGNAMEPREFIX}psycopg2>0:${PORTSDIR}/databases/py-psycopg2 \ ${PYTHON_PKGNAMEPREFIX}dateutil>=2.1:${PORTSDIR}/devel/py-dateutil \ ${PYTHON_PKGNAMEPREFIX}argh>0:${PORTSDIR}/devel/py-argh USERS= barman GROUPS= barman USES= python pgsql WANT_PGSQL= client USE_PYTHON= autoplist distutils PORTDOCS= barman-tutorial.en.pdf post-extract: ${CP} ${DISTDIR}/${PORTDOCS} ${WRKDIR}/ post-patch: ${SED} -i -e "s@%%PREFIX%%@${PREFIX}@" ${WRKSRC}/barman/config.py post-install: ${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_MAN} ${WRKDIR}/${PORTDOCS} ${STAGEDIR}${DOCSDIR} ${MKDIR} ${STAGEDIR}${ETCDIR} ${INSTALL_DATA} ${WRKSRC}/doc/barman.conf ${STAGEDIR}${ETCDIR}/barman.conf.sample .include