aboutsummaryrefslogtreecommitdiffstats
path: root/main/iperf/APKBUILD
blob: 77b54c78ad1e22051322b761a5af64de4071ae76 (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
# Contributor: Michael Mason <ms13sp@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=iperf
pkgver=2.0.9
pkgrel=1
pkgdesc="A tool to measure IP bandwidth using UDP or TCP"
url="http://iperf.sourceforge.net/"
arch="all"
license="BSD"
depends="!iperf3"
makedepends=""
install=""
subpackages="$pkgname-doc"
source="https://iperf.fr/download/source/iperf-$pkgver-source.tar.gz
	iperf.initd
	iperf.confd
	"

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

prepare() {
	cd "$builddir"
	update_config_sub || return 1
}

build() {
	cd "$builddir"
	./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="1bb3a1d98b1973aee6e8f171933c0f61  iperf-2.0.9-source.tar.gz
291084a99bc42217bf20a3f9f479e4d0  iperf.initd
baf349898c6d08eaa3883d7e6802745c  iperf.confd"
sha256sums="a5350777b191e910334d3a107b5e5219b72ffa393da4186da1e0a4552aeeded6  iperf-2.0.9-source.tar.gz
b109c524d71a9da0db18c271b74238ef5f85b270d2f60dc6ae8f097a3342d00d  iperf.initd
2063bd3defe0e58d43741ed6067f3f5552e579385620d0e0f5aa2b8e96b21151  iperf.confd"
sha512sums="ff75e51af9d368eedb1e1dc4621f7575219525f0e438f1c8fa896aa7e990a6812a9a351db9004952057d81127f52b67350820e85c9ae1d8db2e6a60c1f2534d2  iperf-2.0.9-source.tar.gz
339fb04b41cce11e8ea8694d95c13af9c88e0d1143356d913ec810c9b11efa27212d585b5dcc49cc2eb860a6d8bc557092c8659d7d5cfe532c5afdb36f8eedf8  iperf.initd
fb5e155fff568a72488cc1511d30358835a48bcce309f8f46d040160932b4a4ccb85040c27c60dee477900a25bd34c50eac21d1d0bea984b40faa401be2ba7e8  iperf.confd"