aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2017-04-16 12:57:21 +0200
committerJakub Jirutka <jakub@jirutka.cz>2017-04-16 12:58:03 +0200
commit13b727f6aa3225b88e620bfc9f44e190c3fccd36 (patch)
tree7f6712a906383d34afbdcef45e7e8eeaff6dd047 /testing
parent1c0c11a967c503a9828f3ee95f8b4145b480d2bf (diff)
downloadaports-13b727f6aa3225b88e620bfc9f44e190c3fccd36.tar.bz2
aports-13b727f6aa3225b88e620bfc9f44e190c3fccd36.tar.xz
testing/nethogs: modernize abuild
Diffstat (limited to 'testing')
-rw-r--r--testing/nethogs/APKBUILD11
-rw-r--r--testing/nethogs/set-version.patch4
2 files changed, 5 insertions, 10 deletions
diff --git a/testing/nethogs/APKBUILD b/testing/nethogs/APKBUILD
index 7aab19e6cc..500743424e 100644
--- a/testing/nethogs/APKBUILD
+++ b/testing/nethogs/APKBUILD
@@ -11,8 +11,7 @@ license="GPL"
makedepends="libpcap-dev linux-headers ncurses-dev"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/raboof/$pkgname/archive/v$pkgver.tar.gz
- set-version.patch
- "
+ set-version.patch"
builddir="$srcdir/$pkgname-$pkgver"
build() {
@@ -22,13 +21,9 @@ build() {
package() {
cd "$builddir"
- install -Dm755 src/nethogs "$pkgdir"/usr/sbin/nethogs || return 1
+ install -Dm755 src/nethogs "$pkgdir"/usr/sbin/nethogs
install -Dm644 doc/nethogs.8 "$pkgdir"/usr/share/man/man8/nethogs.8
}
-md5sums="002fd7227d8ed2a8b0fcb0a1b44731bf nethogs-0.8.5.tar.gz
-8c00ec8ddaf768bdaa5c7246d32ba123 set-version.patch"
-sha256sums="6a9392726feca43228b3f0265379154946ef0544c2ca2cac59ec35a24f469dcc nethogs-0.8.5.tar.gz
-f957287746c307153d45e78c6908b59439e201d5830cc7d128cb2ebecdc50ee3 set-version.patch"
sha512sums="a2be81fcebc9925dd8a0fd9f71c6e790206819e0cc5efeeeb0c741baa9fd25ec685a1784b6d331d938cf14381403f9c13d619509d0ffe713ce8786a83a380908 nethogs-0.8.5.tar.gz
-2746981a591e3fc93ddf27ccc3bb44e6e6ab5ed8607f39e527add16d90d2db614271cc4b724db8f5483ec1ccf3b2e76c92edc380e6a562240ba143b1efc5da24 set-version.patch"
+81d44aea5fa585d80a52f562b308046d6d173e277ab6fdc1e289eda65cfcfbd5bec379c70eb94052a86d8f2e008dc44be3894fca8d74c5b6754753e609422b3e set-version.patch"
diff --git a/testing/nethogs/set-version.patch b/testing/nethogs/set-version.patch
index 67817ab811..35f6c43044 100644
--- a/testing/nethogs/set-version.patch
+++ b/testing/nethogs/set-version.patch
@@ -1,5 +1,5 @@
---- ./Makefile.orig
-+++ ./Makefile
+--- a/Makefile
++++ b/Makefile
@@ -1,4 +1,4 @@
-export VERSION := $(shell ./determineVersion.sh)
+export VERSION ?= $(shell ./determineVersion.sh)