summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-support/netperf/netperf_git.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-networking/recipes-support/netperf/netperf_git.bb')
-rw-r--r--meta-networking/recipes-support/netperf/netperf_git.bb13
1 files changed, 4 insertions, 9 deletions
diff --git a/meta-networking/recipes-support/netperf/netperf_git.bb b/meta-networking/recipes-support/netperf/netperf_git.bb
index 579a04b86f..4043da5621 100644
--- a/meta-networking/recipes-support/netperf/netperf_git.bb
+++ b/meta-networking/recipes-support/netperf/netperf_git.bb
@@ -15,11 +15,12 @@ SRC_URI = "git://github.com/HewlettPackard/netperf.git;branch=master;protocol=ht
15 file://0001-netlib.c-Move-including-sched.h-out-og-function.patch \ 15 file://0001-netlib.c-Move-including-sched.h-out-og-function.patch \
16 file://0001-nettest_omni-Remove-duplicate-variable-definitions.patch \ 16 file://0001-nettest_omni-Remove-duplicate-variable-definitions.patch \
17 file://netserver_permissions.patch \ 17 file://netserver_permissions.patch \
18 file://0001-Makefile.am-add-ACLOCAL_AMFLAGS.patch \
19 file://0001-Fix-too-many-arguments-error-occurring-in-gcc-15.patch \
18 " 20 "
19 21
20SRCREV = "3bc455b23f901dae377ca0a558e1e32aa56b31c4" 22SRCREV = "3bc455b23f901dae377ca0a558e1e32aa56b31c4"
21 23
22S = "${WORKDIR}/git"
23 24
24inherit update-rc.d autotools texinfo systemd 25inherit update-rc.d autotools texinfo systemd
25 26
@@ -35,12 +36,6 @@ PACKAGECONFIG[sctp] = "--enable-sctp,--disable-sctp,lksctp-tools,"
35PACKAGECONFIG[intervals] = "--enable-intervals,--disable-intervals,," 36PACKAGECONFIG[intervals] = "--enable-intervals,--disable-intervals,,"
36PACKAGECONFIG[histogram] = "--enable-histogram,--disable-histogram,," 37PACKAGECONFIG[histogram] = "--enable-histogram,--disable-histogram,,"
37 38
38# autotools.bbclass attends to include m4 files with path depth <= 2 by
39# "find ${S} -maxdepth 2 -name \*.m4", so move m4 files from m4/m4.
40do_configure:prepend() {
41 test -d ${S}/m4/m4 && mv -f ${S}/m4/m4 ${S}/m4-files
42}
43
44do_install() { 39do_install() {
45 sed -e 's#/usr/sbin/#${sbindir}/#g' -i ${UNPACKDIR}/init 40 sed -e 's#/usr/sbin/#${sbindir}/#g' -i ${UNPACKDIR}/init
46 install -d ${D}${sbindir} ${D}${bindir} ${D}${sysconfdir}/init.d ${D}${systemd_system_unitdir} 41 install -d ${D}${sbindir} ${D}${bindir} ${D}${sysconfdir}/init.d ${D}${systemd_system_unitdir}
@@ -69,6 +64,6 @@ do_install() {
69 64
70RRECOMMENDS:${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'sctp', 'kernel-module-sctp', '', d)}" 65RRECOMMENDS:${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'sctp', 'kernel-module-sctp', '', d)}"
71 66
72INITSCRIPT_NAME="netperf" 67INITSCRIPT_NAME = "netperf"
73INITSCRIPT_PARAMS="defaults" 68INITSCRIPT_PARAMS = "defaults"
74SYSTEMD_SERVICE:${PN} = "netserver.service" 69SYSTEMD_SERVICE:${PN} = "netserver.service"