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: Fri, 02 Feb 2018 07:29:33
Message-Id: 1517556453.64ad2fb0d43b1d21e60e4eae54cff1973b1e7eb4.polynomial-c@gentoo
1 commit: 64ad2fb0d43b1d21e60e4eae54cff1973b1e7eb4
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Fri Feb 2 07:27:33 2018 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Fri Feb 2 07:27:33 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=64ad2fb0
7
8 sys-apps/iproute2: Removed old.
9
10 Package-Manager: Portage-2.3.23, Repoman-2.3.6
11
12 sys-apps/iproute2/iproute2-4.14.1-r1.ebuild | 141 ----------------------------
13 1 file changed, 141 deletions(-)
14
15 diff --git a/sys-apps/iproute2/iproute2-4.14.1-r1.ebuild b/sys-apps/iproute2/iproute2-4.14.1-r1.ebuild
16 deleted file mode 100644
17 index d165889df71..00000000000
18 --- a/sys-apps/iproute2/iproute2-4.14.1-r1.ebuild
19 +++ /dev/null
20 @@ -1,141 +0,0 @@
21 -# Copyright 1999-2017 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 +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 virtual/libelf )
47 - iptables? ( >=net-firewall/iptables-1.4.20:= )
48 - berkdb? ( sys-libs/db:= )
49 - atm? ( net-dialup/linux-atm )
50 - selinux? ( sys-libs/libselinux )
51 -"
52 -# We require newer linux-headers for ipset support #549948 and some defines #553876
53 -DEPEND="
54 - ${RDEPEND}
55 - app-arch/xz-utils
56 - iptables? ( virtual/pkgconfig )
57 - >=sys-devel/bison-2.4
58 - sys-devel/flex
59 - >=sys-kernel/linux-headers-3.16
60 - elibc_glibc? ( >=sys-libs/glibc-2.7 )
61 -"
62 -
63 -PATCHES=(
64 - "${FILESDIR}"/${PN}-3.1.0-mtu.patch #291907
65 -)
66 -
67 -src_prepare() {
68 - if ! use ipv6 ; then
69 - PATCHES+=(
70 - "${FILESDIR}"/${PN}-4.11.0-no-ipv6.patch #326849
71 - )
72 - fi
73 -
74 - default
75 -
76 - sed -i \
77 - -e '/^CC :\?=/d' \
78 - -e "/^LIBDIR/s:=.*:=/$(get_libdir):" \
79 - -e "s:-O2:${CFLAGS} ${CPPFLAGS}:" \
80 - -e "/^HOSTCC/s:=.*:= $(tc-getBUILD_CC):" \
81 - -e "/^WFLAGS/s:-Werror::" \
82 - -e "/^DBM_INCLUDE/s:=.*:=${T}:" \
83 - Makefile || die
84 -
85 - # Use /run instead of /var/run.
86 - sed -i \
87 - -e 's:/var/run:/run:g' \
88 - include/namespace.h \
89 - man/man8/ip-netns.8 || die
90 -
91 - # build against system headers
92 - rm -r include/netinet #include/linux include/ip{,6}tables{,_common}.h include/libiptc
93 - sed -i 's:TCPI_OPT_ECN_SEEN:16:' misc/ss.c || die
94 -
95 - use minimal && sed -i -e '/^SUBDIRS=/s:=.*:=lib tc ip:' Makefile
96 -}
97 -
98 -src_configure() {
99 - tc-export AR CC PKG_CONFIG
100 -
101 - # This sure is ugly. Should probably move into toolchain-funcs at some point.
102 - local setns
103 - pushd "${T}" >/dev/null
104 - printf '#include <sched.h>\nint main(){return setns(0, 0);}\n' > test.c
105 - ${CC} ${CFLAGS} ${CPPFLAGS} -D_GNU_SOURCE ${LDFLAGS} test.c >&/dev/null && setns=y || setns=n
106 - echo 'int main(){return 0;}' > test.c
107 - ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} test.c -lresolv >&/dev/null || sed -i '/^LDLIBS/s:-lresolv::' "${S}"/Makefile
108 - popd >/dev/null
109 -
110 - cat <<-EOF > Config
111 - TC_CONFIG_ATM := $(usex atm y n)
112 - TC_CONFIG_XT := $(usex iptables y n)
113 - TC_CONFIG_NO_XT := $(usex iptables n y)
114 - # We've locked in recent enough kernel headers #549948
115 - TC_CONFIG_IPSET := y
116 - HAVE_BERKELEY_DB := $(usex berkdb y n)
117 - HAVE_MNL := $(usex minimal n y)
118 - HAVE_ELF := $(usex minimal n y)
119 - HAVE_SELINUX := $(usex selinux y n)
120 - IP_CONFIG_SETNS := ${setns}
121 - # Use correct iptables dir, #144265 #293709
122 - IPT_LIB_DIR := $(use iptables && ${PKG_CONFIG} xtables --variable=xtlibdir)
123 - EOF
124 -}
125 -
126 -src_install() {
127 - if use minimal ; then
128 - into /
129 - dosbin tc/tc
130 - dobin ip/ip
131 - return 0
132 - fi
133 -
134 - emake \
135 - DESTDIR="${D}" \
136 - LIBDIR="${EPREFIX%/}"/$(get_libdir) \
137 - SBINDIR="${EPREFIX%/}"/sbin \
138 - CONFDIR="${EPREFIX%/}"/etc/iproute2 \
139 - DOCDIR="${EPREFIX%/}"/usr/share/doc/${PF} \
140 - MANDIR="${EPREFIX%/}"/usr/share/man \
141 - ARPDDIR="${EPREFIX%/}"/var/lib/arpd \
142 - install
143 -
144 - dodir /bin
145 - mv "${ED%/}"/{s,}bin/ip || die #330115
146 -
147 - dolib.a lib/libnetlink.a
148 - insinto /usr/include
149 - doins include/libnetlink.h
150 - # This local header pulls in a lot of linux headers it
151 - # doesn't directly need. Delete this header that requires
152 - # linux-headers-3.8 until that goes stable. #467716
153 - sed -i '/linux\/netconf.h/d' "${ED%/}"/usr/include/libnetlink.h || die
154 -
155 - if use berkdb ; then
156 - dodir /var/lib/arpd
157 - # bug 47482, arpd doesn't need to be in /sbin
158 - dodir /usr/bin
159 - mv "${ED%/}"/sbin/arpd "${ED%/}"/usr/bin/ || die
160 - fi
161 -}