49 lines
1020 B
Bash
49 lines
1020 B
Bash
# Copyright 1999-2018 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=5
|
|
|
|
inherit eutils
|
|
|
|
DESCRIPTION="ZFS backup with remote capabilities and mbuffer integration"
|
|
HOMEPAGE="https://github.com/oetiker/znapzend"
|
|
SRC_URI="${HOMEPAGE}/releases/download/v${PV}/${P}.tar.gz"
|
|
|
|
LICENSE="GPL-3"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64"
|
|
IUSE=""
|
|
|
|
RDEPEND="${DEPEND}"
|
|
|
|
src_configure() {
|
|
econf --prefix=/opt --libdir=/opt/lib/perl5
|
|
}
|
|
|
|
src_compile() {
|
|
emake
|
|
}
|
|
|
|
src_install() {
|
|
exeinto /opt/bin
|
|
doexe bin/*
|
|
|
|
insinto /etc/default
|
|
newins init/${PN}.default ${PN}
|
|
|
|
insinto /opt/lib
|
|
doins lib/ZnapZend.pm
|
|
doins -r lib/ZnapZend
|
|
|
|
insinto /opt/lib
|
|
doins -r thirdparty/lib/perl5/*
|
|
|
|
newinitd ${FILESDIR}/initd_${PN} ${PN}
|
|
}
|
|
|
|
pkg_postinst() {
|
|
elog "This software release depends on modules no longer available through Portage."
|
|
elog "Since it will automatically obtain them from CPAN automatically, they will be"
|
|
elog "placed under '/opt/lib' in order not to interfere with the rest of the system."
|
|
}
|