added package prototype for app-backup/znapzend

This commit is contained in:
Tamás Gérczei 2019-10-17 19:32:58 +02:00
parent 0a986224a6
commit 03c45b8963
3 changed files with 64 additions and 0 deletions

View File

@ -0,0 +1,3 @@
AUX initd_znapzend 343 BLAKE2B eddce54c04e1371b7626cf33ead2a72195660fcaff53f14bbeb860c133575dddb1afee8cde7cddb7734268249cfa199469ceaf65da288614eeaf528ea40d45c6 SHA512 52d0329fa6e660ea994712ea032024537fcbb705932e98a454e87ccaae99ba74538c89ab4ad037e552d7ce7d355945b27624c027d92c1bf77d702f6108e63656
DIST znapzend-0.19.1.tar.gz 3115740 BLAKE2B a39e0e643f94e492cba0f230197a5600fbd1e5292eabcf9513f8d8ef355c7d9294acb5ba2a1d329cf60eee0074db0f3fc39baf94fe316d56f4b21cfb049a3159 SHA512 7cfd00ab813571f2b29ae51a83281f1093914fdb4a5dfcd59768d017b14110ffb969cf13052eed0de06df6c072e689f4ab041ca310e05d3e90c0bbc2f174e9cc
EBUILD znapzend-0.19.1.ebuild 1020 BLAKE2B f3a56dfd9f4348851d67a6b4d756c9540d57c8b77b0a5267dc2342f482e51063aca5d80b3cf8893fbe4da415d2d8eee09c8f311f190ec572caa723355c4f6fee SHA512 74c392271aff76c943fe5770d83cc19e239ec1119fa0046fa1f638edb85bd57de8dcaff068084da11dd0cd31c48527b9252b0e080809ee48d6ed7b488adc632c

View File

@ -0,0 +1,13 @@
#!/sbin/openrc-run
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
command="/opt/bin/znapzend"
pidfile="/var/run/${RC_SVCNAME}.pid"
if [ -e /etc/default/${RC_SVCNAME} ]; then
. /etc/default/${RC_SVCNAME}
fi
command_args="$ZNAPZENDOPTIONS"
command_args_background="--daemonize"

View File

@ -0,0 +1,48 @@
# 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."
}