diff options
author | miwi <miwi@FreeBSD.org> | 2009-12-02 21:48:23 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2009-12-02 21:48:23 +0800 |
commit | 57904788269e5dd06a4f6a37792898e8bbb9d0eb (patch) | |
tree | 855ce940107ad29840277bab33e65e7d057bd8c3 /sysutils/rdup | |
parent | 298e13987f2bb1deef6afae763dc2dc6d882a9ef (diff) | |
download | freebsd-ports-gnome-57904788269e5dd06a4f6a37792898e8bbb9d0eb.tar.gz freebsd-ports-gnome-57904788269e5dd06a4f6a37792898e8bbb9d0eb.tar.zst freebsd-ports-gnome-57904788269e5dd06a4f6a37792898e8bbb9d0eb.zip |
- Update to 1.0.2
PR: 139485
Submitted by: Charlie Kester <corky1951@comcast.net> (Maintainer)
Diffstat (limited to 'sysutils/rdup')
-rw-r--r-- | sysutils/rdup/Makefile | 21 | ||||
-rw-r--r-- | sysutils/rdup/distinfo | 6 | ||||
-rw-r--r-- | sysutils/rdup/files/patch-GNUmakefile.in | 27 | ||||
-rw-r--r-- | sysutils/rdup/files/patch-configure.ac | 11 | ||||
-rw-r--r-- | sysutils/rdup/files/patch-rdup-ln | 23 | ||||
-rw-r--r-- | sysutils/rdup/files/patch-rdup-simple.in | 11 | ||||
-rw-r--r-- | sysutils/rdup/pkg-descr | 7 |
7 files changed, 51 insertions, 55 deletions
diff --git a/sysutils/rdup/Makefile b/sysutils/rdup/Makefile index 870377c3a6d8..973804533a0a 100644 --- a/sysutils/rdup/Makefile +++ b/sysutils/rdup/Makefile @@ -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> diff --git a/sysutils/rdup/distinfo b/sysutils/rdup/distinfo index f09b3bed9b42..712bd43b95b2 100644 --- a/sysutils/rdup/distinfo +++ b/sysutils/rdup/distinfo @@ -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 diff --git a/sysutils/rdup/files/patch-GNUmakefile.in b/sysutils/rdup/files/patch-GNUmakefile.in index 34b2600bfef1..4890fca8baba 100644 --- a/sysutils/rdup/files/patch-GNUmakefile.in +++ b/sysutils/rdup/files/patch-GNUmakefile.in @@ -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 diff --git a/sysutils/rdup/files/patch-configure.ac b/sysutils/rdup/files/patch-configure.ac deleted file mode 100644 index 14b8c9e57822..000000000000 --- a/sysutils/rdup/files/patch-configure.ac +++ /dev/null @@ -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], diff --git a/sysutils/rdup/files/patch-rdup-ln b/sysutils/rdup/files/patch-rdup-ln new file mode 100644 index 000000000000..7e4d6643da9e --- /dev/null +++ b/sysutils/rdup/files/patch-rdup-ln @@ -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 diff --git a/sysutils/rdup/files/patch-rdup-simple.in b/sysutils/rdup/files/patch-rdup-simple.in new file mode 100644 index 000000000000..042e943ea687 --- /dev/null +++ b/sysutils/rdup/files/patch-rdup-simple.in @@ -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= diff --git a/sysutils/rdup/pkg-descr b/sysutils/rdup/pkg-descr index 3ef4c02aca6c..23c9b6cb9b1d 100644 --- a/sysutils/rdup/pkg-descr +++ b/sysutils/rdup/pkg-descr @@ -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 |