# $Id: Portfile,v 1.2 2006/01/23 14:25:21 yeled Exp $
PortSystem        1.0
PortGroup         python24 1.0
name              rdiff-backup-devel
version           1.1.5
categories-append   net sysutils
maintainers       arsptr@optusnet.com.au

description       backs up one directory to another, possibly over a network
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 37478b1d3e76ea521aac22216582ec58 \
                  sha1 f7713506c537f1b33ed61c216ae3f1a2e4dec1cc \
                  rmd160 a34f2155eac6f1ebb9559c17ed0b4a360b408bcd

platforms         darwin

depends_lib-append  lib:librsync:librsync

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

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

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

