# $Id: Portfile 51955 2009-06-07 10:04:10Z arthurk@macports.org $

PortSystem		1.0
PortGroup		python25 1.0

name			rdiff-backup-devel
version			1.1.15
revision		2
categories-append	net sysutils
maintainers		blair openmaintainer

description		Backs up to remote directories using librsync
long_description	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, \
			and modification times.  Also, 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.  \
			Finally, rdiff-backup is easy to use and settings \
			have sensical defaults.
homepage		http://www.nongnu.org/rdiff-backup/
master_sites		http://savannah.nongnu.org/download/rdiff-backup/
distname		rdiff-backup-${version}

checksums		md5 7c3dfae289d0f4dea3647ae2831c46c7

platforms		darwin

depends_lib-append	lib:librsync:librsync \
			port:py25-xattr

patchfiles		patch-setup.py.diff \
			patch-rdiff-backup.1.diff

post-patch {
	reinplace "s|@PREFIX@|${prefix}|" ${worksrcpath}/rdiff-backup.1
}

build.args		--librsync-dir=${prefix}
