diff options
Diffstat (limited to 'meta/recipes-connectivity/iproute2/iproute2.inc')
| -rw-r--r-- | meta/recipes-connectivity/iproute2/iproute2.inc | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/iproute2/iproute2.inc b/meta/recipes-connectivity/iproute2/iproute2.inc new file mode 100644 index 0000000000..568aa5f5dd --- /dev/null +++ b/meta/recipes-connectivity/iproute2/iproute2.inc | |||
| @@ -0,0 +1,40 @@ | |||
| 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" | ||
| 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 | |||
| 18 | do_install () { | ||
| 19 | oe_runmake DESTDIR=${D} install | ||
| 20 | mv ${D}${base_sbindir}/ip ${D}${base_sbindir}/ip.iproute2 | ||
| 21 | install -d ${D}${datadir} | ||
| 22 | mv ${D}/share/* ${D}${datadir}/ || true | ||
| 23 | rm ${D}/share -rf || true | ||
| 24 | } | ||
| 25 | |||
| 26 | # The .so files in iproute2-tc are modules, not traditional libraries | ||
| 27 | INSANE_SKIP_${PN}-tc = "dev-so" | ||
| 28 | |||
| 29 | PACKAGES =+ "${PN}-tc" | ||
| 30 | FILES_${PN}-tc = "${base_sbindir}/tc* \ | ||
| 31 | ${libdir}/tc/*.so" | ||
| 32 | |||
| 33 | FILES_${PN}-dbg += "${libdir}/tc/.debug" | ||
| 34 | |||
| 35 | ALTERNATIVE_${PN} = "ip" | ||
| 36 | ALTERNATIVE_TARGET[ip] = "${base_sbindir}/ip.${BPN}" | ||
| 37 | ALTERNATIVE_LINK_NAME[ip] = "${base_sbindir}/ip" | ||
| 38 | ALTERNATIVE_PRIORITY = "100" | ||
| 39 | |||
| 40 | PARALLEL_MAKE = "" | ||
