Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Jul 2014 15:15:42 +0000 (UTC)
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r362804 - in head/sysutils/tartarus: . files
Message-ID:  <201407241515.s6OFFgQn091913@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danfe
Date: Thu Jul 24 15:15:41 2014
New Revision: 362804
URL: http://svnweb.freebsd.org/changeset/ports/362804
QAT: https://qat.redports.org/buildarchive/r362804/

Log:
  - 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

Modified:
  head/sysutils/tartarus/Makefile
  head/sysutils/tartarus/files/patch-bin__tartarus
  head/sysutils/tartarus/pkg-descr

Modified: head/sysutils/tartarus/Makefile
==============================================================================
--- head/sysutils/tartarus/Makefile	Thu Jul 24 15:06:07 2014	(r362803)
+++ head/sysutils/tartarus/Makefile	Thu Jul 24 15:15:41 2014	(r362804)
@@ -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 <bsd.port.mk>

Modified: head/sysutils/tartarus/files/patch-bin__tartarus
==============================================================================
--- head/sysutils/tartarus/files/patch-bin__tartarus	Thu Jul 24 15:06:07 2014	(r362803)
+++ head/sysutils/tartarus/files/patch-bin__tartarus	Thu Jul 24 15:15:41 2014	(r362804)
@@ -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|"")

Modified: head/sysutils/tartarus/pkg-descr
==============================================================================
--- head/sysutils/tartarus/pkg-descr	Thu Jul 24 15:06:07 2014	(r362803)
+++ head/sysutils/tartarus/pkg-descr	Thu Jul 24 15:15:41 2014	(r362804)
@@ -6,7 +6,7 @@ It has the ability to do full as well as
 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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201407241515.s6OFFgQn091913>