aboutsummaryrefslogtreecommitdiffstats
path: root/databases/pgbarman/Makefile
blob: 70e85126d8e1c488e3629f401da1a7e988e66c8f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Created by: Matthew Seaman
# $FreeBSD$

PORTNAME=   barman
DISTVERSION=    1.6.0
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:net/rsync                     \
        ${PYTHON_PKGNAMEPREFIX}psycopg2>0:databases/py-psycopg2 \
        ${PYTHON_PKGNAMEPREFIX}dateutil>=2.1:devel/py-dateutil  \
        ${PYTHON_PKGNAMEPREFIX}argh>=0.21.2:devel/py-argh \
        ${PYTHON_PKGNAMEPREFIX}argcomplete>0:devel/py-argcomplete

NO_ARCH=    yes

USERS=      barman
GROUPS=     barman

USES=       pgsql python
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 <bsd.port.mk>