diff options
author | miwi <miwi@FreeBSD.org> | 2009-06-19 13:29:46 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2009-06-19 13:29:46 +0800 |
commit | 258ab20e6c5bb454d812d51f182f8bb955af1add (patch) | |
tree | e2ef479cad639c560159c627fca241dac55713b6 | |
parent | 57d9cffc4f422e8d27819555cf050b85de8ab026 (diff) | |
download | freebsd-ports-gnome-258ab20e6c5bb454d812d51f182f8bb955af1add.tar.gz freebsd-ports-gnome-258ab20e6c5bb454d812d51f182f8bb955af1add.tar.zst freebsd-ports-gnome-258ab20e6c5bb454d812d51f182f8bb955af1add.zip |
rdup is a utility inspired by rsync and the Plan9 way of doing backups.
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.)
WWW: http://miek.nl/projects/rdup
PR: ports/135532
Submitted by: corky1951 at comcast.net
-rw-r--r-- | sysutils/Makefile | 1 | ||||
-rw-r--r-- | sysutils/rdup/Makefile | 57 | ||||
-rw-r--r-- | sysutils/rdup/distinfo | 3 | ||||
-rw-r--r-- | sysutils/rdup/files/patch-GNUmakefile.in | 37 | ||||
-rw-r--r-- | sysutils/rdup/files/patch-configure | 20 | ||||
-rw-r--r-- | sysutils/rdup/pkg-descr | 11 |
6 files changed, 129 insertions, 0 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile index 89b76e608e86..79860565bf17 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -631,6 +631,7 @@ SUBDIR += rdiff-backup SUBDIR += rdiff-backup-devel SUBDIR += rdiff-backup10 + SUBDIR += rdup SUBDIR += readlink SUBDIR += reclinker SUBDIR += recoverdm diff --git a/sysutils/rdup/Makefile b/sysutils/rdup/Makefile new file mode 100644 index 000000000000..01439e5884c5 --- /dev/null +++ b/sysutils/rdup/Makefile @@ -0,0 +1,57 @@ +# ex:ts=8 +# Ports collection makefile for: rdup +# Date created: Jun 11, 2009 +# Whom: corky1951@comcast.net +# +# $FreeBSD$ +# + +PORTNAME= rdup +PORTVERSION= 1.0.0 +CATEGORIES= sysutils +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \ + http://miek.nl/projects/rdup/ + +MAINTAINER= corky1951@comcast.net +COMMENT= A tool to generate an (incremental) backup file list + +LIB_DEPENDS= glib-2.0:${PORTSDIR}/devel/glib20 \ + pcre:${PORTSDIR}/devel/pcre \ + archive:${PORTSDIR}/archivers/libarchive \ + nettle:${PORTSDIR}/security/nettle + +USE_BZIP2= yes + +GNU_CONFIGURE= yes + +USE_GMAKE= yes +MAKEFILE= GNUmakefile + +PLIST_FILES= bin/rdup \ + bin/rdup-tr \ + bin/rdup-up + +MAN1= rdup.1 \ + rdup-tr.1 \ + rdup-up.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 + +.include <bsd.port.mk> diff --git a/sysutils/rdup/distinfo b/sysutils/rdup/distinfo new file mode 100644 index 000000000000..f09b3bed9b42 --- /dev/null +++ b/sysutils/rdup/distinfo @@ -0,0 +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 diff --git a/sysutils/rdup/files/patch-GNUmakefile.in b/sysutils/rdup/files/patch-GNUmakefile.in new file mode 100644 index 000000000000..34b2600bfef1 --- /dev/null +++ b/sysutils/rdup/files/patch-GNUmakefile.in @@ -0,0 +1,37 @@ +--- 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 @@ + sbindir=@sbindir@ + mandir=@mandir@ + sysconfdir=@sysconfdir@ +-datadir=@datadir@/rdup ++datadir=@datadir@ + + ARCHIVE_L=@ARCHIVE_L@ + NETTLE_L=@NETTLE_L@ +@@ -86,17 +85,13 @@ + + 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 ${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 b/sysutils/rdup/files/patch-configure new file mode 100644 index 000000000000..916edc1f0bac --- /dev/null +++ b/sysutils/rdup/files/patch-configure @@ -0,0 +1,20 @@ +--- configure.orig 2009-05-31 00:38:33.000000000 -0700 ++++ configure 2009-06-12 16:34:06.000000000 -0700 +@@ -5003,7 +5003,7 @@ + $as_echo_n "(cached) " >&6 + else + ac_check_lib_save_LIBS=$LIBS +-LIBS="-lnettle $LIBS" ++LIBS="-lgmp -lnettle $LIBS" + cat >conftest.$ac_ext <<_ACEOF + /* confdefs.h. */ + _ACEOF +@@ -5067,7 +5067,7 @@ + #define HAVE_LIBNETTLE 1 + _ACEOF + +- LIBS="-lnettle $LIBS" ++ LIBS="-lgmp -lnettle $LIBS" + + else + NETTLE_L="no" diff --git a/sysutils/rdup/pkg-descr b/sysutils/rdup/pkg-descr new file mode 100644 index 000000000000..3ef4c02aca6c --- /dev/null +++ b/sysutils/rdup/pkg-descr @@ -0,0 +1,11 @@ +rdup is a utility inspired by rsync and the Plan9 way of doing backups. + +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.) + +WWW: http://miek.nl/projects/rdup |