From: "Alan Perry" <alanp@snowmoose.com>
To: openembedded-core@lists.openembedded.org
Cc: Alan Perry <alanp@snowmoose.com>
Subject: [PATCH 1/2] iproute2: install tools to mirror install under Debian/Ubuntu
Date: Wed, 2 Dec 2020 19:11:23 +0000 [thread overview]
Message-ID: <20201202191124.15903-1-alanp@snowmoose.com> (raw)
Many scripts exist that expect the iproute2 tools to be found in
the same directories where they are found in Debian or Ubuntu.
For the iproute2 tools included in the iproute2 recipe, move
them to those directories or create links there. Also, add
bash-completion files as is done by Debian and Ubuntu.
Signed-off-by: Alan Perry <alanp@snowmoose.com>
---
.../iproute2/iproute2.inc | 21 +++++++++++++++++--
1 file changed, 19 insertions(+), 2 deletions(-)
diff --git a/meta/recipes-connectivity/iproute2/iproute2.inc b/meta/recipes-connectivity/iproute2/iproute2.inc
index 403d264308..21f52f80bc 100644
--- a/meta/recipes-connectivity/iproute2/iproute2.inc
+++ b/meta/recipes-connectivity/iproute2/iproute2.inc
@@ -41,6 +41,21 @@ do_install () {
install -d ${D}${datadir}
mv ${D}/share/* ${D}${datadir}/ || true
rm ${D}/share -rf || true
+
+ install -d ${D}${base_bindir}
+ ln -s /sbin/ip ${D}${base_bindir}/ip
+ mv ${D}${base_sbindir}/ss ${D}${base_bindir}/ss
+
+ install -d ${D}${bindir}
+ mv ${D}${base_sbindir}/nstat ${D}${bindir}/nstat
+ mv ${D}${base_sbindir}/lnstat ${D}${bindir}/lnstat
+ mv ${D}${base_sbindir}/ctstat ${D}${bindir}/ctstat
+ mv ${D}${base_sbindir}/rtstat ${D}${bindir}/rtstat
+ mv ${D}${base_sbindir}/routef ${D}${bindir}/routef
+ mv ${D}${base_sbindir}/routel ${D}${bindir}/routel
+
+ install -d ${D}${sbindir}
+ mv ${D}${base_sbindir}/genl ${D}${sbindir}/genl
}
# The .so files in iproute2-tc are modules, not traditional libraries
@@ -59,7 +74,8 @@ PACKAGES =+ "\
"
FILES_${PN}-tc = "${base_sbindir}/tc* \
- ${libdir}/tc/*.so"
+ ${libdir}/tc/*.so \
+ ${datadir}/bash-completion/completions/tc"
FILES_${PN}-lnstat = "${base_sbindir}/lnstat \
${base_sbindir}/ctstat \
${base_sbindir}/rtstat"
@@ -69,7 +85,8 @@ FILES_${PN}-rtacct = "${base_sbindir}/rtacct"
FILES_${PN}-nstat = "${base_sbindir}/nstat"
FILES_${PN}-ss = "${base_sbindir}/ss"
FILES_${PN}-tipc = "${base_sbindir}/tipc"
-FILES_${PN}-devlink = "${base_sbindir}/devlink"
+FILES_${PN}-devlink = "${base_sbindir}/devlink \
+ ${datadir}/bash-completion/completions/devlink"
ALTERNATIVE_${PN} = "ip"
ALTERNATIVE_TARGET[ip] = "${base_sbindir}/ip.${BPN}"
--
2.17.1
next reply other threads:[~2020-12-02 19:11 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-02 19:11 Alan Perry [this message]
2020-12-02 19:11 ` [PATCH 2/2] iproute2: rearrange FILES to improve readability Alan Perry
2020-12-03 0:53 ` [OE-core] [PATCH 1/2] iproute2: install tools to mirror install under Debian/Ubuntu Andreas Oberritter
2020-12-03 3:20 ` Alan Perry
2020-12-03 7:29 ` Andre McCurdy
2020-12-03 21:01 ` Alan Perry
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201202191124.15903-1-alanp@snowmoose.com \
--to=alanp@snowmoose.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox