diff options
Diffstat (limited to 'meta/recipes-connectivity/iproute2/iproute2_6.8.0.bb')
| -rw-r--r-- | meta/recipes-connectivity/iproute2/iproute2_6.8.0.bb | 107 |
1 files changed, 107 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/iproute2/iproute2_6.8.0.bb b/meta/recipes-connectivity/iproute2/iproute2_6.8.0.bb new file mode 100644 index 0000000000..68f7611943 --- /dev/null +++ b/meta/recipes-connectivity/iproute2/iproute2_6.8.0.bb | |||
| @@ -0,0 +1,107 @@ | |||
| 1 | SUMMARY = "TCP / IP networking and traffic control utilities" | ||
| 2 | DESCRIPTION = "Iproute2 is a collection of utilities for controlling \ | ||
| 3 | TCP / IP networking and traffic control in Linux. Of the utilities ip \ | ||
| 4 | and tc are the most important. ip controls IPv4 and IPv6 \ | ||
| 5 | configuration and tc stands for traffic control." | ||
| 6 | HOMEPAGE = "http://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2" | ||
| 7 | SECTION = "base" | ||
| 8 | LICENSE = "GPL-2.0-or-later" | ||
| 9 | LIC_FILES_CHKSUM = "file://COPYING;md5=eb723b61539feef013de476e68b5c50a \ | ||
| 10 | " | ||
| 11 | |||
| 12 | DEPENDS = "flex-native bison-native iptables libcap" | ||
| 13 | |||
| 14 | SRC_URI = "${KERNELORG_MIRROR}/linux/utils/net/${BPN}/${BP}.tar.xz" | ||
| 15 | |||
| 16 | SRC_URI[sha256sum] = "03a6cca3d71a908d1f15f7b495be2b8fe851f941458dc4664900d7f45fcf68ce" | ||
| 17 | |||
| 18 | inherit update-alternatives bash-completion pkgconfig | ||
| 19 | |||
| 20 | PACKAGECONFIG ??= "tipc elf devlink" | ||
| 21 | PACKAGECONFIG[tipc] = ",,libmnl," | ||
| 22 | PACKAGECONFIG[elf] = ",,elfutils," | ||
| 23 | PACKAGECONFIG[devlink] = ",,libmnl," | ||
| 24 | PACKAGECONFIG[rdma] = ",,libmnl," | ||
| 25 | PACKAGECONFIG[selinux] = ",,libselinux" | ||
| 26 | |||
| 27 | IPROUTE2_MAKE_SUBDIRS = "lib tc ip bridge misc genl ${@bb.utils.filter('PACKAGECONFIG', 'devlink tipc rdma', d)}" | ||
| 28 | |||
| 29 | # CFLAGS are computed in Makefile and reference CCOPTS | ||
| 30 | # | ||
| 31 | EXTRA_OEMAKE = "\ | ||
| 32 | CC='${CC}' \ | ||
| 33 | KERNEL_INCLUDE=${STAGING_INCDIR} \ | ||
| 34 | DOCDIR=${docdir}/iproute2 \ | ||
| 35 | SUBDIRS='${IPROUTE2_MAKE_SUBDIRS}' \ | ||
| 36 | SBINDIR='${base_sbindir}' \ | ||
| 37 | CONF_USR_DIR='${libdir}/iproute2' \ | ||
| 38 | LIBDIR='${libdir}' \ | ||
| 39 | CCOPTS='${CFLAGS}' \ | ||
| 40 | " | ||
| 41 | |||
| 42 | do_configure:append () { | ||
| 43 | sh configure ${STAGING_INCDIR} | ||
| 44 | # Explicitly disable ATM support | ||
| 45 | sed -i -e '/TC_CONFIG_ATM/d' config.mk | ||
| 46 | } | ||
| 47 | |||
| 48 | do_install () { | ||
| 49 | oe_runmake DESTDIR=${D} install | ||
| 50 | mv ${D}${base_sbindir}/ip ${D}${base_sbindir}/ip.iproute2 | ||
| 51 | install -d ${D}${datadir} | ||
| 52 | mv ${D}/share/* ${D}${datadir}/ || true | ||
| 53 | rm ${D}/share -rf || true | ||
| 54 | |||
| 55 | # Remove support fot ipt and xt in tc. So tc library directory is not needed. | ||
| 56 | rm ${D}${libdir}/tc -rf | ||
| 57 | } | ||
| 58 | |||
| 59 | # The .so files in iproute2-tc are modules, not traditional libraries | ||
| 60 | INSANE_SKIP:${PN}-tc = "dev-so" | ||
| 61 | |||
| 62 | IPROUTE2_PACKAGES =+ "\ | ||
| 63 | ${PN}-bridge \ | ||
| 64 | ${PN}-devlink \ | ||
| 65 | ${PN}-genl \ | ||
| 66 | ${PN}-ifstat \ | ||
| 67 | ${PN}-ip \ | ||
| 68 | ${PN}-lnstat \ | ||
| 69 | ${PN}-nstat \ | ||
| 70 | ${PN}-routel \ | ||
| 71 | ${PN}-rtacct \ | ||
| 72 | ${PN}-ss \ | ||
| 73 | ${PN}-tc \ | ||
| 74 | ${PN}-tipc \ | ||
| 75 | ${PN}-rdma \ | ||
| 76 | " | ||
| 77 | |||
| 78 | PACKAGE_BEFORE_PN = "${IPROUTE2_PACKAGES}" | ||
| 79 | RDEPENDS:${PN} += "${PN}-ip" | ||
| 80 | |||
| 81 | FILES:${PN}-tc = "${base_sbindir}/tc* \ | ||
| 82 | ${libdir}/tc/*.so" | ||
| 83 | FILES:${PN}-lnstat = "${base_sbindir}/lnstat \ | ||
| 84 | ${base_sbindir}/ctstat \ | ||
| 85 | ${base_sbindir}/rtstat" | ||
| 86 | FILES:${PN}-ifstat = "${base_sbindir}/ifstat" | ||
| 87 | FILES:${PN}-ip = "${base_sbindir}/ip.* ${libdir}/iproute2" | ||
| 88 | FILES:${PN}-genl = "${base_sbindir}/genl" | ||
| 89 | FILES:${PN}-rtacct = "${base_sbindir}/rtacct" | ||
| 90 | FILES:${PN}-nstat = "${base_sbindir}/nstat" | ||
| 91 | FILES:${PN}-ss = "${base_sbindir}/ss" | ||
| 92 | FILES:${PN}-tipc = "${base_sbindir}/tipc" | ||
| 93 | FILES:${PN}-devlink = "${base_sbindir}/devlink" | ||
| 94 | FILES:${PN}-rdma = "${base_sbindir}/rdma" | ||
| 95 | FILES:${PN}-routel = "${base_sbindir}/routel" | ||
| 96 | FILES:${PN}-bridge = "${base_sbindir}/bridge" | ||
| 97 | |||
| 98 | RDEPENDS:${PN}-routel = "python3-core" | ||
| 99 | |||
| 100 | ALTERNATIVE:${PN}-ip = "ip" | ||
| 101 | ALTERNATIVE_TARGET[ip] = "${base_sbindir}/ip.${BPN}" | ||
| 102 | ALTERNATIVE_LINK_NAME[ip] = "${base_sbindir}/ip" | ||
| 103 | ALTERNATIVE_PRIORITY = "100" | ||
| 104 | |||
| 105 | ALTERNATIVE:${PN}-tc = "tc" | ||
| 106 | ALTERNATIVE_LINK_NAME[tc] = "${base_sbindir}/tc" | ||
| 107 | ALTERNATIVE_PRIORITY_${PN}-tc = "100" | ||
