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.
29 lines
722 B
Makefile
29 lines
722 B
Makefile
# $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"
|