Index: head/sysutils/duply/Makefile =================================================================== --- head/sysutils/duply/Makefile (revision 385026) +++ head/sysutils/duply/Makefile (revision 385027) @@ -1,40 +1,43 @@ # Created by: Michael Ranner # $FreeBSD$ PORTNAME= duply -PORTVERSION= 1.7.4 +PORTVERSION= 1.9.1 CATEGORIES= sysutils -MASTER_SITES= SF/ftplicity/${PORTNAME}%20%28simple%20duplicity%29/1.7.x/ +MASTER_SITES= SF/ftplicity/${PORTNAME}%20%28simple%20duplicity%29/1.9.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:${PORTSDIR}/sysutils/duplicity \ bash:${PORTSDIR}/shells/bash +USES= python + NO_BUILD= yes PORTDOCS= INSTALL.txt gpl-2.0.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 Index: head/sysutils/duply/distinfo =================================================================== --- head/sysutils/duply/distinfo (revision 385026) +++ head/sysutils/duply/distinfo (revision 385027) @@ -1,2 +1,2 @@ -SHA256 (duply_1.7.4.tgz) = 2bbcd6e55fcaa7ae2c416a6ce2d3ae0bc219dd05049d8708ff0e79a3349599e7 -SIZE (duply_1.7.4.tgz) = 34887 +SHA256 (duply_1.9.1.tgz) = e5f11c5a31a55de24cc5101a6429ea3eac14c0d3f0d6dec344b687089845efc5 +SIZE (duply_1.9.1.tgz) = 35883 Index: head/sysutils/duply/files/periodic_duply.in =================================================================== --- head/sysutils/duply/files/periodic_duply.in (revision 385026) +++ head/sysutils/duply/files/periodic_duply.in (revision 385027) @@ -1,57 +1,61 @@ #!/bin/sh # # periodic(8) script that runs duply on a nightly basis # # Define these variables in either /etc/periodic.conf or # /etc/periodic.conf.local to override the defaults. # # Configuration Settings (with default values): # # backup_duply_enable="NO" # enable duply backup # # backup_duply_profile="" # default duply profile to use # see duply usage # # backup_duply_command="bkp_status" # default duply commands # # backup_duply_opt="" # options passed to duply # # backup_duply_random="0" # randomize backup time # if [ -r /etc/defaults/periodic.conf ] then . /etc/defaults/periodic.conf source_periodic_confs fi : ${backup_duply_enable}="NO" : ${backup_duply_command}="bkp_status" : ${backup_duply_profile}="" : ${backup_duply_opt}="" : ${backup_duply_random}="0" PATH=/bin:/sbin:/usr/bin:/usr/sbin:%%LOCALBASE%%/bin:%%LOCALBASE%%/sbin export PATH case "$backup_duply_enable" in [Yy][Ee][Ss]) eval sleep $(jot -r 1 0 ${backup_duply_random}) echo echo "Duply Backup:" - eval duply ${backup_duply_profile} ${backup_duply_command} ${backup_duply_opt} - if [ $? -gt 0 ] - then - echo "Errors were reported during backup." - rc=3 - fi - ;; + for duply_profile in ${backup_duply_profile} + do + eval duply ${duply_profile} ${backup_duply_command} ${backup_duply_opt} + if [ $? -gt 0 ] + then + echo "Errors were reported during backup." + rc=3 + break + fi + done + ;; esac exit $rc