mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-09-09 06:20:27 +00:00
From: Mark Hatle <mark.hatle@windriver.com> I was helping someone with building netperf from meta-networking last night, and stumbled on what I think is a bug. SUMMARY = "A networking benchmarking tool" DESCRIPTION = "Network performance benchmark including tests for TCP, UDP, sockets, ATM and more." SECTION = "console/network" HOMEPAGE = "http://www.netperf.org/" LICENSE = "netperf" LICENSE_FLAGS = "commercial" In the above, the LICENSE_FLAGS are set to 'commercial'. I think this is incorrect. It should be set to 'non-commercial'. There is a subtle difference between them which is why I think it's a bug... commercial -- there are some commercial requirements necessary to use this recipe in a commercial device... you are responsible for understanding them and doing whatever is necessary... (for non-commercial devices you can likely use it...) non-commercial -- this item is restricted to non-commercial users only. As in the case of netperf, the license says it's only for non-commercial use. So anyway, my suggestion is to simply change the value of the flag. Reported-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Joe MacDonald <joe.macdonald@windriver.com>
58 lines
1.9 KiB
BlitzBasic
58 lines
1.9 KiB
BlitzBasic
SUMMARY = "A networking benchmarking tool"
|
|
DESCRIPTION = "Network performance benchmark including tests for TCP, UDP, sockets, ATM and more."
|
|
SECTION = "console/network"
|
|
HOMEPAGE = "http://www.netperf.org/"
|
|
LICENSE = "netperf"
|
|
LICENSE_FLAGS = "non-commercial"
|
|
|
|
PR = "r0"
|
|
|
|
SRC_URI="ftp://ftp.netperf.org/netperf/netperf-${PV}.tar.bz2 \
|
|
file://cpu_set.patch \
|
|
file://vfork.patch \
|
|
file://init"
|
|
SRC_URI[md5sum] = "9654ffdfd4c4f2c93ce3733cd9ed9236"
|
|
SRC_URI[sha256sum] = "cd8dac710d4273d29f70e8dbd09353a6362ac58a11926e0822233c0cb230323a"
|
|
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=a0ab17253e7a3f318da85382c7d5d5d6"
|
|
|
|
inherit update-rc.d autotools
|
|
|
|
S = "${WORKDIR}/netperf-${PV}"
|
|
|
|
# cpu_set.patch plus _GNU_SOURCE makes src/netlib.c compile with CPU_ macros
|
|
CFLAGS_append = " -DDO_UNIX -DDO_IPV6 -D_GNU_SOURCE"
|
|
|
|
# autotools.bbclass attends to include m4 files with path depth <= 2 by
|
|
# "find ${S} -maxdepth 2 -name \*.m4", so move m4 files from m4/m4.
|
|
do_configure_prepend() {
|
|
test -d m4/m4 && mv -f m4/m4 m4-files
|
|
}
|
|
|
|
do_install() {
|
|
sed -e 's#/usr/sbin/#${sbindir}/#g' -i ${WORKDIR}/init
|
|
|
|
install -d ${D}${sbindir} ${D}${bindir} ${D}${sysconfdir}/init.d
|
|
install -m 4755 src/netperf ${D}${bindir}
|
|
install -m 4755 src/netserver ${D}${sbindir}
|
|
install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/netperf
|
|
|
|
# man
|
|
install -d ${D}${mandir}/man1/
|
|
install -m 0644 doc/netserver.man ${D}${mandir}/man1/netserver.1
|
|
install -m 0644 doc/netperf.man ${D}${mandir}/man1/netperf.1
|
|
|
|
# move scripts to examples directory
|
|
install -d ${D}${docdir}/netperf/examples
|
|
install -m 0644 doc/examples/*_script ${D}${docdir}/netperf/examples/
|
|
|
|
# docs ..
|
|
install -m 0644 COPYING ${D}${docdir}/netperf
|
|
install -m 0644 Release_Notes ${D}${docdir}/netperf
|
|
install -m 0644 README ${D}${docdir}/netperf
|
|
install -m 0644 doc/netperf_old.ps ${D}${docdir}/netperf
|
|
}
|
|
|
|
INITSCRIPT_NAME="netperf"
|
|
INITSCRIPT_PARAMS="defaults"
|