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
This commit is contained in:
Martin Wilke 2009-06-19 05:29:46 +00:00
parent 70c4785ca0
commit 188b89634e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=236270
6 changed files with 129 additions and 0 deletions

View file

@ -631,6 +631,7 @@
SUBDIR += rdiff-backup
SUBDIR += rdiff-backup-devel
SUBDIR += rdiff-backup10
SUBDIR += rdup
SUBDIR += readlink
SUBDIR += reclinker
SUBDIR += recoverdm

57
sysutils/rdup/Makefile Normal file
View file

@ -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>

3
sysutils/rdup/distinfo Normal file
View file

@ -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

View file

@ -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

View file

@ -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"

11
sysutils/rdup/pkg-descr Normal file
View file

@ -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