aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-benchmark/iperf/iperf_2.0.4.bb
blob: bd8bac126becdb9402274f34c149b8d9e9f7d85f (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
DESCRIPTION = "Iperf is a tool to measure maximum TCP bandwidth, allowing the tuning of various parameters and UDP characteristics"
HOMEPAGE = "http://dast.nlanr.net/Projects/Iperf/"
SECTION = "console/network"
LICENSE = "NewBSD"
LIC_FILES_CHKSUM = "file://COPYING;md5=e8478eae9f479e39bc34975193360298"

SRC_URI = " \
	${SOURCEFORGE_MIRROR}/iperf/iperf-${PV}.tar.gz \
        file://000-Iperf_Fix-CPU-Usage.diff \
        file://001-cast-to-max_size_t-instead-of-int.patch \
        file://003-fix-hyphen-used-as-minus-sign.patch \
        file://004-svn-r43-ro.patch \
        file://005-iperf-die-on-bind-fail.patch \
        file://006-iperf-die-on-connect-fail.patch \
        file://007-iperf-reporter-deadlock.patch \
        file://008-numofreport.patch \
        file://009-delayloop.patch \
	"


SRC_URI[md5sum] = "8c5bc14cc2ea55f18f22afe3c23e3dcb"
SRC_URI[sha256sum] = "3b52f1c178d6a99c27114929d5469c009197d15379c967b329bafb956f397944"

inherit autotools

S="${WORKDIR}/iperf-${PV}"

EXTRA_OECONF = "--exec-prefix=${STAGING_DIR_HOST}${layout_exec_prefix}"

do_configure() {
	export ac_cv_func_malloc_0_nonnull=yes
	gnu-configize
	oe_runconf
}

do_compile() {
	cd ${WORKDIR}/iperf-${PV}
	oe_runmake
}

do_install() {
	cd ${WORKDIR}/iperf-${PV}/src
	oe_runmake DESTDIR=${D} install
}