blob: 9b8ff2f15334348a18933e1dd1efb511b77e4b09 (
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
|
# Created by: Michael Ranner <michael@ranner.eu>
# $FreeBSD$
PORTNAME= duply
PORTVERSION= 1.10.1
CATEGORIES= sysutils
MASTER_SITES= SF/ftplicity/${PORTNAME}%20%28simple%20duplicity%29/${PORTVERSION:R}.x/
DISTNAME= ${PORTNAME}_${PORTVERSION}
EXTRACT_SUFX= .tgz
MAINTAINER= michael@ranner.eu
COMMENT= Shell front end for the duplicity backup tool
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/gpl-2.0.txt
RUN_DEPENDS= duplicity:sysutils/duplicity \
bash:shells/bash
USES= python
NO_BUILD= yes
PORTDOCS= INSTALL.txt
PLIST_FILES= bin/duply ${PERIODICDIR}/${PERIODICFILE}
PERIODICFILE?= 300.duply
PERIODICDIR?= ${PREFIX}/etc/periodic/backup
SUB_FILES= pkg-message periodic_duply
post-patch:
${REINPLACE_CMD} -e "s,/etc/duply,${ETCDIR},g" ${WRKSRC}/duply
${REINPLACE_CMD} -e "s,(python,(${PYTHON_CMD},g" ${WRKSRC}/duply
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/duply ${STAGEDIR}${PREFIX}/bin/duply
@${MKDIR} ${STAGEDIR}${PERIODICDIR}
${INSTALL_SCRIPT} ${WRKDIR}/periodic_duply ${STAGEDIR}${PERIODICDIR}/${PERIODICFILE}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
. for i in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
. endfor
.include <bsd.port.mk>
|