10 |
10 |
inherit git-r3
|
11 |
11 |
else
|
12 |
12 |
SRC_URI="https://www.kernel.org/pub/linux/utils/net/${PN}/${P}.tar.xz"
|
13 |
|
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86"
|
|
13 |
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
|
14 |
14 |
fi
|
15 |
15 |
|
16 |
16 |
DESCRIPTION="kernel routing and traffic control utilities"
|
... | ... | |
18 |
18 |
|
19 |
19 |
LICENSE="GPL-2"
|
20 |
20 |
SLOT="0"
|
21 |
|
IUSE="atm berkdb bpf caps elf +iptables libbsd minimal nfs selinux split-usr"
|
|
21 |
IUSE="atm berkdb bpf caps elf +iptables minimal nfs selinux split-usr"
|
22 |
22 |
# Needs root
|
23 |
23 |
RESTRICT="test"
|
24 |
24 |
|
... | ... | |
32 |
32 |
caps? ( sys-libs/libcap )
|
33 |
33 |
elf? ( virtual/libelf:= )
|
34 |
34 |
iptables? ( >=net-firewall/iptables-1.4.20:= )
|
35 |
|
libbsd? ( dev-libs/libbsd )
|
36 |
35 |
nfs? ( net-libs/libtirpc:= )
|
37 |
36 |
selinux? ( sys-libs/libselinux )
|
38 |
37 |
"
|
... | ... | |
50 |
49 |
|
51 |
50 |
PATCHES=(
|
52 |
51 |
"${FILESDIR}"/${PN}-3.1.0-mtu.patch # bug #291907
|
53 |
|
"${FILESDIR}"/${PN}-5.12.0-configure-nomagic.patch # bug #643722
|
|
52 |
"${FILESDIR}"/${PN}-5.12.0-configure-nomagic-nolibbsd.patch # bug #643722 & #911727
|
54 |
53 |
"${FILESDIR}"/${PN}-5.7.0-mix-signal.h-include.patch
|
55 |
54 |
"${FILESDIR}"/${PN}-6.4.0-add-missing-limits.h-include.patch
|
|
55 |
"${FILESDIR}"/${PN}-6.4.0-disable-libbsd-fallback.patch # bug #911727
|
56 |
56 |
)
|
57 |
57 |
|
58 |
58 |
src_prepare() {
|
... | ... | |
138 |
138 |
sed -i -e '/HAVE_SELINUX/d' config.mk || die
|
139 |
139 |
fi
|
140 |
140 |
|
141 |
|
if ! use libbsd ; then
|
142 |
|
sed -i -e '/HAVE_LIBBSD/d' config.mk || die
|
143 |
|
fi
|
144 |
|
|
145 |
141 |
# ...Now switch on/off requested features via USE flags
|
146 |
142 |
# this is only useful if the test did not set other things, per bug #643722
|
147 |
143 |
# Keep in sync with ifs above, or refactor to be unified.
|
... | ... | |
160 |
156 |
IP_CONFIG_SETNS := ${setns}
|
161 |
157 |
# Use correct iptables dir, bug #144265, bug #293709
|
162 |
158 |
IPT_LIB_DIR := $(use iptables && ${PKG_CONFIG} xtables --variable=xtlibdir)
|
163 |
|
HAVE_LIBBSD := $(usex libbsd y n)
|
164 |
159 |
EOF
|
165 |
160 |
}
|
166 |
161 |
|