summaryrefslogtreecommitdiff
path: root/packages/iproute2/iproute2.inc
diff options
context:
space:
mode:
authorPaul Sokolovsky <pmiscml@gmail.com>2007-06-18 14:41:31 +0000
committerPaul Sokolovsky <pmiscml@gmail.com>2007-06-18 14:41:31 +0000
commitc7c52566c852b6d0dd74029262668d942dae0ea2 (patch)
tree34fa4fc76adab66ef1a94c96b8131b2a44683386 /packages/iproute2/iproute2.inc
parent35f3e61b9346626d87f991fdb1bd7ed4b3d9ee42 (diff)
parenta724cdbbdb56f7597daf0b8f72694398cbbb2433 (diff)
merge of '0ff974ee10065a85ea694230ce4da699e5a953b9'
and '9a2e67d25c144816aef508c89a610ad38406853d'
Diffstat (limited to 'packages/iproute2/iproute2.inc')
-rw-r--r--packages/iproute2/iproute2.inc10
1 files changed, 9 insertions, 1 deletions
diff --git a/packages/iproute2/iproute2.inc b/packages/iproute2/iproute2.inc
index e14bfdeefe..c417280cd6 100644
--- a/packages/iproute2/iproute2.inc
+++ b/packages/iproute2/iproute2.inc
@@ -12,15 +12,23 @@ SRC_URI = "http://developer.osdl.org/dev/iproute2/download/${P}-${DATE}.tar.gz"
S = "${WORKDIR}/${DIRNAME}-${PV}-${DATE}"
+inherit update-alternatives
+
EXTRA_OEMAKE = "CC='${CC}' \
KERNEL_INCLUDE=${STAGING_KERNEL_DIR}/include \
DOCDIR=${docdir}/iproute2 \
SUBDIRS='lib tc ip' \
- SBINDIR=/sbin"
+ SBINDIR=${base_sbindir}"
do_install () {
oe_runmake DESTDIR=${D} install
+ mv ${D}${base_sbindir}/ip ${D}${base_sbindir}/ip.iproute2
}
FILES_${PN} += "/usr/lib/tc/*"
FILES_${PN}-dbg += "/usr/lib/tc/.debug"
+
+ALTERNATIVE_NAME = "ip"
+ALTERNATIVE_PATH = "${base_sbindir}/ip.iproute2"
+ALTERNATIVE_LINK = "${base_bindir}/ip"
+ALTERNATIVE_PRIORITY = "100"