Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [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" |
| 13 | |
| 14 | inherit update-alternatives |
| 15 | |
| 16 | EXTRA_OEMAKE = "CC='${CC}' KERNEL_INCLUDE=${STAGING_INCDIR} DOCDIR=${docdir}/iproute2 SUBDIRS='lib tc ip' SBINDIR='${base_sbindir}' LIBDIR='${libdir}'" |
| 17 | |
Patrick Williams | f1e5d69 | 2016-03-30 15:21:19 -0500 | [diff] [blame] | 18 | do_configure_append () { |
| 19 | sh configure ${STAGING_INCDIR} |
| 20 | # Explicitly disable ATM support |
| 21 | sed -i -e '/TC_CONFIG_ATM/d' Config |
| 22 | } |
| 23 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 24 | do_install () { |
| 25 | oe_runmake DESTDIR=${D} install |
| 26 | mv ${D}${base_sbindir}/ip ${D}${base_sbindir}/ip.iproute2 |
| 27 | install -d ${D}${datadir} |
| 28 | mv ${D}/share/* ${D}${datadir}/ || true |
| 29 | rm ${D}/share -rf || true |
| 30 | } |
| 31 | |
| 32 | # The .so files in iproute2-tc are modules, not traditional libraries |
| 33 | INSANE_SKIP_${PN}-tc = "dev-so" |
| 34 | |
| 35 | PACKAGES =+ "${PN}-tc" |
| 36 | FILES_${PN}-tc = "${base_sbindir}/tc* \ |
| 37 | ${libdir}/tc/*.so" |
| 38 | |
| 39 | FILES_${PN}-dbg += "${libdir}/tc/.debug" |
| 40 | |
| 41 | ALTERNATIVE_${PN} = "ip" |
| 42 | ALTERNATIVE_TARGET[ip] = "${base_sbindir}/ip.${BPN}" |
| 43 | ALTERNATIVE_LINK_NAME[ip] = "${base_sbindir}/ip" |
| 44 | ALTERNATIVE_PRIORITY = "100" |