diff options
author | agc <agc> | 2002-10-15 15:16:02 +0000 |
---|---|---|
committer | agc <agc> | 2002-10-15 15:16:02 +0000 |
commit | b3fb0d836a3a29b5bc681bd9f31380af61ac958a (patch) | |
tree | 61166cd3f2b353103065c8fa138c4347a229d1bb /sysutils/rdiff-backup | |
parent | 9806403106000904b5e5b3dbd6da425117d7b0aa (diff) | |
download | pkgsrc-b3fb0d836a3a29b5bc681bd9f31380af61ac958a.tar.gz |
Initial import of rdiff-backup-0.10.1 into the NetBSD Packages Collection.
Provided in PR 18577 by David.S at idiom dot com, some modifications
by me to use buildlink2 files, and to specify the correct version of
python required.
Rdiff-backup backs up one directory to another, possibly over a network.
The target directory ends up a copy of the source directory, but extra
reverse diffs are stored in a special subdirectory of that target directory,
so you can still recover files lost some time ago. The idea is to combine
the best features of a mirror and an incremental backup. Rdiff-backup also
preserves subdirectories, hard links, dev files, permissions, uid/gid
ownership (if it is running as root), and modification times. Finally,
rdiff-backup can operate in a bandwidth efficient manner over a pipe, like
rsync. Thus you can use rdiff-backup and ssh to securely back a hard drive
up to a remote location, and only the differences will be transmitted.
Diffstat (limited to 'sysutils/rdiff-backup')
-rw-r--r-- | sysutils/rdiff-backup/DESCR | 10 | ||||
-rw-r--r-- | sysutils/rdiff-backup/Makefile | 29 | ||||
-rw-r--r-- | sysutils/rdiff-backup/PLIST | 65 | ||||
-rw-r--r-- | sysutils/rdiff-backup/distinfo | 6 | ||||
-rw-r--r-- | sysutils/rdiff-backup/patches/patch-aa | 19 | ||||
-rw-r--r-- | sysutils/rdiff-backup/patches/patch-ab | 18 |
6 files changed, 147 insertions, 0 deletions
diff --git a/sysutils/rdiff-backup/DESCR b/sysutils/rdiff-backup/DESCR new file mode 100644 index 00000000000..bfe4f66106f --- /dev/null +++ b/sysutils/rdiff-backup/DESCR @@ -0,0 +1,10 @@ +Rdiff-backup backs up one directory to another, possibly over a network. +The target directory ends up a copy of the source directory, but extra +reverse diffs are stored in a special subdirectory of that target directory, +so you can still recover files lost some time ago. The idea is to combine +the best features of a mirror and an incremental backup. Rdiff-backup also +preserves subdirectories, hard links, dev files, permissions, uid/gid +ownership (if it is running as root), and modification times. Finally, +rdiff-backup can operate in a bandwidth efficient manner over a pipe, like +rsync. Thus you can use rdiff-backup and ssh to securely back a hard drive +up to a remote location, and only the differences will be transmitted. diff --git a/sysutils/rdiff-backup/Makefile b/sysutils/rdiff-backup/Makefile new file mode 100644 index 00000000000..551fef9dcfd --- /dev/null +++ b/sysutils/rdiff-backup/Makefile @@ -0,0 +1,29 @@ +# $NetBSD: Makefile,v 1.1.1.1 2002/10/15 15:16:02 agc Exp $ +# + +DISTNAME= rdiff-backup-0.10.1 +CATEGORIES= sysutils net +MASTER_SITES= http://rdiff-backup.stanford.edu/ + +MAINTAINER= davids@idiom.com +HOMEPAGE= http://rdiff-backup.stanford.edu/ +COMMENT= remote incremental backup utility + +PYTHON_VERSION_REQD= 22 +USE_BUILDLINK2= yes + +post-patch: + @${SED} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \ + < ${WRKSRC}/setup.py > ${WRKSRC}/local_setup.py + +do-build: + cd ${WRKSRC}; ${PYTHONBIN} local_setup.py build + +do-install: + cd ${WRKSRC}; ${PYTHONBIN} local_setup.py install \ + --prefix=${PREFIX} --skip-build + +.include "../../devel/librsync/buildlink2.mk" +.include "../../lang/python/application.mk" + +.include "../../mk/bsd.pkg.mk" diff --git a/sysutils/rdiff-backup/PLIST b/sysutils/rdiff-backup/PLIST new file mode 100644 index 00000000000..950322f9a55 --- /dev/null +++ b/sysutils/rdiff-backup/PLIST @@ -0,0 +1,65 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2002/10/15 15:16:02 agc Exp $ +bin/rdiff-backup +lib/python2.2/site-packages/rdiff_backup/C.so +lib/python2.2/site-packages/rdiff_backup/FilenameMapping.py +lib/python2.2/site-packages/rdiff_backup/FilenameMapping.pyc +lib/python2.2/site-packages/rdiff_backup/Globals.py +lib/python2.2/site-packages/rdiff_backup/Globals.pyc +lib/python2.2/site-packages/rdiff_backup/Hardlink.py +lib/python2.2/site-packages/rdiff_backup/Hardlink.pyc +lib/python2.2/site-packages/rdiff_backup/Main.py +lib/python2.2/site-packages/rdiff_backup/Main.pyc +lib/python2.2/site-packages/rdiff_backup/MiscStats.py +lib/python2.2/site-packages/rdiff_backup/MiscStats.pyc +lib/python2.2/site-packages/rdiff_backup/Rdiff.py +lib/python2.2/site-packages/rdiff_backup/Rdiff.pyc +lib/python2.2/site-packages/rdiff_backup/Security.py +lib/python2.2/site-packages/rdiff_backup/Security.pyc +lib/python2.2/site-packages/rdiff_backup/SetConnections.py +lib/python2.2/site-packages/rdiff_backup/SetConnections.pyc +lib/python2.2/site-packages/rdiff_backup/Time.py +lib/python2.2/site-packages/rdiff_backup/Time.pyc +lib/python2.2/site-packages/rdiff_backup/__init__.py +lib/python2.2/site-packages/rdiff_backup/__init__.pyc +lib/python2.2/site-packages/rdiff_backup/_librsync.so +lib/python2.2/site-packages/rdiff_backup/connection.py +lib/python2.2/site-packages/rdiff_backup/connection.pyc +lib/python2.2/site-packages/rdiff_backup/destructive_stepping.py +lib/python2.2/site-packages/rdiff_backup/destructive_stepping.pyc +lib/python2.2/site-packages/rdiff_backup/highlevel.py +lib/python2.2/site-packages/rdiff_backup/highlevel.pyc +lib/python2.2/site-packages/rdiff_backup/increment.py +lib/python2.2/site-packages/rdiff_backup/increment.pyc +lib/python2.2/site-packages/rdiff_backup/iterfile.py +lib/python2.2/site-packages/rdiff_backup/iterfile.pyc +lib/python2.2/site-packages/rdiff_backup/lazy.py +lib/python2.2/site-packages/rdiff_backup/lazy.pyc +lib/python2.2/site-packages/rdiff_backup/librsync.py +lib/python2.2/site-packages/rdiff_backup/librsync.pyc +lib/python2.2/site-packages/rdiff_backup/log.py +lib/python2.2/site-packages/rdiff_backup/log.pyc +lib/python2.2/site-packages/rdiff_backup/manage.py +lib/python2.2/site-packages/rdiff_backup/manage.pyc +lib/python2.2/site-packages/rdiff_backup/restore.py +lib/python2.2/site-packages/rdiff_backup/restore.pyc +lib/python2.2/site-packages/rdiff_backup/rlist.py +lib/python2.2/site-packages/rdiff_backup/rlist.pyc +lib/python2.2/site-packages/rdiff_backup/robust.py +lib/python2.2/site-packages/rdiff_backup/robust.pyc +lib/python2.2/site-packages/rdiff_backup/rorpiter.py +lib/python2.2/site-packages/rdiff_backup/rorpiter.pyc +lib/python2.2/site-packages/rdiff_backup/rpath.py +lib/python2.2/site-packages/rdiff_backup/rpath.pyc +lib/python2.2/site-packages/rdiff_backup/selection.py +lib/python2.2/site-packages/rdiff_backup/selection.pyc +lib/python2.2/site-packages/rdiff_backup/static.py +lib/python2.2/site-packages/rdiff_backup/static.pyc +lib/python2.2/site-packages/rdiff_backup/statistics.py +lib/python2.2/site-packages/rdiff_backup/statistics.pyc +man/man1/rdiff-backup.1 +share/doc/${PKGNAME}/CHANGELOG +share/doc/${PKGNAME}/COPYING +share/doc/${PKGNAME}/FAQ.html +share/doc/${PKGNAME}/README +@dirrm share/doc/${PKGNAME} +@dirrm lib/python2.2/site-packages/rdiff_backup diff --git a/sysutils/rdiff-backup/distinfo b/sysutils/rdiff-backup/distinfo new file mode 100644 index 00000000000..f82b1019b44 --- /dev/null +++ b/sysutils/rdiff-backup/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1.1.1 2002/10/15 15:16:02 agc Exp $ + +SHA1 (rdiff-backup-0.10.1.tar.gz) = 04c1c00725507bf27fbad8f32768ca99c13ce9a4 +Size (rdiff-backup-0.10.1.tar.gz) = 110139 bytes +SHA1 (patch-aa) = 26027114889f6dcbbca47d40227980b45a3d65ba +SHA1 (patch-ab) = 258881a379152f326378849dd7840ee8bbd66e07 diff --git a/sysutils/rdiff-backup/patches/patch-aa b/sysutils/rdiff-backup/patches/patch-aa new file mode 100644 index 00000000000..1a08929b47f --- /dev/null +++ b/sysutils/rdiff-backup/patches/patch-aa @@ -0,0 +1,19 @@ +$NetBSD: patch-aa,v 1.1.1.1 2002/10/15 15:16:02 agc Exp $ + +--- cmodule.c.orig Thu Oct 3 00:11:33 2002 ++++ cmodule.c +@@ -129,12 +129,12 @@ static PyObject *c_make_file_dict(self, + char devtype[2]; + #if defined(HAVE_LONG_LONG) && !defined(MS_WINDOWS) + LONG_LONG devnums = (LONG_LONG)sbuf.st_rdev; +- PyObject *major_num = PyLong_FromLongLong(devnums >> 8); ++ PyObject *major_num = PyLong_FromLongLong(major(devnums)); + #else + long int devnums = (long)sbuf.st_dev; + PyObject *major_num = PyInt_FromLong(devnums >> 8); + #endif +- int minor_num = (int)(devnums & 0xff); ++ int minor_num = (int)(minor(devnums)); + if S_ISCHR(mode) strcpy(devtype, "c"); + else strcpy(devtype, "b"); + return_val = Py_BuildValue("{s:s,s:O,s:l,s:l,s:l,s:O,s:O,s:l,s:N}", diff --git a/sysutils/rdiff-backup/patches/patch-ab b/sysutils/rdiff-backup/patches/patch-ab new file mode 100644 index 00000000000..657d4d0567d --- /dev/null +++ b/sysutils/rdiff-backup/patches/patch-ab @@ -0,0 +1,18 @@ +$NetBSD: patch-ab,v 1.1.1.1 2002/10/15 15:16:02 agc Exp $ + +--- setup.py.orig Thu Oct 3 00:11:24 2002 ++++ setup.py +@@ -22,9 +22,12 @@ setup(name="rdiff-backup", + ("_LARGE_FILES", 1)]), + Extension("rdiff_backup._librsync", + ["_librsyncmodule.c"], ++ include_dirs=['%%LOCALBASE%%/include'], ++ library_dirs=['%%LOCALBASE%%/lib'], ++ runtime_library_dirs=['%%LOCALBASE%%/lib'], + libraries=["rsync"])], + scripts = ['rdiff-backup'], +- data_files = [('share/man/man1', ['rdiff-backup.1']), ++ data_files = [('man/man1', ['rdiff-backup.1']), + ('share/doc/rdiff-backup-%s' % version_string, + ['CHANGELOG', 'COPYING', 'README', 'FAQ.html'])]) + |