summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-support/netperf/netperf_2.6.0.bb
diff options
context:
space:
mode:
authorTudor Florea <tudor.florea@enea.com>2014-10-10 03:20:04 +0200
committerTudor Florea <tudor.florea@enea.com>2014-10-10 03:20:04 +0200
commit1b8dfe266937a37a4c642f96ceb2347bf4c00a17 (patch)
tree0c6aab146bb3c82efd9c7846a9a4e70dcb0ec84f /meta-networking/recipes-support/netperf/netperf_2.6.0.bb
downloadmeta-openembedded-daisy-140929.tar.gz
initial commit for Enea Linux 4.0-140929daisy-140929
Migrated from the internal git server on the daisy-enea-point-release branch Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta-networking/recipes-support/netperf/netperf_2.6.0.bb')
-rw-r--r--meta-networking/recipes-support/netperf/netperf_2.6.0.bb61
1 files changed, 61 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/netperf/netperf_2.6.0.bb b/meta-networking/recipes-support/netperf/netperf_2.6.0.bb
new file mode 100644
index 0000000000..7124b02e3f
--- /dev/null
+++ b/meta-networking/recipes-support/netperf/netperf_2.6.0.bb
@@ -0,0 +1,61 @@
1SUMMARY = "A networking benchmarking tool"
2DESCRIPTION = "Network performance benchmark including tests for TCP, UDP, sockets, ATM and more."
3SECTION = "console/network"
4HOMEPAGE = "http://www.netperf.org/"
5LICENSE = "netperf"
6LICENSE_FLAGS = "non-commercial"
7
8
9SRC_URI="ftp://ftp.netperf.org/netperf/netperf-${PV}.tar.bz2 \
10 file://cpu_set.patch \
11 file://vfork.patch \
12 file://init"
13SRC_URI[md5sum] = "9654ffdfd4c4f2c93ce3733cd9ed9236"
14SRC_URI[sha256sum] = "cd8dac710d4273d29f70e8dbd09353a6362ac58a11926e0822233c0cb230323a"
15
16LIC_FILES_CHKSUM = "file://COPYING;md5=a0ab17253e7a3f318da85382c7d5d5d6"
17
18inherit update-rc.d autotools
19
20S = "${WORKDIR}/netperf-${PV}"
21
22# cpu_set.patch plus _GNU_SOURCE makes src/netlib.c compile with CPU_ macros
23CFLAGS_append = " -DDO_UNIX -DDO_IPV6 -D_GNU_SOURCE"
24
25# set the "_FILE_OFFSET_BITS" preprocessor symbol to 64 to support files
26# larger than 2GB
27CFLAGS_append = "${@base_contains('DISTRO_FEATURES', 'largefile', \
28 ' -D_FILE_OFFSET_BITS=64', '', d)}"
29
30# autotools.bbclass attends to include m4 files with path depth <= 2 by
31# "find ${S} -maxdepth 2 -name \*.m4", so move m4 files from m4/m4.
32do_configure_prepend() {
33 test -d ${S}/m4/m4 && mv -f ${S}/m4/m4 ${S}/m4-files
34}
35
36do_install() {
37 sed -e 's#/usr/sbin/#${sbindir}/#g' -i ${WORKDIR}/init
38
39 install -d ${D}${sbindir} ${D}${bindir} ${D}${sysconfdir}/init.d
40 install -m 4755 src/netperf ${D}${bindir}
41 install -m 4755 src/netserver ${D}${sbindir}
42 install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/netperf
43
44 # man
45 install -d ${D}${mandir}/man1/
46 install -m 0644 ${S}/doc/netserver.man ${D}${mandir}/man1/netserver.1
47 install -m 0644 ${S}/doc/netperf.man ${D}${mandir}/man1/netperf.1
48
49 # move scripts to examples directory
50 install -d ${D}${docdir}/netperf/examples
51 install -m 0644 ${S}/doc/examples/*_script ${D}${docdir}/netperf/examples/
52
53 # docs ..
54 install -m 0644 ${S}/COPYING ${D}${docdir}/netperf
55 install -m 0644 ${S}/Release_Notes ${D}${docdir}/netperf
56 install -m 0644 ${S}/README ${D}${docdir}/netperf
57 install -m 0644 ${S}/doc/netperf_old.ps ${D}${docdir}/netperf
58}
59
60INITSCRIPT_NAME="netperf"
61INITSCRIPT_PARAMS="defaults"