Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/iproute2/
Date: Mon, 11 Jun 2018 08:37:50
Message-Id: 1528706260.13a050713e202c0bc8fa7bbf5a80cca070ad4af8.polynomial-c@gentoo
1 commit: 13a050713e202c0bc8fa7bbf5a80cca070ad4af8
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jun 11 08:37:23 2018 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Mon Jun 11 08:37:40 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=13a05071
7
8 sys-apps/iproute2: Removed old.
9
10 Package-Manager: Portage-2.3.40, Repoman-2.3.9
11
12 sys-apps/iproute2/iproute2-4.16.0.ebuild | 151 -------------------------------
13 1 file changed, 151 deletions(-)
14
15 diff --git a/sys-apps/iproute2/iproute2-4.16.0.ebuild b/sys-apps/iproute2/iproute2-4.16.0.ebuild
16 deleted file mode 100644
17 index 7d284f1e544..00000000000
18 --- a/sys-apps/iproute2/iproute2-4.16.0.ebuild
19 +++ /dev/null
20 @@ -1,151 +0,0 @@
21 -# Copyright 1999-2018 Gentoo Foundation
22 -# Distributed under the terms of the GNU General Public License v2
23 -
24 -EAPI=6
25 -
26 -inherit toolchain-funcs flag-o-matic multilib
27 -
28 -if [[ ${PV} == "9999" ]] ; then
29 - EGIT_REPO_URI="git://git.kernel.org/pub/scm/linux/kernel/git/shemminger/iproute2.git"
30 - inherit git-r3
31 -else
32 - SRC_URI="mirror://kernel/linux/utils/net/${PN}/${P}.tar.xz"
33 - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~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 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 - !minimal? ( net-libs/libmnl )
47 - elf? ( 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}"/${PN}-4.16.0-configure-nomagic.patch # bug 643722
67 -)
68 -
69 -src_prepare() {
70 - if ! use ipv6 ; then
71 - PATCHES+=(
72 - "${FILESDIR}"/${PN}-4.11.0-no-ipv6.patch #326849
73 - )
74 - fi
75 -
76 - default
77 -
78 - sed -i \
79 - -e '/^CC :\?=/d' \
80 - -e "/^LIBDIR/s:=.*:=/$(get_libdir):" \
81 - -e "s:-O2:${CFLAGS} ${CPPFLAGS}:" \
82 - -e "/^HOSTCC/s:=.*:= $(tc-getBUILD_CC):" \
83 - -e "/^DBM_INCLUDE/s:=.*:=${T}:" \
84 - Makefile || die
85 -
86 - # Use /run instead of /var/run.
87 - sed -i \
88 - -e 's:/var/run:/run:g' \
89 - include/namespace.h \
90 - man/man8/ip-netns.8 || die
91 -
92 - # build against system headers
93 - rm -r include/netinet #include/linux include/ip{,6}tables{,_common}.h include/libiptc
94 - sed -i 's:TCPI_OPT_ECN_SEEN:16:' misc/ss.c || die
95 -
96 - use minimal && sed -i -e '/^SUBDIRS=/s:=.*:=lib tc ip:' Makefile
97 -}
98 -
99 -src_configure() {
100 - tc-export AR CC PKG_CONFIG
101 -
102 - # This sure is ugly. Should probably move into toolchain-funcs at some point.
103 - local setns
104 - pushd "${T}" >/dev/null
105 - printf '#include <sched.h>\nint main(){return setns(0, 0);}\n' > test.c
106 - ${CC} ${CFLAGS} ${CPPFLAGS} -D_GNU_SOURCE ${LDFLAGS} test.c >&/dev/null && setns=y || setns=n
107 - echo 'int main(){return 0;}' > test.c
108 - ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} test.c -lresolv >&/dev/null || sed -i '/^LDLIBS/s:-lresolv::' "${S}"/Makefile
109 - popd >/dev/null
110 -
111 - # run "configure" script first which will create "config.mk"...
112 - econf
113 -
114 - # ...now switch on/off requested features via USE flags
115 - # this is only useful if the test did not set other things, per bug #643722
116 - cat <<-EOF >> config.mk
117 - TC_CONFIG_ATM := $(usex atm y n)
118 - TC_CONFIG_XT := $(usex iptables y n)
119 - TC_CONFIG_NO_XT := $(usex iptables n y)
120 - # We've locked in recent enough kernel headers #549948
121 - TC_CONFIG_IPSET := y
122 - HAVE_BERKELEY_DB := $(usex berkdb y n)
123 - HAVE_MNL := $(usex minimal n y)
124 - HAVE_ELF := $(usex elf y n)
125 - HAVE_SELINUX := $(usex selinux y n)
126 - IP_CONFIG_SETNS := ${setns}
127 - # Use correct iptables dir, #144265 #293709
128 - IPT_LIB_DIR := $(use iptables && ${PKG_CONFIG} xtables --variable=xtlibdir)
129 - EOF
130 -}
131 -
132 -src_compile() {
133 - emake V=1
134 -}
135 -
136 -src_install() {
137 - if use minimal ; then
138 - into /
139 - dosbin tc/tc
140 - dobin ip/ip
141 - return 0
142 - fi
143 -
144 - emake \
145 - DESTDIR="${D}" \
146 - LIBDIR="${EPREFIX%/}"/$(get_libdir) \
147 - SBINDIR="${EPREFIX%/}"/sbin \
148 - CONFDIR="${EPREFIX%/}"/etc/iproute2 \
149 - DOCDIR="${EPREFIX%/}"/usr/share/doc/${PF} \
150 - MANDIR="${EPREFIX%/}"/usr/share/man \
151 - ARPDDIR="${EPREFIX%/}"/var/lib/arpd \
152 - install
153 -
154 - dodir /bin
155 - mv "${ED%/}"/{s,}bin/ip || die #330115
156 -
157 - dolib.a lib/libnetlink.a
158 - insinto /usr/include
159 - doins include/libnetlink.h
160 - # This local header pulls in a lot of linux headers it
161 - # doesn't directly need. Delete this header that requires
162 - # linux-headers-3.8 until that goes stable. #467716
163 - sed -i '/linux\/netconf.h/d' "${ED%/}"/usr/include/libnetlink.h || die
164 -
165 - if use berkdb ; then
166 - dodir /var/lib/arpd
167 - # bug 47482, arpd doesn't need to be in /sbin
168 - dodir /usr/bin
169 - mv "${ED%/}"/sbin/arpd "${ED%/}"/usr/bin/ || die
170 - fi
171 -}