rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 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 = "GPLv2+"
|
| 9 | LIC_FILES_CHKSUM = "file://COPYING;md5=eb723b61539feef013de476e68b5c50a \
|
| 10 | file://ip/ip.c;beginline=3;endline=8;md5=689d691d0410a4b64d3899f8d6e31817"
|
| 11 |
|
| 12 | DEPENDS = "flex-native bison-native iptables elfutils libcap"
|
| 13 |
|
| 14 | inherit update-alternatives bash-completion pkgconfig
|
| 15 |
|
| 16 | CLEANBROKEN = "1"
|
| 17 |
|
| 18 | PACKAGECONFIG ??= "tipc"
|
| 19 | PACKAGECONFIG[tipc] = ",,libmnl,"
|
| 20 |
|
| 21 | EXTRA_OEMAKE = "CC='${CC}' KERNEL_INCLUDE=${STAGING_INCDIR} DOCDIR=${docdir}/iproute2 SUBDIRS='lib tc ip bridge misc genl \
|
| 22 | ${@bb.utils.contains('PACKAGECONFIG', 'tipc', 'tipc', '', d)}' SBINDIR='${base_sbindir}' LIBDIR='${libdir}'"
|
| 23 |
|
| 24 | do_configure_append () {
|
| 25 | sh configure ${STAGING_INCDIR}
|
| 26 | # Explicitly disable ATM support
|
| 27 | sed -i -e '/TC_CONFIG_ATM/d' config.mk
|
| 28 | }
|
| 29 |
|
| 30 | do_install () {
|
| 31 | oe_runmake DESTDIR=${D} install
|
| 32 | mv ${D}${base_sbindir}/ip ${D}${base_sbindir}/ip.iproute2
|
| 33 | install -d ${D}${datadir}
|
| 34 | mv ${D}/share/* ${D}${datadir}/ || true
|
| 35 | rm ${D}/share -rf || true
|
| 36 | }
|
| 37 |
|
| 38 | # The .so files in iproute2-tc are modules, not traditional libraries
|
| 39 | INSANE_SKIP_${PN}-tc = "dev-so"
|
| 40 |
|
| 41 | PACKAGES =+ "${PN}-tc \
|
| 42 | ${PN}-lnstat \
|
| 43 | ${PN}-ifstat \
|
| 44 | ${PN}-genl \
|
| 45 | ${PN}-rtacct \
|
| 46 | ${PN}-nstat \
|
| 47 | ${PN}-ss \
|
| 48 | ${@bb.utils.contains('PACKAGECONFIG', 'tipc', '${PN}-tipc', '', d)}"
|
| 49 | FILES_${PN}-tc = "${base_sbindir}/tc* \
|
| 50 | ${libdir}/tc/*.so"
|
| 51 | FILES_${PN}-lnstat = "${base_sbindir}/lnstat \
|
| 52 | ${base_sbindir}/ctstat \
|
| 53 | ${base_sbindir}/rtstat"
|
| 54 | FILES_${PN}-ifstat = "${base_sbindir}/ifstat"
|
| 55 | FILES_${PN}-genl = "${base_sbindir}/genl"
|
| 56 | FILES_${PN}-rtacct = "${base_sbindir}/rtacct"
|
| 57 | FILES_${PN}-nstat = "${base_sbindir}/nstat"
|
| 58 | FILES_${PN}-ss = "${base_sbindir}/ss"
|
| 59 | FILES_${PN}-tipc = "${base_sbindir}/tipc"
|
| 60 |
|
| 61 | ALTERNATIVE_${PN} = "ip"
|
| 62 | ALTERNATIVE_TARGET[ip] = "${base_sbindir}/ip.${BPN}"
|
| 63 | ALTERNATIVE_LINK_NAME[ip] = "${base_sbindir}/ip"
|
| 64 | ALTERNATIVE_PRIORITY = "100"
|
| 65 |
|
| 66 | ALTERNATIVE_${PN}-tc = "tc"
|
| 67 | ALTERNATIVE_LINK_NAME[tc] = "${base_sbindir}/tc"
|
| 68 | ALTERNATIVE_PRIORITY_${PN}-tc = "100" |