aboutsummaryrefslogtreecommitdiffstats
path: root/community/iperf/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/iperf/APKBUILD')
-rw-r--r--community/iperf/APKBUILD43
1 files changed, 43 insertions, 0 deletions
diff --git a/community/iperf/APKBUILD b/community/iperf/APKBUILD
new file mode 100644
index 00000000000..708fc6dd51f
--- /dev/null
+++ b/community/iperf/APKBUILD
@@ -0,0 +1,43 @@
+# Contributor: Michael Mason <ms13sp@gmail.com>
+# Contributor: Oleg Titov <oleg.titov@gmail.com>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=iperf
+pkgver=2.1.9
+pkgrel=0
+pkgdesc="A tool to measure IP bandwidth using UDP or TCP"
+url="https://sourceforge.net/projects/iperf2/"
+arch="all"
+license="NCSA"
+subpackages="$pkgname-doc $pkgname-openrc"
+source="https://sourceforge.net/projects/iperf2/files/iperf-$pkgver.tar.gz
+ iperf.initd
+ iperf.confd
+ "
+
+build() {
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info
+ make
+}
+
+check() {
+ # iperf -v returns 1
+ ./src/iperf -v || test $? = 1
+}
+
+package() {
+ make DESTDIR="$pkgdir" install
+ install -D -m0755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
+ install -D -m0644 "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
+}
+
+sha512sums="
+231b281cfaf0e0b67839efef7d86b762a709fe76403a9e39ebe5431e486537b522b58e5a736351c7343134b445499606a02f8430ecb7120cb7d04400d9cb232b iperf-2.1.9.tar.gz
+7dcd51fa77f7e8bd9a14339f61f93f591d74a86c767dbdc1d6035b6f7f4ce6fec34e8880caf68eab301640250b579b495274f2454c48b9601455ec46abab8949 iperf.initd
+fb5e155fff568a72488cc1511d30358835a48bcce309f8f46d040160932b4a4ccb85040c27c60dee477900a25bd34c50eac21d1d0bea984b40faa401be2ba7e8 iperf.confd
+"