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