blob: 3920146dd385139eb999871028f51ef651e02a21 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# Maintainer: John Ramsden <streblo@ramsdenj.ca>
pkgname=znapzend
pkgver=0.15.7
pkgrel=3
pkgdesc="ZnapZend is a ZFS centric backup tool. It relies on snapshot, send and receive todo its work. It has the built-in ability to manage both local snapshots as well as remote copies by thining them out as time progresses."
arch=('any')
url="http://www.znapzend.org/"
license=('GPL')
depends=('perl' 'zfs')
source=("https://github.com/oetiker/${pkgname}/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
noextract=()
md5sums=('c464e0799212f025c31859737c3ce4bc')
prepare() {
cd "${pkgname}-${pkgver}"
sed -i 's:ExecStart=/usr/local/bin/znapzend:ExecStart=/usr/bin/znapzend:' "init/znapzend.service"
}
build() {
cd "${pkgname}-${pkgver}"
./configure --prefix="/opt/${pkgname}-${pkgver}"
make
}
package() {
cd "${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
mkdir -p "${pkgdir}/usr/bin" "${pkgdir}/etc/systemd/system" "${pkgdir}/usr/share/man/man1"
ln -s "/opt/${pkgname}-${pkgver}/bin/znapzend" "${pkgdir}/usr/bin/znapzend"
ln -s "/opt/${pkgname}-${pkgver}/bin/znapzendzetup" "${pkgdir}/usr/bin/znapzendzetup"
ln -s "/opt/${pkgname}-${pkgver}/bin/znapzendztatz" "${pkgdir}/usr/bin/znapzendztatz"
install -m 644 "init/znapzend.service" "${pkgdir}/etc/systemd/system/znapzend.service"
install -m 644 "man/znapzend.1" "man/znapzendzetup.1" "man/znapzendztatz.1" "${pkgdir}/usr/share/man/man1"
}
|