# $Id: Portfile,v 1.4 2005/07/09 23:59:37 mww Exp $

PortSystem 1.0

name			rsnapshot
version			1.2.1
categories		sysutils net
platforms		darwin
maintainers		mww@opendarwin.org
description		filesystem snapshot utility based on rsync
long_description	rsnapshot is a filesystem snapshot utility based on \
				rsync. It makes it easy to make periodic snapshots of \
				local machines, and remote machines over SSH. The code \
				makes extensive use of hard links whenever possible, \
				to greatly reduce the disk space required. 

homepage		http://www.rsnapshot.org
master_sites	${homepage}/downloads/
checksums		md5 b126ae490889e5514f4a5d14a1128897

depends_lib		bin:rsync:rsync \
				bin:perl:perl5.8 \
				bin:ssh:openssh

configure.args	--mandir=${prefix}/share/man

post-destroot	{
	xinstall -m 644 ${destroot}${prefix}/etc/rsnapshot.conf.default \
		${destroot}${prefix}/etc/
	xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}/examples
	xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING ChangeLog INSTALL \
		NEWS README TODO ${destroot}${prefix}/share/doc/${name}
	eval xinstall -m 644 -W ${worksrcpath} [glob utils/*] \
		${destroot}${prefix}/share/doc/${name}/examples
}

post-activate {
	if {![file exists ${prefix}/etc/rsnapshot.conf]} {
		xinstall -m 644 ${prefix}/etc/rsnapshot.conf.default \
			${prefix}/etc/rsnapshot.conf
	}
}
