# Maintainer: Bernhard J. M. Gruen pkgname=burp pkgver=2.1.32 pkgrel=1 pkgdesc="A network backup and restore program" url="http://burp.grke.org" arch="all" license="AGPL-3.0-only" makedepends=" uthash-dev libressl-dev zlib-dev librsync-dev libtool automake autoconf " depends="" checkdepends=" check-dev " subpackages=" $pkgname-doc $pkgname-server " source="https://github.com/grke/$pkgname/archive/$pkgver.zip burp.init " builddir="$srcdir/$pkgname-$pkgver" # Check is deactivated as it needs --enable-forks in check/check-dev options="!check" prepare() { default_prepare autoreconf -vif } build() { cd "$builddir" ./configure \ --prefix=/usr \ --sbindir=/usr/bin \ --sysconfdir=/etc/burp \ --mandir=/usr/share/man \ --localstatedir=/var \ --disable-acl \ --disable-xattr make } check() { cd "$builddir" make check } package() { cd "$builddir" make DESTDIR="$pkgdir" install-all cd "$pkgdir" rm -rf var \ etc/burp/autoupgrade \ etc/burp/clientconfdir chmod -R go-rwx etc/burp } server() { pkgdesc="$pkgdesc (server configuration and helper scripts)" # bash is needed on the server to run burp_ca, timer and notify scripts # I am working on a version that does not need bash anymore depends="bash libressl" cd "$builddir" mkdir -p "$subpkgdir"/var/spool/burp chmod 0755 "$subpkgdir"/var/spool chmod 0700 "$subpkgdir"/var/spool/burp mkdir -p "$subpkgdir"/usr/share/burp/scripts mv "$pkgdir"/usr/share/burp/scripts "$subpkgdir"/usr/share/burp rm -rf "$pkgdir"/usr/share mkdir -p "$subpkgdir"/etc/burp mv "$pkgdir"/etc/burp/CA.cnf "$subpkgdir"/etc/burp/CA.cnf mv "$pkgdir"/etc/burp/burp-server.conf \ "$subpkgdir"/etc/burp/burp-server.conf install -Dm755 "$srcdir"/burp.init "$subpkgdir"/etc/init.d/burp mkdir -p "$subpkgdir"/usr/bin local name; for name in bedup bsigs bsparse burp_ca vss_strip; do mv "$pkgdir"/usr/bin/$name "$subpkgdir"/usr/bin/$name done } sha512sums="99d1af3673f2c2f9f2315fcb920aeb22b050390ef1b5b773dd5c6316c43a05dab43563a42eef6ee68608cf048c90d3cb2f3d3bde74acf64defeb6d311a4ea256 2.1.32.zip ef98c1fb938063fee35cc5ae5ff9179a759b89b3c2629320ff4dffb4c42395cac1ad6b4615c6c1f34cc4be3ce54397b00f583ba5f3cd2fe8498902d4d9445e8f burp.init"