diff options
Diffstat (limited to 'testing/burp/APKBUILD')
-rw-r--r-- | testing/burp/APKBUILD | 97 |
1 files changed, 97 insertions, 0 deletions
diff --git a/testing/burp/APKBUILD b/testing/burp/APKBUILD new file mode 100644 index 0000000000..f79a331e2b --- /dev/null +++ b/testing/burp/APKBUILD @@ -0,0 +1,97 @@ +# Maintainer: Bernhard J. M. Gruen <bernhard.gruen@googlemail.com> +pkgname=burp +pkgver=2.1.30 +pkgrel=0 +pkgdesc="Burp is a network backup and restore program" +url="http://burp.grke.org" +arch="all" +license="AGPL-3.0-only" +depends="" +depends_dev="" +makedepends=" + uthash-dev + libressl-dev + zlib-dev + librsync-dev + libtool + automake + autoconf + " +checkdepends=" + check-dev + " +install="" +subpackages=" + $pkgname-doc + $pkgname-server + " +#old URL: https://sourceforge.net/projects/$pkgname/files/$pkgname-$pkgver/$pkgname-$pkgver.tar.bz2 +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" + +build() { + cd "$builddir" + autoreconf -vif + ./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 + rm -rf "$pkgdir"/var + rm -rf "$pkgdir"/etc/burp/autoupgrade + rm -rf "$pkgdir"/etc/burp/clientconfdir + chmod -R go-rwx "$pkgdir"/etc/burp +} + +server() { + pkgdesc="burp is a network backup and restore program - \ + 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" + 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 + mv "$pkgdir"/usr/bin/bedup "$subpkgdir"/usr/bin + mv "$pkgdir"/usr/bin/bsigs "$subpkgdir"/usr/bin + mv "$pkgdir"/usr/bin/bsparse "$subpkgdir"/usr/bin + mv "$pkgdir"/usr/bin/burp_ca "$subpkgdir"/usr/bin + mv "$pkgdir"/usr/bin/vss_strip "$subpkgdir"/usr/bin +} + +sha512sums="8a6f8a97ee1ccaef68897be1a667b4320767718dcc7697fc16549adbc207d1c36c721df43434df3add65868d0a310cfe379432272514085125887b8257b13f22 2.1.30.zip +b3354c72c3156ce40620c4c8138195182cf431bad67e4aa4a40c1fe3f6fcdc1aff0294f85c892e616dc5e5fd7202a741172b457bef34314f70fbbf2367e35cda burp.init" |