aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2017-06-28 08:51:26 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2017-06-28 08:51:26 +0000
commit028d4913e7cc527049245b0e0d81f9513065607f (patch)
tree504810987646f03f082241e7dff9e9382350c25d
parent16b3950000387f44d64e8fe2ce8a97741895fd2d (diff)
downloadaports-028d4913e7cc527049245b0e0d81f9513065607f.tar.gz
aports-028d4913e7cc527049245b0e0d81f9513065607f.tar.bz2
aports-028d4913e7cc527049245b0e0d81f9513065607f.tar.xz
main/iperf3: upgrade to 3.2, added check() function
-rw-r--r--main/iperf3/APKBUILD21
1 files changed, 13 insertions, 8 deletions
diff --git a/main/iperf3/APKBUILD b/main/iperf3/APKBUILD
index 45455a0419..3e39c8456b 100644
--- a/main/iperf3/APKBUILD
+++ b/main/iperf3/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=iperf3
_pkgname=iperf
-pkgver=3.1.7
+pkgver=3.2
pkgrel=0
pkgdesc="A tool to measure IP bandwidth using UDP or TCP"
url="https://github.com/esnet/iperf"
@@ -21,6 +21,12 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/esnet/$_pkgname/archive/$pkg
"
builddir="$srcdir/$_pkgname-$pkgver"
+
+check() {
+ cd "$builddir"
+ make check
+}
+
build() {
cd "$builddir"
CFLAGS="$CFLAGS -D_GNU_SOURCE"
@@ -30,22 +36,21 @@ build() {
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
- --infodir=/usr/share/info \
- || return 1
- make -j1 || return 1
+ --infodir=/usr/share/info
+ make -j1
}
package() {
cd "$builddir"
- make DESTDIR="$pkgdir" install || return 1
+ make DESTDIR="$pkgdir" install
install -D -m0755 "$srcdir"/$_pkgname.initd \
- "$pkgdir"/etc/init.d/$_pkgname || return 1
+ "$pkgdir"/etc/init.d/$_pkgname
install -D -m0644 "$srcdir"/$_pkgname.confd \
- "$pkgdir"/etc/conf.d/$_pkgname || return 1
+ "$pkgdir"/etc/conf.d/$_pkgname
}
-sha512sums="9bcc011de99356467341bd9082d2a57d243a3543c65afc18f8027b1bc7e54c1544a750640fa5230b9610ac2241571395a1bd011812edd141607b59dd3cd08ce0 iperf3-3.1.7.tar.gz
+sha512sums="5c49bb832dd53956d15b0a9374b052a4e4e03c7c3b6e8c150001a7aba07b6ad5f8cd2b9ac2d9876981be0adf8b0396535ec9e021d58c8fe909a0f92743b4f855 iperf3-3.2.tar.gz
339fb04b41cce11e8ea8694d95c13af9c88e0d1143356d913ec810c9b11efa27212d585b5dcc49cc2eb860a6d8bc557092c8659d7d5cfe532c5afdb36f8eedf8 iperf.initd
fb5e155fff568a72488cc1511d30358835a48bcce309f8f46d040160932b4a4ccb85040c27c60dee477900a25bd34c50eac21d1d0bea984b40faa401be2ba7e8 iperf.confd
e544ae5545f6b8ff071a1344068f9ed2bec051eb82a3b53cfccda767ea915ecf2aff5f2bf91135cba62afdb1fd421298518fa0b08339c869a4d381b1e1d396dd build-fixes.patch