You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-backup/dirvish/dirvish-1.2.1.ebuild

40 lines
930 B

# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
DESCRIPTION="Dirvish is a fast, disk based, rotating network backup system"
HOMEPAGE="http://www.dirvish.org/"
SRC_URI="http://dirvish.org/${P}.tgz"
LICENSE="OSL-2.0"
SLOT="0"
KEYWORDS="amd64 ppc x86"
IUSE=""
DEPEND="app-arch/tar"
RDEPEND="dev-perl/Time-modules
dev-perl/Time-Period
>=net-misc/rsync-2.5.7"
src_compile() {
for f in dirvish dirvish-runall dirvish-expire dirvish-locate ; do
cat > $f <<-EOF
#!/usr/bin/perl
\$CONFDIR = "/etc/dirvish";
EOF
cat $f.pl >> $f
cat loadconfig.pl >> $f
done
}
src_install() {
dosbin dirvish dirvish-runall dirvish-expire dirvish-locate
doman dirvish.8 dirvish-runall.8 dirvish-expire.8 dirvish-locate.8 dirvish.conf.5
dohtml FAQ.html INSTALL RELEASE.html TODO.html
dodoc CHANGELOG
insinto /etc/dirvish; doins "${FILESDIR}"/master.conf.example
}