From: voidlinux-github@inbox.vuxu.org
To: ml@inbox.vuxu.org
Subject: [PR PATCH] Allow busybox to provide ip/tc
Date: Sun, 27 Oct 2019 21:13:46 +0100 [thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-15836@inbox.vuxu.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 325 bytes --]
There is a new pull request by CameronNemo against master on the void-packages repository
https://github.com/CameronNemo/void-packages bb-ip
https://github.com/void-linux/void-packages/pull/15836
Allow busybox to provide ip/tc
None
A patch file from https://github.com/void-linux/void-packages/pull/15836.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-bb-ip-15836.patch --]
[-- Type: text/x-diff, Size: 2462 bytes --]
From ecfd039607384ffbd36152babf54fb73bbc56861 Mon Sep 17 00:00:00 2001
From: Cameron Nemo <cnemo@tutanota.com>
Date: Sun, 27 Oct 2019 13:12:51 -0700
Subject: [PATCH 1/2] iproute2: switch to alternatives for ip/tc
---
srcpkgs/iproute2/template | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/srcpkgs/iproute2/template b/srcpkgs/iproute2/template
index 1e918d98abf..4b30861ddc6 100644
--- a/srcpkgs/iproute2/template
+++ b/srcpkgs/iproute2/template
@@ -1,7 +1,7 @@
# Template file for 'iproute2'
pkgname=iproute2
version=5.3.0
-revision=1
+revision=2
build_style=configure
make_install_args="SBINDIR=/usr/bin"
hostmakedepends="pkg-config perl flex"
@@ -13,6 +13,10 @@ homepage="https://wiki.linuxfoundation.org/networking/iproute2"
distfiles="${KERNEL_SITE}/utils/net/${pkgname}/${pkgname}-${version}.tar.xz"
checksum=cb1c1e45993a3bd2438543fd4332d70f1726a6e6ff97dc613a8258c993117b3f
+alternatives="
+ ip:ip:/usr/bin/iproute2-ip
+ tc:tc:/usr/bin/iproute2-tc"
+
conf_files="
/etc/iproute2/ematch_map
/etc/iproute2/rt_dsfield
@@ -26,6 +30,9 @@ do_check() {
}
post_install() {
+ for bin in ip tc; do
+ mv "${DESTDIR}/usr/bin/${bin}" "${DESTDIR}/usr/bin/iproute2-${bin}"
+ done
rm -r ${DESTDIR}/usr/share/doc
rm -r ${DESTDIR}/usr/share/man/man3
}
From a7889d77d9c51ca45cf49792f580e85156fc2a89 Mon Sep 17 00:00:00 2001
From: Cameron Nemo <cnemo@tutanota.com>
Date: Sun, 27 Oct 2019 12:39:47 -0700
Subject: [PATCH 2/2] busybox: add ip and tc alternatives
---
srcpkgs/busybox/template | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/busybox/template b/srcpkgs/busybox/template
index bc80b3c24d2..ced5c7243b3 100644
--- a/srcpkgs/busybox/template
+++ b/srcpkgs/busybox/template
@@ -1,11 +1,11 @@
# Template file for 'busybox'
pkgname=busybox
version=1.30.1
-revision=4
+revision=5
hostmakedepends="perl"
checkdepends="zip"
short_desc="Swiss Army Knife of Embedded Linux"
-maintainer="Orphaned <orphan@voidlinux.org>"
+maintainer="Cameron Nemo <cnemo@tutanota.com>"
license="GPL-2.0-only"
homepage="http://www.busybox.net"
distfiles="${homepage}/downloads/busybox-${version}.tar.bz2"
@@ -17,7 +17,9 @@ _alternatives_core="
hostname:hostname:/usr/bin/busybox
sh:sh:/usr/bin/busybox
vi:vi:/usr/bin/busybox
- logger:logger:/usr/bin/busybox"
+ logger:logger:/usr/bin/busybox
+ ip:ip:/usr/bin/busybox
+ tc:tc:/usr/bin/busybox"
_alternatives="
${_alternatives_core}
next reply other threads:[~2019-10-27 20:13 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-27 20:13 voidlinux-github [this message]
2021-03-17 20:16 ` heliocat
2021-03-17 20:17 ` heliocat
2021-03-18 3:58 ` CameronNemo
2021-03-18 3:59 ` CameronNemo
2021-03-18 6:52 ` heliocat
2021-03-19 7:28 ` heliocat
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=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-15836@inbox.vuxu.org \
--to=voidlinux-github@inbox.vuxu.org \
--cc=ml@inbox.vuxu.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;
as well as URLs for NNTP newsgroup(s).