Update sysutils/filelight to version 20.04.0
[dports.git] / sysutils / duply / Makefile
1 # Created by: Michael Ranner <michael@ranner.eu>
2 # $FreeBSD$
3
4 PORTNAME=       duply
5 PORTVERSION=    2.1
6 PORTREVISION=   1
7 CATEGORIES=     sysutils
8 MASTER_SITES=   https://duply.net/projects/ftplicity/files/duply%20%28simple%20duplicity%29/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/}.x/
9 DISTNAME=       ${PORTNAME}_${PORTVERSION}
10
11 MAINTAINER=     michael@ranner.eu
12 COMMENT=        Shell front end for the duplicity backup tool
13
14 LICENSE=        GPLv2
15 LICENSE_FILE=   ${WRKSRC}/gpl-2.0.txt
16
17 RUN_DEPENDS=    duplicity:sysutils/duplicity \
18                 bash:shells/bash
19
20 USES=           python tar:tgz
21
22 NO_ARCH=        yes
23 NO_BUILD=       yes
24
25 PLIST_FILES=    bin/duply ${PERIODICDIR}/${PERIODICFILE}
26 PERIODICFILE?=  300.duply
27 PERIODICDIR?=   ${PREFIX}/etc/periodic/backup
28 SUB_FILES=      pkg-message periodic_duply
29
30 OPTIONS_DEFINE= DOCS
31
32 post-patch:
33         ${REINPLACE_CMD} -e "s,/etc/duply,${ETCDIR},g" ${WRKSRC}/duply
34
35 do-install:
36         ${INSTALL_SCRIPT} ${WRKSRC}/duply ${STAGEDIR}${PREFIX}/bin/duply
37         @${MKDIR} ${STAGEDIR}${PERIODICDIR}
38         ${INSTALL_SCRIPT} ${WRKDIR}/periodic_duply ${STAGEDIR}${PERIODICDIR}/${PERIODICFILE}
39
40 .include <bsd.port.mk>