# Template file for 'rsnapshot'
pkgname=rsnapshot
version=1.3.1
revision=3
build_style=gnu-configure
hostmakedepends="perl rsync openssh"
makedepends="perl-Lchown"
depends="perl perl-Lchown rsync openssh"
conf_files="/etc/${pkgname}.conf"
noarch="yes"
short_desc="A remote filesystem snapshot utility"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2"
homepage="http://www.rsnapshot.org"
distfiles="http://www.rsnapshot.org/downloads/${pkgname}-${version}.tar.gz"
checksum=94b6c77e40628935f42a191bdc28ad93b1f132fde456ee76ee87763f1eddc75e

post_extract() {
	# Fix pod error.
	sed -i 's/=head1 USAGE/=back\n\n&/' rsnapshot-program.pl
}
post_install() {
	mv ${DESTDIR}/etc/rsnapshot.conf.default ${DESTDIR}/etc/rsnapshot.conf
}
