aboutsummaryrefslogtreecommitdiffstats
path: root/main/iperf3/APKBUILD
blob: 07d5431a556f9411be71ea2a147bba5314121f2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Contributor: Michael Mason <ms13sp@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=iperf
pkgver=3.1.3
pkgrel=0
pkgdesc="A tool to measure IP bandwidth using UDP or TCP"
url="https://github.com/esnet/iperf"
arch="all"
license="BSD"
depends=""
makedepends=""
install=""
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/esnet/iperf/archive/$pkgver.tar.gz
	iperf.initd
	iperf.confd
	
	1fe02385b60c9dcd8a04b8bd3ff5cff120ec35a6.patch
	remove-pg-flags.patch
	"

builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	CFLAGS="$CFLAGS -D_GNU_SOURCE"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		|| return 1
	make || return 1
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install || return 1
	install -D -m0755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
	install -D -m0644 "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
}

md5sums="7d9e550129d1ba68d4f49ea9dd412ada  iperf-3.1.3.tar.gz
291084a99bc42217bf20a3f9f479e4d0  iperf.initd
baf349898c6d08eaa3883d7e6802745c  iperf.confd
056442b6d4bef2a390f49124150fd4c9  1fe02385b60c9dcd8a04b8bd3ff5cff120ec35a6.patch
2bbaa32466ae3a3d7cf2c26d46d97324  remove-pg-flags.patch"
sha256sums="e34cf60cffc80aa1322d2c3a9b81e662c2576d2b03e53ddf1079615634e6f553  iperf-3.1.3.tar.gz
b109c524d71a9da0db18c271b74238ef5f85b270d2f60dc6ae8f097a3342d00d  iperf.initd
2063bd3defe0e58d43741ed6067f3f5552e579385620d0e0f5aa2b8e96b21151  iperf.confd
3bf6329c14a30fd3ce7adaeafe5d95485111e73440fd1d91f8429e3af1c0bb63  1fe02385b60c9dcd8a04b8bd3ff5cff120ec35a6.patch
35131030c9384025dc511f3fe359a0845b09ed8dede5960a7e9308ad15fccc52  remove-pg-flags.patch"
sha512sums="67795d9d5b4fc719b3fbbc2683cbe2777412bb7212282a50a378f5bb3793c3c17e278d22816fd9d289b2606ce97624d496ba236e3686ce1a31b9f1d6e6f474e9  iperf-3.1.3.tar.gz
339fb04b41cce11e8ea8694d95c13af9c88e0d1143356d913ec810c9b11efa27212d585b5dcc49cc2eb860a6d8bc557092c8659d7d5cfe532c5afdb36f8eedf8  iperf.initd
fb5e155fff568a72488cc1511d30358835a48bcce309f8f46d040160932b4a4ccb85040c27c60dee477900a25bd34c50eac21d1d0bea984b40faa401be2ba7e8  iperf.confd
94a37158a1486442ef8f4a9bfb7f1fd02786dc5a3352a7249e2b5f0c910f0d2b951e40bdb94619aa8ca76ce8cda4c574a7fa85e12832c9fd684d074886aee7c7  1fe02385b60c9dcd8a04b8bd3ff5cff120ec35a6.patch
81808862eecacdd7be658daa094385d7a57594281992b6b9b842cee676137d6990dce592b25e5db9fb80ea86628286ff7d234787d2939ef1f99820a361e1f3c6  remove-pg-flags.patch"