diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2018-03-04 16:45:12 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2018-03-04 16:45:26 +0100 |
commit | d17a9eecfff7ed354af437d84564d2ca0f46ff94 (patch) | |
tree | 12c559fba6c8152bbf7d69cd5bd8d51179ca3002 /testing/burp | |
parent | 0d4723f16355b1e4168b3e66605c95572e877bd5 (diff) | |
download | aports-d17a9eecfff7ed354af437d84564d2ca0f46ff94.tar.bz2 aports-d17a9eecfff7ed354af437d84564d2ca0f46ff94.tar.xz |
testing/burp: cleanup and improve abuild
Diffstat (limited to 'testing/burp')
-rw-r--r-- | testing/burp/APKBUILD | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/testing/burp/APKBUILD b/testing/burp/APKBUILD index a55f107f07..0f0c466294 100644 --- a/testing/burp/APKBUILD +++ b/testing/burp/APKBUILD @@ -1,13 +1,11 @@ # 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" +pkgrel=1 +pkgdesc="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 @@ -20,24 +18,24 @@ makedepends=" 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 +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" - autoreconf -vif ./configure \ --prefix=/usr \ --sbindir=/usr/bin \ @@ -56,24 +54,28 @@ 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 + + cd "$pkgdir" + rm -rf var \ + etc/burp/autoupgrade \ + etc/burp/clientconfdir + chmod -R go-rwx etc/burp } server() { - pkgdesc="burp is a network backup and restore program - \ - server configuration and helper scripts" - + 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" + 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 @@ -86,11 +88,9 @@ server() { 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 + local name; for name in bedup bsigs bsparse burp_ca vss_strip; do + mv "$pkgdir"/usr/bin/$name "$subpkgdir"/usr/$name + done } sha512sums="8a6f8a97ee1ccaef68897be1a667b4320767718dcc7697fc16549adbc207d1c36c721df43434df3add65868d0a310cfe379432272514085125887b8257b13f22 2.1.30.zip |