From e5719f353b1bf811d4dd68df3d3f9da0c354cce4 Mon Sep 17 00:00:00 2001 From: danfe Date: Thu, 24 Jul 2014 15:15:41 +0000 Subject: - Our date(1) does not support -r switch the way GNU date(1) does; instead of pulling gdate(1) dependency use stat(1) command to obtain modification time - Fix whitespace in Makefile, improve `do-install' target, and fix a typo and bogus EOL space in pkg-descr while I'm here PR: 192072 --- sysutils/tartarus/Makefile | 19 ++++++++++--------- sysutils/tartarus/files/patch-bin__tartarus | 9 +++++++++ sysutils/tartarus/pkg-descr | 2 +- 3 files changed, 20 insertions(+), 10 deletions(-) (limited to 'sysutils') diff --git a/sysutils/tartarus/Makefile b/sysutils/tartarus/Makefile index 0136a2700db..71bef50a413 100644 --- a/sysutils/tartarus/Makefile +++ b/sysutils/tartarus/Makefile @@ -3,29 +3,30 @@ PORTNAME= tartarus PORTVERSION= 0.9.8 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= sysutils MASTER_SITES= http://wertarbyte.de/tartarus/ \ - http://ftp.wilbury.sk/pub/FreeBSD/local/distfiles/ + http://ftp.wilbury.sk/pub/FreeBSD/local/distfiles/ MAINTAINER= otis@sk.FreeBSD.org -COMMENT= Wrappers around common unix tools for simplified backup solution +COMMENT= Wrappers around common Unix tools for simplified backup solution LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/COPYING RUN_DEPENDS= ${LOCALBASE}/bin/bash:${PORTSDIR}/shells/bash \ - ${LOCALBASE}/bin/gtar:${PORTSDIR}/archivers/gtar \ - ${LOCALBASE}/bin/curl:${PORTSDIR}/ftp/curl + ${LOCALBASE}/bin/gtar:${PORTSDIR}/archivers/gtar \ + ${LOCALBASE}/bin/curl:${PORTSDIR}/ftp/curl USES= gmake perl5 shebangfix tar:bzip2 SHEBANG_FILES= ${WRKSRC}/bin/* do-install: - cd ${WRKSRC}/bin; ${INSTALL_SCRIPT} charon charon.ftp charon.local \ + cd ${WRKSRC}/bin && ${INSTALL_SCRIPT} charon charon.ftp charon.local \ charon.pipe orpheus tartarus ${STAGEDIR}${PREFIX}/bin - cd ${WRKSRC}/lib; ${COPYTREE_SHARE} Tartarus ${STAGEDIR}${SITE_PERL} - cd ${WRKSRC}/man; ${INSTALL_MAN} charon.1 charon.ftp.1 charon.local.1 \ - charon.pipe.1 tartarus.1 ${STAGEDIR}${MANPREFIX}/man/man1 + cd ${WRKSRC}/lib && ${COPYTREE_SHARE} Tartarus ${STAGEDIR}${SITE_PERL} + cd ${WRKSRC}/man && ${INSTALL_MAN} charon.ftp.1 charon.local.1 \ + charon.pipe.1 tartarus.1 ${STAGEDIR}${PREFIX}/man/man1 + ${LN} -sf charon.ftp.1 ${STAGEDIR}${PREFIX}/man/man1/charon.1 .include diff --git a/sysutils/tartarus/files/patch-bin__tartarus b/sysutils/tartarus/files/patch-bin__tartarus index a8098b86ef6..0b0a44b39c2 100644 --- a/sysutils/tartarus/files/patch-bin__tartarus +++ b/sysutils/tartarus/files/patch-bin__tartarus @@ -56,6 +56,15 @@ #=back # #=cut +@@ -616,7 +649,7 @@ + constructFilename() { + local INC="" + if isEnabled "$INCREMENTAL_BACKUP"; then +- local BASEDON=$(date -r "$INCREMENTAL_TIMESTAMP_FILE" '+%Y%m%d-%H%M') ++ local BASEDON=$(stat -f '%Sm' -t '%Y%m%d-%H%M' "$INCREMENTAL_TIMESTAMP_FILE") + INC="-inc-${BASEDON}" + fi + local CHUNK="" @@ -638,10 +671,10 @@ case "$ASSEMBLY_METHOD" in tar|"") diff --git a/sysutils/tartarus/pkg-descr b/sysutils/tartarus/pkg-descr index a3862f8aeba..fe19082a9ac 100644 --- a/sysutils/tartarus/pkg-descr +++ b/sysutils/tartarus/pkg-descr @@ -6,7 +6,7 @@ It has the ability to do full as well as incremental backups and is published by Stefan Tomanek under the rules of the GPL. Instead of relying on single usage backup scripts or complicated command lines, -tartarus reads its configuration from easily managable configuration files. +tartarus reads its configuration from easily manageable configuration files. It can store gathered data in regular files, or upload the backup directly (on the fly) to an FTP server. For more specific usage scenarios, custom methods can also be defined within the config file. -- cgit