netbase: fix non working wpa_supplicant detection in network restarts. Push PR.
[openembedded.git] / recipes / netperf / netperf_2.3.bb
1 SECTION = "console/network"
2 DESCRIPTION="Network performance benchmark including tests for TCP, UDP, sockets, ATM and more."
3 HOMEPAGE="http://www.netperf.org/"
4 LICENSE="netperf"
5
6 SRC_URI="${DEBIAN_MIRROR}/non-free/n/netperf/netperf_${PV}.orig.tar.gz \
7         file://init"
8
9 inherit update-rc.d
10
11 S = "${WORKDIR}/netperf-${PV}.orig"
12
13 CFLAGS_append = " -DDO_UNIX -DDO_IPV6"
14
15 do_compile() {   
16         oe_runmake
17         sed -i 's:^\(NETHOME=\).*:\ 1${bindir}:' *_script
18 }
19
20 do_install() {
21         install -d ${D}${sbindir} ${D}${bindir} ${D}${sysconfdir}/init.d
22         install -m 4755 netperf ${D}${bindir}
23         install -m 4755 netserver ${D}${sbindir}
24         install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/netperf
25     
26         # man
27         install -d ${D}${mandir}/man1/
28         install -m 0644 netserver.man ${D}${mandir}/man1/netserver.1
29         install -m 0644 netperf.man ${D}${mandir}/man1/netperf.1
30
31         # move scripts to examples directory
32         install -d ${D}${docdir}/netperf/examples
33         install -m 0644 tcp_range_script ${D}${docdir}/netperf/examples/
34         install -m 0644 tcp_stream_script ${D}${docdir}/netperf/examples/
35         install -m 0644 tcp_rr_script ${D}${docdir}/netperf/examples/
36         install -m 0644 udp_stream_script ${D}${docdir}/netperf/examples/
37         install -m 0644 udp_rr_script ${D}${docdir}/netperf/examples/
38         install -m 0644 snapshot_script ${D}${docdir}/netperf/examples/
39         
40         # docs ..
41         install -m 0644 ACKNWLDGMNTS ${D}${docdir}/netperf
42         install -m 0644 COPYRIGHT ${D}${docdir}/netperf
43         install -m 0644 Release_Notes ${D}${docdir}/netperf
44         install -m 0644 README ${D}${docdir}/netperf
45         install -m 0644 netperf.ps ${D}${docdir}/netperf
46 }
47
48 INITSCRIPT_NAME="netperf"
49 INITSCRIPT_PARAMS="defaults"