forked from Lainports/freebsd-ports
- Update to 1.0.2
PR: 139485 Submitted by: Charlie Kester <corky1951@comcast.net> (Maintainer)
This commit is contained in:
parent
cb69482f44
commit
dcb2ace53e
7 changed files with 51 additions and 55 deletions
|
|
@ -7,7 +7,7 @@
|
|||
#
|
||||
|
||||
PORTNAME= rdup
|
||||
PORTVERSION= 1.0.0
|
||||
PORTVERSION= 1.0.2
|
||||
CATEGORIES= sysutils
|
||||
MASTER_SITES= http://miek.nl/projects/rdup/
|
||||
|
||||
|
|
@ -29,6 +29,8 @@ USE_GMAKE= yes
|
|||
MAKEFILE= GNUmakefile
|
||||
|
||||
PLIST_FILES= bin/rdup \
|
||||
bin/rdup-ln \
|
||||
bin/rdup-simple \
|
||||
bin/rdup-tr \
|
||||
bin/rdup-up
|
||||
|
||||
|
|
@ -38,21 +40,8 @@ MAN1= rdup.1 \
|
|||
|
||||
MAN7= rdup-backups.7
|
||||
|
||||
.ifndef(NOPORTEXAMPLES)
|
||||
PORTEXAMPLES= rdup-ln.sh \
|
||||
rdup-simple.sh
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|/usr/lib/rdup|${EXAMPLESDIR}|g' \
|
||||
${WRKSRC}/doc/rdup-backups.7
|
||||
|
||||
post-install:
|
||||
.ifndef(NOPORTEXAMPLES)
|
||||
@${MKDIR} ${EXAMPLESDIR}
|
||||
.for example in ${PORTEXAMPLES}
|
||||
@${INSTALL_SCRIPT} ${WRKSRC}/sh/${example} ${EXAMPLESDIR}
|
||||
.endfor
|
||||
.endif
|
||||
@${REINPLACE_CMD} -e 's|/bin/bash|${LOCALBASE}/bin/bash|' ${WRKSRC}/sh/rdup-simple.in
|
||||
@${REINPLACE_CMD} -e 's|/bin/bash|${LOCALBASE}/bin/bash|' ${WRKSRC}/sh/rdup-ln
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
MD5 (rdup-1.0.0.tar.bz2) = 7c91411d0c563279d50f6a87e395039f
|
||||
SHA256 (rdup-1.0.0.tar.bz2) = b9e9341b9c2192f201a81a18550fb8f835ab1766e3c357ccdedc7df5f0df1f22
|
||||
SIZE (rdup-1.0.0.tar.bz2) = 1209801
|
||||
MD5 (rdup-1.0.2.tar.bz2) = e13445b11de1c3fe608903b086f05784
|
||||
SHA256 (rdup-1.0.2.tar.bz2) = 9ec0813f005d7fdaac634575b110bafd193cda81170806e59200e629c107189d
|
||||
SIZE (rdup-1.0.2.tar.bz2) = 1205906
|
||||
|
|
|
|||
|
|
@ -1,14 +1,6 @@
|
|||
--- GNUmakefile.in.orig 2009-05-28 10:39:19.000000000 -0700
|
||||
+++ GNUmakefile.in 2009-06-12 19:53:20.000000000 -0700
|
||||
@@ -4,7 +4,6 @@
|
||||
HDR=rdup.h rdup-tr.h rdup-up.h io.h common.h entry.h
|
||||
CMD=rdup rdup-tr rdup-up
|
||||
# installs to /usr/lib/rdup XXX TODO
|
||||
-SH=rdup-ln.sh rdup-simple.sh
|
||||
MAN1_IN=rdup.1 rdup-tr.1 rdup-up.1
|
||||
MAN7_IN=rdup-backups.7
|
||||
|
||||
@@ -20,7 +19,7 @@
|
||||
--- GNUmakefile.in.orig 2009-08-10 04:09:38.000000000 -0700
|
||||
+++ GNUmakefile.in 2009-10-09 20:27:57.000000000 -0700
|
||||
@@ -19,7 +19,7 @@
|
||||
sbindir=@sbindir@
|
||||
mandir=@mandir@
|
||||
sysconfdir=@sysconfdir@
|
||||
|
|
@ -17,21 +9,12 @@
|
|||
|
||||
ARCHIVE_L=@ARCHIVE_L@
|
||||
NETTLE_L=@NETTLE_L@
|
||||
@@ -86,17 +85,13 @@
|
||||
@@ -89,8 +89,6 @@
|
||||
|
||||
install: all
|
||||
mkdir -p ${DESTDIR}${mandir}/man1
|
||||
- mkdir -p ${DESTDIR}${datadir}
|
||||
- mkdir -p ${DESTDIR}${libdir}/rdup
|
||||
for i in ${CMD}; do ${INSTALL} $$i ${DESTDIR}${bindir}/$$i ; done
|
||||
- for i in ${SH}; do ${INSTALL} sh/$$i ${DESTDIR}${libdir}/rdup/$$i ; done
|
||||
for i in ${SH}; do ${INSTALL} sh/$$i ${DESTDIR}${bindir}/$$i ; done
|
||||
for i in ${MAN1}; do [ -f $$i ] && ${INSTALL_DATA} $$i ${DESTDIR}${mandir}/man1/`basename $$i` ; done; exit 0
|
||||
for i in ${MAN7}; do [ -f $$i ] && ${INSTALL_DATA} $$i ${DESTDIR}${mandir}/man7/`basename $$i` ; done; exit 0
|
||||
$(MAKE) -C po install
|
||||
|
||||
uninstall:
|
||||
for i in ${CMD}; do rm -f ${DESTDIR}${bindir}/$$i ; done
|
||||
- for i in ${SH}; do rm -f ${DESTDIR}${libdir}/rdup/$$i ; done
|
||||
for i in ${MAN1}; do rm -f ${DESTDIR}${mandir}/man1/`basename $$i` ; done
|
||||
for i in ${MAN7}; do rm -f ${DESTDIR}${mandir}/man7/`basename $$i` ; done
|
||||
$(MAKE) -C po uninstall
|
||||
|
|
|
|||
|
|
@ -1,11 +0,0 @@
|
|||
--- configure.ac.orig 2009-05-28 10:39:19.000000000 -0700
|
||||
+++ configure.ac 2009-06-30 17:49:08.000000000 -0700
|
||||
@@ -28,6 +28,8 @@
|
||||
#AM_GNU_GETTEXT([external])
|
||||
#AM_GNU_GETTEXT_VERSION
|
||||
|
||||
+LIBS="-lgmp $LIBS"
|
||||
+
|
||||
AC_MSG_CHECKING([whether to enable nettle])
|
||||
AC_ARG_WITH(nettle,
|
||||
[ --with-nettle enable nettle support],
|
||||
23
sysutils/rdup/files/patch-rdup-ln
Normal file
23
sysutils/rdup/files/patch-rdup-ln
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
--- sh/rdup-ln.orig 2009-10-09 23:37:34.000000000 -0700
|
||||
+++ sh/rdup-ln 2009-10-09 23:39:40.000000000 -0700
|
||||
@@ -27,7 +27,7 @@
|
||||
fi
|
||||
|
||||
DATESTR='+%Y%m/%d'
|
||||
-TODAY=$(date $DATESTR)
|
||||
+TODAY=$(gdate $DATESTR)
|
||||
TOPDIR=$1
|
||||
|
||||
if [[ -z $TOPDIR ]]; then
|
||||
@@ -44,9 +44,9 @@
|
||||
|
||||
let i=1
|
||||
while [[ $i -le $LOOKBACK ]]; do
|
||||
- D=$(date $DATESTR --date "$i days ago")
|
||||
+ D=$(gdate $DATESTR --date "$i days ago")
|
||||
if [[ -d $TOPDIR/$D ]]; then
|
||||
- if ! cp -plr $TOPDIR/$D/* $TOPDIR/$TODAY; then
|
||||
+ if ! gcp -plr $TOPDIR/$D/* $TOPDIR/$TODAY; then
|
||||
exit 2
|
||||
fi
|
||||
exit 0
|
||||
11
sysutils/rdup/files/patch-rdup-simple.in
Normal file
11
sysutils/rdup/files/patch-rdup-simple.in
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
--- sh/rdup-simple.in.orig 2009-10-09 23:37:15.000000000 -0700
|
||||
+++ sh/rdup-simple.in 2009-10-09 23:44:36.000000000 -0700
|
||||
@@ -41,7 +41,7 @@
|
||||
}
|
||||
|
||||
PROGNAME=$0
|
||||
-NOW=`date +%Y%m/%d`
|
||||
+NOW=`gdate +%Y%m/%d`
|
||||
DAYS=8
|
||||
ssh=
|
||||
trans=
|
||||
|
|
@ -4,8 +4,9 @@ rdup itself does not backup anything; it only prints a list of the names of
|
|||
files that have changed since the last backup. It also handles files that are
|
||||
removed, allowing for correct incremental backups.
|
||||
|
||||
Example scripts that implement a backup strategy are included.
|
||||
(These scripts require GNU date and cp, which are not installed by
|
||||
this FreeBSD port.)
|
||||
Example scripts named rdup-simple and rdup-ln are included to show how to
|
||||
implement a simple snapshot-style backup strategy. These bash scripts require
|
||||
GNU date and cp, which are not installed by this FreeBSD port. If you want to
|
||||
use the scripts, you should also install the sysutils/coreutils port.
|
||||
|
||||
WWW: http://miek.nl/projects/rdup
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue