2021-11-30 21:44:44 +00:00
|
|
|
# Maintainer: Antoine Martin <antoine@ayakael.net>
|
|
|
|
|
|
|
|
pkgname=znapzend
|
2023-01-11 00:40:45 +00:00
|
|
|
pkgver=0.21.1
|
|
|
|
pkgrel=0
|
2021-11-30 21:44:44 +00:00
|
|
|
pkgdesc="ZnapZend is a ZFS centric backup tool."
|
|
|
|
arch='all'
|
|
|
|
url="http://www.znapzend.org/"
|
|
|
|
license='GPL'
|
|
|
|
depends='perl zfs mbuffer'
|
|
|
|
makedepends='perl-dev wget'
|
2023-01-11 00:40:45 +00:00
|
|
|
source="https://github.com/oetiker/$pkgname/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz"
|
|
|
|
subpackages="$pkgname-doc"
|
2021-11-30 21:44:44 +00:00
|
|
|
options=!check
|
2023-01-11 00:40:45 +00:00
|
|
|
builddir="$srcdir/$pkgname-$pkgver"
|
2021-11-30 21:44:44 +00:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
sed -i 's:@BINDIR@:/usr/bin:' "init/znapzend.sysv.in"
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
./configure --prefix="/usr/share/${pkgname}"
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
mkdir -p "${pkgdir}/usr/bin" "${pkgdir}/etc/init.d" "${pkgdir}/usr/share/man/man1"
|
|
|
|
ln -s "/usr/share/${pkgname}/bin/znapzend" "${pkgdir}/usr/bin/znapzend"
|
|
|
|
ln -s "/usr/share/${pkgname}/bin/znapzendzetup" "${pkgdir}/usr/bin/znapzendzetup"
|
|
|
|
ln -s "/usr/share/${pkgname}/bin/znapzendztatz" "${pkgdir}/usr/bin/znapzendztatz"
|
|
|
|
install -m 644 "init/znapzend.sysv" "${pkgdir}/etc/init.d/znapzend"
|
|
|
|
install -m 644 "man/znapzend.1" "man/znapzendzetup.1" "man/znapzendztatz.1" "${pkgdir}/usr/share/man/man1"
|
|
|
|
# chmod 777 "${pkgdir}/usr/share/znapzend/lib/x86_64-linux-thread-multi/auto/List/Util/Util.so"
|
|
|
|
}
|
2023-01-11 00:40:45 +00:00
|
|
|
sha512sums="
|
|
|
|
2fd39109d6967d8dc434c346f7ba6d912519d71294dcc017a90727e56250298d753671986ed34e72fb45eb20fb17aa62945af055df17f2cc1ab04cd28369c649 znapzend-0.21.1.tar.gz
|
|
|
|
"
|