diff options
author | Sam James <sam@gentoo.org> | 2022-07-19 16:54:12 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-07-19 17:11:47 +0000 |
commit | 1725d3e108a80e63756c4bfe1ff02b57b32c851e (patch) | |
tree | 1fad2961a777382dbc8b4a1532b14065bab6498b /app-backup/dirvish/dirvish-1.2.1-r1.ebuild | |
parent | www-servers/nginx: remove unused patch (diff) | |
download | gentoo-1725d3e108a80e63756c4bfe1ff02b57b32c851e.tar.gz gentoo-1725d3e108a80e63756c4bfe1ff02b57b32c851e.tar.bz2 gentoo-1725d3e108a80e63756c4bfe1ff02b57b32c851e.zip |
app-backup/dirvish: EAPI 8
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-backup/dirvish/dirvish-1.2.1-r1.ebuild')
-rw-r--r-- | app-backup/dirvish/dirvish-1.2.1-r1.ebuild | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/app-backup/dirvish/dirvish-1.2.1-r1.ebuild b/app-backup/dirvish/dirvish-1.2.1-r1.ebuild new file mode 100644 index 000000000000..6319c1c91ebc --- /dev/null +++ b/app-backup/dirvish/dirvish-1.2.1-r1.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +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" + +RDEPEND=" + dev-perl/Time-ParseDate + dev-perl/Time-Period + net-misc/rsync +" +BDEPEND="app-arch/tar" + +src_prepare() { + default + + local file + for file in dirvish dirvish-runall dirvish-expire dirvish-locate; do + cat > ${file} <<-EOF || die + #!${EPREFIX}/usr/bin/perl + + \$CONFDIR = "${EPREFIX}/etc/dirvish"; + + EOF + cat ${file}.pl >> ${file} || die + cat loadconfig.pl >> ${file} || die + 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 + + HTML_DOCS=( {FAQ,RELEASE,TODO}.html ) + einstalldocs + + insinto /etc/dirvish + doins "${FILESDIR}"/master.conf.example +} |