dcf4b76c77
Added znapzend 0.19.0-1
38 lines
1.4 KiB
Text
38 lines
1.4 KiB
Text
# Maintainer: Antoine Martin <antoine@ayakael.net>
|
|
|
|
pkgname=znapzend
|
|
pkgver=0.19.0
|
|
pkgrel=1
|
|
pkgdesc="ZnapZend is a ZFS centric backup tool."
|
|
arch='all'
|
|
url="http://www.znapzend.org/"
|
|
license='GPL'
|
|
depends='perl zfs mbuffer'
|
|
makedepends='perl-dev'
|
|
source="https://github.com/oetiker/${pkgname}/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.gz"
|
|
subpackages="${pkgname}-doc"
|
|
|
|
prepare() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
sed -i 's:@BINDIR@:/usr/bin:' "init/znapzend.sysv.in"
|
|
}
|
|
|
|
build() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
./configure --prefix="/usr/share/${pkgname}"
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
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"
|
|
}
|
|
sha512sums="4d820d76ee3b79308ce885467880ad160ed7b0eb4cd3b29212514c3a4b3d7536df31f7edc5d14f81ee9dcb9ab4c3f7c74022aaf6e84c101623e31eaf4ab5e780 znapzend-0.19.0.tar.gz"
|
|
|