diff options
Diffstat (limited to 'meta-networking/recipes-support/netperf/netperf_git.bb')
-rw-r--r-- | meta-networking/recipes-support/netperf/netperf_git.bb | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/meta-networking/recipes-support/netperf/netperf_git.bb b/meta-networking/recipes-support/netperf/netperf_git.bb index 6e459eeeb4..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 | ||
20 | SRCREV = "3bc455b23f901dae377ca0a558e1e32aa56b31c4" | 22 | SRCREV = "3bc455b23f901dae377ca0a558e1e32aa56b31c4" |
21 | 23 | ||
22 | S = "${WORKDIR}/git" | ||
23 | 24 | ||
24 | inherit update-rc.d autotools texinfo systemd | 25 | inherit update-rc.d autotools texinfo systemd |
25 | 26 | ||
@@ -35,21 +36,15 @@ PACKAGECONFIG[sctp] = "--enable-sctp,--disable-sctp,lksctp-tools," | |||
35 | PACKAGECONFIG[intervals] = "--enable-intervals,--disable-intervals,," | 36 | PACKAGECONFIG[intervals] = "--enable-intervals,--disable-intervals,," |
36 | PACKAGECONFIG[histogram] = "--enable-histogram,--disable-histogram,," | 37 | PACKAGECONFIG[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. | ||
40 | do_configure:prepend() { | ||
41 | test -d ${S}/m4/m4 && mv -f ${S}/m4/m4 ${S}/m4-files | ||
42 | } | ||
43 | |||
44 | do_install() { | 39 | do_install() { |
45 | sed -e 's#/usr/sbin/#${sbindir}/#g' -i ${WORKDIR}/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} |
47 | if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then | 42 | if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then |
48 | sed -e 's#/usr/sbin/#${sbindir}/#g' ${WORKDIR}/netserver.service > ${D}${systemd_system_unitdir}/netserver.service | 43 | sed -e 's#/usr/sbin/#${sbindir}/#g' ${UNPACKDIR}/netserver.service > ${D}${systemd_system_unitdir}/netserver.service |
49 | fi | 44 | fi |
50 | install -m 4755 src/netperf ${D}${bindir} | 45 | install -m 4755 src/netperf ${D}${bindir} |
51 | install -m 4755 src/netserver ${D}${sbindir} | 46 | install -m 4755 src/netserver ${D}${sbindir} |
52 | install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/netperf | 47 | install -m 0755 ${UNPACKDIR}/init ${D}${sysconfdir}/init.d/netperf |
53 | 48 | ||
54 | # man | 49 | # man |
55 | install -d ${D}${mandir}/man1/ | 50 | install -d ${D}${mandir}/man1/ |
@@ -69,6 +64,6 @@ do_install() { | |||
69 | 64 | ||
70 | RRECOMMENDS:${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'sctp', 'kernel-module-sctp', '', d)}" | 65 | RRECOMMENDS:${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'sctp', 'kernel-module-sctp', '', d)}" |
71 | 66 | ||
72 | INITSCRIPT_NAME="netperf" | 67 | INITSCRIPT_NAME = "netperf" |
73 | INITSCRIPT_PARAMS="defaults" | 68 | INITSCRIPT_PARAMS = "defaults" |
74 | SYSTEMD_SERVICE:${PN} = "netserver.service" | 69 | SYSTEMD_SERVICE:${PN} = "netserver.service" |