1 |
commit: 35a91572eba64014e68f13535d533fcad0933f53 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Apr 28 09:53:18 2021 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Apr 28 09:53:31 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=35a91572 |
7 |
|
8 |
sys-apps/iproute2: Removed old |
9 |
|
10 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
11 |
|
12 |
sys-apps/iproute2/iproute2-5.10.0.ebuild | 167 ------------------------------- |
13 |
1 file changed, 167 deletions(-) |
14 |
|
15 |
diff --git a/sys-apps/iproute2/iproute2-5.10.0.ebuild b/sys-apps/iproute2/iproute2-5.10.0.ebuild |
16 |
deleted file mode 100644 |
17 |
index 8747ab940d6..00000000000 |
18 |
--- a/sys-apps/iproute2/iproute2-5.10.0.ebuild |
19 |
+++ /dev/null |
20 |
@@ -1,167 +0,0 @@ |
21 |
-# Copyright 1999-2021 Gentoo Authors |
22 |
-# Distributed under the terms of the GNU General Public License v2 |
23 |
- |
24 |
-EAPI=7 |
25 |
- |
26 |
-inherit toolchain-funcs flag-o-matic multilib |
27 |
- |
28 |
-if [[ ${PV} == "9999" ]] ; then |
29 |
- EGIT_REPO_URI="https://git.kernel.org/pub/scm/linux/kernel/git/shemminger/iproute2.git" |
30 |
- inherit git-r3 |
31 |
-else |
32 |
- SRC_URI="https://www.kernel.org/pub/linux/utils/net/${PN}/${P}.tar.xz" |
33 |
- KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" |
34 |
-fi |
35 |
- |
36 |
-DESCRIPTION="kernel routing and traffic control utilities" |
37 |
-HOMEPAGE="https://wiki.linuxfoundation.org/networking/iproute2" |
38 |
- |
39 |
-LICENSE="GPL-2" |
40 |
-SLOT="0" |
41 |
-IUSE="atm berkdb caps elf +iptables ipv6 minimal selinux" |
42 |
- |
43 |
-# We could make libmnl optional, but it's tiny, so eh |
44 |
-RDEPEND=" |
45 |
- !net-misc/arpd |
46 |
- dev-libs/libbsd |
47 |
- !minimal? ( net-libs/libmnl ) |
48 |
- caps? ( sys-libs/libcap ) |
49 |
- elf? ( virtual/libelf ) |
50 |
- iptables? ( >=net-firewall/iptables-1.4.20:= ) |
51 |
- berkdb? ( sys-libs/db:= ) |
52 |
- atm? ( net-dialup/linux-atm ) |
53 |
- selinux? ( sys-libs/libselinux ) |
54 |
-" |
55 |
-# We require newer linux-headers for ipset support #549948 and some defines #553876 |
56 |
-DEPEND=" |
57 |
- ${RDEPEND} |
58 |
- >=sys-kernel/linux-headers-3.16 |
59 |
-" |
60 |
-BDEPEND=" |
61 |
- app-arch/xz-utils |
62 |
- >=sys-devel/bison-2.4 |
63 |
- sys-devel/flex |
64 |
- virtual/pkgconfig |
65 |
-" |
66 |
- |
67 |
-PATCHES=( |
68 |
- "${FILESDIR}"/${PN}-3.1.0-mtu.patch #291907 |
69 |
- "${FILESDIR}"/${PN}-4.20.0-configure-nomagic.patch # bug 643722 |
70 |
- "${FILESDIR}"/${PN}-5.1.0-portability.patch |
71 |
- "${FILESDIR}"/${PN}-5.7.0-mix-signal.h-include.patch |
72 |
-) |
73 |
- |
74 |
-src_prepare() { |
75 |
- if ! use ipv6 ; then |
76 |
- PATCHES+=( |
77 |
- "${FILESDIR}"/${PN}-4.20.0-no-ipv6.patch #326849 |
78 |
- ) |
79 |
- fi |
80 |
- |
81 |
- default |
82 |
- |
83 |
- # Fix version if necessary |
84 |
- local versionfile="include/version.h" |
85 |
- if ! grep -Fq "${PV}" ${versionfile} ; then |
86 |
- einfo "Fixing version string" |
87 |
- sed "s@\"[[:digit:]\.]\+\"@\"${PV}\"@" \ |
88 |
- -i ${versionfile} || die |
89 |
- fi |
90 |
- |
91 |
- # echo -n is not POSIX compliant |
92 |
- sed 's@echo -n@printf@' -i configure || die |
93 |
- |
94 |
- sed -i \ |
95 |
- -e '/^CC :\?=/d' \ |
96 |
- -e "/^LIBDIR/s:=.*:=/$(get_libdir):" \ |
97 |
- -e "s|-O2|${CFLAGS} ${CPPFLAGS}|" \ |
98 |
- -e "/^HOSTCC/s:=.*:= $(tc-getBUILD_CC):" \ |
99 |
- -e "/^DBM_INCLUDE/s:=.*:=${T}:" \ |
100 |
- Makefile || die |
101 |
- |
102 |
- # build against system headers |
103 |
- rm -r include/netinet || die #include/linux include/ip{,6}tables{,_common}.h include/libiptc |
104 |
- sed -i 's:TCPI_OPT_ECN_SEEN:16:' misc/ss.c || die |
105 |
- |
106 |
- if use minimal ; then |
107 |
- sed -i -e '/^SUBDIRS=/s:=.*:=lib tc ip:' Makefile || die |
108 |
- fi |
109 |
-} |
110 |
- |
111 |
-src_configure() { |
112 |
- tc-export AR CC PKG_CONFIG |
113 |
- |
114 |
- # This sure is ugly. Should probably move into toolchain-funcs at some point. |
115 |
- local setns |
116 |
- pushd "${T}" >/dev/null |
117 |
- printf '#include <sched.h>\nint main(){return setns(0, 0);}\n' > test.c |
118 |
- ${CC} ${CFLAGS} ${CPPFLAGS} -D_GNU_SOURCE ${LDFLAGS} test.c >&/dev/null && setns=y || setns=n |
119 |
- echo 'int main(){return 0;}' > test.c |
120 |
- ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} test.c -lresolv >&/dev/null || sed -i '/^LDLIBS/s:-lresolv::' "${S}"/Makefile |
121 |
- popd >/dev/null |
122 |
- |
123 |
- # run "configure" script first which will create "config.mk"... |
124 |
- econf |
125 |
- |
126 |
- # ...now switch on/off requested features via USE flags |
127 |
- # this is only useful if the test did not set other things, per bug #643722 |
128 |
- cat <<-EOF >> config.mk |
129 |
- TC_CONFIG_ATM := $(usex atm y n) |
130 |
- TC_CONFIG_XT := $(usex iptables y n) |
131 |
- TC_CONFIG_NO_XT := $(usex iptables n y) |
132 |
- # We've locked in recent enough kernel headers #549948 |
133 |
- TC_CONFIG_IPSET := y |
134 |
- HAVE_BERKELEY_DB := $(usex berkdb y n) |
135 |
- HAVE_CAP := $(usex caps y n) |
136 |
- HAVE_MNL := $(usex minimal n y) |
137 |
- HAVE_ELF := $(usex elf y n) |
138 |
- HAVE_SELINUX := $(usex selinux y n) |
139 |
- IP_CONFIG_SETNS := ${setns} |
140 |
- # Use correct iptables dir, #144265 #293709 |
141 |
- IPT_LIB_DIR := $(use iptables && ${PKG_CONFIG} xtables --variable=xtlibdir) |
142 |
- EOF |
143 |
-} |
144 |
- |
145 |
-src_compile() { |
146 |
- emake V=1 NETNS_RUN_DIR=/run/netns |
147 |
-} |
148 |
- |
149 |
-src_install() { |
150 |
- if use minimal ; then |
151 |
- into / |
152 |
- dosbin tc/tc |
153 |
- dobin ip/ip |
154 |
- return 0 |
155 |
- fi |
156 |
- |
157 |
- emake \ |
158 |
- DESTDIR="${D}" \ |
159 |
- PREFIX="${EPREFIX}/usr" \ |
160 |
- LIBDIR="${EPREFIX}"/$(get_libdir) \ |
161 |
- SBINDIR="${EPREFIX}"/sbin \ |
162 |
- CONFDIR="${EPREFIX}"/etc/iproute2 \ |
163 |
- DOCDIR="${EPREFIX}"/usr/share/doc/${PF} \ |
164 |
- MANDIR="${EPREFIX}"/usr/share/man \ |
165 |
- ARPDDIR="${EPREFIX}"/var/lib/arpd \ |
166 |
- install |
167 |
- |
168 |
- dodir /bin |
169 |
- mv "${ED}"/{s,}bin/ip || die #330115 |
170 |
- |
171 |
- dolib.a lib/libnetlink.a |
172 |
- insinto /usr/include |
173 |
- doins include/libnetlink.h |
174 |
- # This local header pulls in a lot of linux headers it |
175 |
- # doesn't directly need. Delete this header that requires |
176 |
- # linux-headers-3.8 until that goes stable. #467716 |
177 |
- sed -i '/linux\/netconf.h/d' "${ED}"/usr/include/libnetlink.h || die |
178 |
- |
179 |
- if use berkdb ; then |
180 |
- keepdir /var/lib/arpd |
181 |
- # bug 47482, arpd doesn't need to be in /sbin |
182 |
- dodir /usr/bin |
183 |
- mv "${ED}"/sbin/arpd "${ED}"/usr/bin/ || die |
184 |
- elif [[ -d "${ED}"/var/lib/arpd ]]; then |
185 |
- rmdir --ignore-fail-on-non-empty -p "${ED}"/var/lib/arpd || die |
186 |
- fi |
187 |
-} |