blob: 63e7ca9e834f2dc883e0605e2d13ea44329760b7 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001SUMMARY = "TCP / IP networking and traffic control utilities"
2DESCRIPTION = "Iproute2 is a collection of utilities for controlling \
3TCP / IP networking and traffic control in Linux. Of the utilities ip \
4and tc are the most important. ip controls IPv4 and IPv6 \
5configuration and tc stands for traffic control."
6HOMEPAGE = "http://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2"
7SECTION = "base"
8LICENSE = "GPLv2+"
9LIC_FILES_CHKSUM = "file://COPYING;md5=eb723b61539feef013de476e68b5c50a \
10 file://ip/ip.c;beginline=3;endline=8;md5=689d691d0410a4b64d3899f8d6e31817"
11
12DEPENDS = "flex-native bison-native iptables elfutils"
13
Patrick Williamsc0f7c042017-02-23 20:41:17 -060014inherit update-alternatives bash-completion
Patrick Williamsc124f4f2015-09-15 14:41:29 -050015
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050016EXTRA_OEMAKE = "CC='${CC}' KERNEL_INCLUDE=${STAGING_INCDIR} DOCDIR=${docdir}/iproute2 SUBDIRS='lib tc ip bridge misc genl' SBINDIR='${base_sbindir}' LIBDIR='${libdir}'"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050017
Patrick Williamsf1e5d692016-03-30 15:21:19 -050018do_configure_append () {
19 sh configure ${STAGING_INCDIR}
20 # Explicitly disable ATM support
21 sed -i -e '/TC_CONFIG_ATM/d' Config
22}
23
Patrick Williamsc124f4f2015-09-15 14:41:29 -050024do_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
33INSANE_SKIP_${PN}-tc = "dev-so"
34
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050035PACKAGES =+ "${PN}-tc ${PN}-lnstat ${PN}-ifstat ${PN}-genl ${PN}-rtacct ${PN}-nstat ${PN}-ss"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050036FILES_${PN}-tc = "${base_sbindir}/tc* \
37 ${libdir}/tc/*.so"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050038FILES_${PN}-lnstat = "${base_sbindir}/lnstat ${base_sbindir}/ctstat ${base_sbindir}/rtstat"
39FILES_${PN}-ifstat = "${base_sbindir}/ifstat"
40FILES_${PN}-genl = "${base_sbindir}/genl"
41FILES_${PN}-rtacct = "${base_sbindir}/rtacct"
42FILES_${PN}-nstat = "${base_sbindir}/nstat"
43FILES_${PN}-ss = "${base_sbindir}/ss"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050044
45ALTERNATIVE_${PN} = "ip"
46ALTERNATIVE_TARGET[ip] = "${base_sbindir}/ip.${BPN}"
47ALTERNATIVE_LINK_NAME[ip] = "${base_sbindir}/ip"
48ALTERNATIVE_PRIORITY = "100"