From 3d8487cc28dd3411a8aa684e759868266f4cbf12 Mon Sep 17 00:00:00 2001 From: Jakub Jirutka Date: Wed, 14 Jul 2021 16:16:50 +0200 Subject: [PATCH] iproute2: move usr/bin/tc to -tc-ipt subpackage /usr/bin/tc is used to configure Traffic Control, it should be part of existing iproute2-tc-ipt subpackage. The primary motivation to move /usr/bin/tc into subpackage is to remove dependency on iptables package in iproute2, and transitively from base-system. Users who use nftables instead of legacy iptables would not have to blacklist iptables package anymore. --- srcpkgs/iproute2/template | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/srcpkgs/iproute2/template b/srcpkgs/iproute2/template index 8f517150839a..96225d65990c 100644 --- a/srcpkgs/iproute2/template +++ b/srcpkgs/iproute2/template @@ -1,7 +1,7 @@ # Template file for 'iproute2' pkgname=iproute2 version=5.12.0 -revision=1 +revision=2 build_style=configure make_install_args="SBINDIR=/usr/bin" hostmakedepends="pkg-config perl flex" @@ -35,6 +35,7 @@ post_install() { iproute2-tc-ipt_package() { short_desc+=" - tc(8) IPtables support" pkg_install() { + vmove usr/bin/tc # m_ipt.so is symlinked to m_xt.so vmove usr/lib/tc/m_ipt.so vmove usr/lib/tc/m_xt.so