View | Details | Raw Unified | Return to bug 144438
Collapse All | Expand All

(-)./rdup/Makefile (-3 / +1 lines)
Lines 7-13 Link Here
7
#
7
#
8
8
9
PORTNAME=	rdup
9
PORTNAME=	rdup
10
PORTVERSION=	1.0.2
10
PORTVERSION=	1.1.1
11
CATEGORIES=	sysutils
11
CATEGORIES=	sysutils
12
MASTER_SITES=	http://miek.nl/projects/rdup/
12
MASTER_SITES=	http://miek.nl/projects/rdup/
13
13
Lines 29-35 Link Here
29
MAKEFILE=	GNUmakefile
29
MAKEFILE=	GNUmakefile
30
30
31
PLIST_FILES=	bin/rdup \
31
PLIST_FILES=	bin/rdup \
32
		bin/rdup-ln \
33
		bin/rdup-simple \
32
		bin/rdup-simple \
34
		bin/rdup-tr \
33
		bin/rdup-tr \
35
		bin/rdup-up
34
		bin/rdup-up
Lines 42-47 Link Here
42
41
43
post-patch:
42
post-patch:
44
	@${REINPLACE_CMD} -e 's|/bin/bash|${LOCALBASE}/bin/bash|' ${WRKSRC}/sh/rdup-simple.in
43
	@${REINPLACE_CMD} -e 's|/bin/bash|${LOCALBASE}/bin/bash|' ${WRKSRC}/sh/rdup-simple.in
45
	@${REINPLACE_CMD} -e 's|/bin/bash|${LOCALBASE}/bin/bash|' ${WRKSRC}/sh/rdup-ln
46
44
47
.include <bsd.port.mk>
45
.include <bsd.port.mk>
(-)./rdup/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
MD5 (rdup-1.0.2.tar.bz2) = e13445b11de1c3fe608903b086f05784
1
MD5 (rdup-1.1.1.tar.bz2) = 2a423d8b58862c0d721ca4dd23cde873
2
SHA256 (rdup-1.0.2.tar.bz2) = 9ec0813f005d7fdaac634575b110bafd193cda81170806e59200e629c107189d
2
SHA256 (rdup-1.1.1.tar.bz2) = 7f85dc543caf2d3d92566a8c9a008f1b8254a2fa1244610c2eaa7f07b3609e4e
3
SIZE (rdup-1.0.2.tar.bz2) = 1205906
3
SIZE (rdup-1.1.1.tar.bz2) = 356287
(-)./rdup/files/patch-GNUmakefile.in (-4 / +3 lines)
Lines 1-5 Link Here
1
--- GNUmakefile.in.orig	2009-08-10 04:09:38.000000000 -0700
1
--- GNUmakefile.in.orig	2010-03-02 11:04:44.000000000 -0800
2
+++ GNUmakefile.in	2009-10-09 20:27:57.000000000 -0700
2
+++ GNUmakefile.in	2010-03-02 11:06:56.000000000 -0800
3
@@ -19,7 +19,7 @@
3
@@ -19,7 +19,7 @@
4
 sbindir=@sbindir@
4
 sbindir=@sbindir@
5
 mandir=@mandir@
5
 mandir=@mandir@
Lines 9-20 Link Here
9
 
9
 
10
 ARCHIVE_L=@ARCHIVE_L@
10
 ARCHIVE_L=@ARCHIVE_L@
11
 NETTLE_L=@NETTLE_L@
11
 NETTLE_L=@NETTLE_L@
12
@@ -89,8 +89,6 @@
12
@@ -93,7 +93,6 @@
13
 
13
 
14
 install: all
14
 install: all
15
 	mkdir -p ${DESTDIR}${mandir}/man1
15
 	mkdir -p ${DESTDIR}${mandir}/man1
16
-	mkdir -p ${DESTDIR}${datadir}
16
-	mkdir -p ${DESTDIR}${datadir}
17
-	mkdir -p ${DESTDIR}${libdir}/rdup
18
 	for i in ${CMD}; do ${INSTALL} $$i ${DESTDIR}${bindir}/$$i ; done
17
 	for i in ${CMD}; do ${INSTALL} $$i ${DESTDIR}${bindir}/$$i ; done
19
 	for i in ${SH}; do ${INSTALL} sh/$$i ${DESTDIR}${bindir}/$$i ; done
18
 	for i in ${SH}; do ${INSTALL} sh/$$i ${DESTDIR}${bindir}/$$i ; done
20
 	for i in ${MAN1}; do [ -f $$i ] &&  ${INSTALL_DATA} $$i ${DESTDIR}${mandir}/man1/`basename $$i` ; done; exit 0
19
 	for i in ${MAN1}; do [ -f $$i ] &&  ${INSTALL_DATA} $$i ${DESTDIR}${mandir}/man1/`basename $$i` ; done; exit 0
(-)./rdup/files/patch-rdup-ln (-23 lines)
Lines 1-23 Link Here
1
--- sh/rdup-ln.orig	2009-10-09 23:37:34.000000000 -0700
2
+++ sh/rdup-ln	2009-10-09 23:39:40.000000000 -0700
3
@@ -27,7 +27,7 @@
4
 fi
5
 
6
 DATESTR='+%Y%m/%d'
7
-TODAY=$(date $DATESTR)
8
+TODAY=$(gdate $DATESTR)
9
 TOPDIR=$1
10
 
11
 if [[ -z $TOPDIR ]]; then
12
@@ -44,9 +44,9 @@
13
 
14
 let i=1
15
 while [[ $i -le $LOOKBACK ]]; do
16
-	D=$(date $DATESTR --date "$i days ago")
17
+	D=$(gdate $DATESTR --date "$i days ago")
18
 	if [[ -d $TOPDIR/$D ]]; then
19
-	    if ! cp -plr $TOPDIR/$D/* $TOPDIR/$TODAY; then
20
+	    if ! gcp -plr $TOPDIR/$D/* $TOPDIR/$TODAY; then
21
 		exit 2
22
 	    fi
23
 	    exit 0
(-)./rdup/pkg-descr (-4 / +4 lines)
Lines 4-12 Link Here
4
files that have changed since the last backup. It also handles files that are
4
files that have changed since the last backup. It also handles files that are
5
removed, allowing for correct incremental backups.
5
removed, allowing for correct incremental backups.
6
6
7
Example scripts named rdup-simple and rdup-ln are included to show how to 
7
An example script named rdup-simple is included to show how to 
8
implement a simple snapshot-style backup strategy.  These bash scripts require 
8
implement a simple snapshot-style backup strategy.  This bash script requires 
9
GNU date and cp, which are not installed by this FreeBSD port. If you want to 
9
GNU date and cp, which are not installed by this FreeBSD port. If you want to 
10
use the scripts, you should also install the sysutils/coreutils port.
10
use the script, you should also install the sysutils/coreutils port.
11
11
12
WWW: http://miek.nl/projects/rdup
12
WWW: http://miek.nl/projects/rdup11

Return to bug 144438