Skip to contentSkip to conversation

iproute2: split out package for tc

PATCH New Paul Eggleton 1 participant 1 message Feb 6, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iproute2: split out package for tc

tc (the IP traffic control utility) isn't often used and makes up a reasonably large part of the iproute2 package as well as having a runtime dependency on iptables, so split it out into its own package.

---
 meta/recipes-connectivity/iproute2/iproute2.inc | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
meta/recipes-connectivity/iproute2/iproute2.inc +6 -3
index 3db21db..568aa5f 100644
@@ -23,10 +23,13 @@ do_install () {
     rm ${D}/share -rf || true
 }
 
-# There are only .so files in iproute2
-INSANE_SKIP_${PN} = "dev-so"
+# The .so files in iproute2-tc are modules, not traditional libraries
+INSANE_SKIP_${PN}-tc = "dev-so"
+
+PACKAGES =+ "${PN}-tc"
+FILES_${PN}-tc = "${base_sbindir}/tc* \
+                  ${libdir}/tc/*.so"
 
-FILES_${PN} += "${libdir}/tc"
 FILES_${PN}-dbg += "${libdir}/tc/.debug"
 
 ALTERNATIVE_${PN} = "ip"
Signature · 1 line
1.8.5.3