Gentoo Archives: gentoo-commits

From: Mike Frysinger <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: profiles/arch/ia64/, profiles/arch/sparc/, profiles/arch/hppa/, ...
Date: Wed, 23 Dec 2015 00:15:11
Message-Id: 1450829699.70942e923097a6370e6bf7f9d88f2b7325b26762.vapier@gentoo
1 commit: 70942e923097a6370e6bf7f9d88f2b7325b26762
2 Author: Mike Frysinger <vapier <AT> gentoo <DOT> org>
3 AuthorDate: Wed Dec 23 00:14:43 2015 +0000
4 Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
5 CommitDate: Wed Dec 23 00:14:59 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=70942e92
7
8 net-firewall/iptables: version bump to 1.6.0 #568784
9
10 net-firewall/iptables/Manifest | 1 +
11 net-firewall/iptables/iptables-1.6.0.ebuild | 113 ++++++++++++++++++++++++++++
12 net-firewall/iptables/metadata.xml | 1 +
13 profiles/arch/alpha/package.use.mask | 4 +
14 profiles/arch/hppa/package.use.mask | 4 +
15 profiles/arch/ia64/package.use.mask | 4 +
16 profiles/arch/powerpc/package.use.mask | 4 +
17 profiles/arch/sparc/package.use.mask | 4 +
18 8 files changed, 135 insertions(+)
19
20 diff --git a/net-firewall/iptables/Manifest b/net-firewall/iptables/Manifest
21 index 8e3fa0b..d954675 100644
22 --- a/net-firewall/iptables/Manifest
23 +++ b/net-firewall/iptables/Manifest
24 @@ -1,2 +1,3 @@
25 DIST iptables-1.4.17.tar.bz2 541137 SHA256 51e7a769469383b6ad308a6a19cdd2bd813cf4593e21a156a543a1cd70554925 SHA512 022f89cbf56408842bdeb1adbe05076addaad007599fdb662f32a1c134d743dade28c26842acc7545d2474903164be5fe3ec7fd1e276cd2c37bd3b33b8a30de1 WHIRLPOOL f2cb85d5f4080fce2c6673a58737ace3d55130f74c66207bc515d0c7b4ecd75bd7ac8540a862e8af133e740d34eee40833d72c9c3236c7ef4dc75cd43816ec41
26 DIST iptables-1.4.21.tar.bz2 547439 SHA256 52004c68021da9a599feed27f65defcfb22128f7da2c0531c0f75de0f479d3e0 SHA512 dd4baccdb080284d8620e6ed59beafc2677813f3e099051764b07f8e394f6d94ca11861b181f3cce7c55c66de64c1e2add13dc1a0b64e24050cd9fb7aea0689b WHIRLPOOL 475541d1b2b7fe4ee8fa3b537274ef082aab8bfd262201ee14cd53577dfac6f591445cc6d64ed93b226a4b71d54ae1b9ab4cbb378b5440861a585f770f0db200
27 +DIST iptables-1.6.0.tar.bz2 608288 SHA256 4bb72a0a0b18b5a9e79e87631ddc4084528e5df236bc7624472dcaa8480f1c60 SHA512 60360910db76e3265fb7b6456a55b91708263bde9c4e5b9cadf3832d2e2a9db3e6cb60c82e278ea0672618bd5c9566c374e00d19d35a2e8f330116c3ab6aaf51 WHIRLPOOL e5ab2398b0650883d31ea144777a6b00904a4e02434f0420037aa54cfc5e47359b95604e945ae3a1abbf3037c37aea2143d3a5457a500e12f1c1139b11655015
28
29 diff --git a/net-firewall/iptables/iptables-1.6.0.ebuild b/net-firewall/iptables/iptables-1.6.0.ebuild
30 new file mode 100644
31 index 0000000..d3c06aa
32 --- /dev/null
33 +++ b/net-firewall/iptables/iptables-1.6.0.ebuild
34 @@ -0,0 +1,113 @@
35 +# Copyright 1999-2014 Gentoo Foundation
36 +# Distributed under the terms of the GNU General Public License v2
37 +# $Id$
38 +
39 +EAPI="5"
40 +
41 +# Force users doing their own patches to install their own tools
42 +AUTOTOOLS_AUTO_DEPEND=no
43 +
44 +inherit eutils multilib systemd toolchain-funcs autotools flag-o-matic
45 +
46 +DESCRIPTION="Linux kernel (2.4+) firewall, NAT and packet mangling tools"
47 +HOMEPAGE="http://www.netfilter.org/projects/iptables/"
48 +SRC_URI="http://www.netfilter.org/projects/iptables/files/${P}.tar.bz2"
49 +
50 +LICENSE="GPL-2"
51 +# Subslot tracks libxtables as that's the one other packages generally link
52 +# against and iptables changes. Will have to revisit if other sonames change.
53 +SLOT="0/11"
54 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
55 +IUSE="conntrack ipv6 netlink nftables pcap static-libs"
56 +
57 +RDEPEND="
58 + conntrack? ( net-libs/libnetfilter_conntrack )
59 + netlink? ( net-libs/libnfnetlink )
60 + nftables? (
61 + >=net-libs/libmnl-1.0
62 + >=net-libs/libnftnl-1.0.5
63 + )
64 + pcap? ( net-libs/libpcap )
65 +"
66 +DEPEND="${RDEPEND}
67 + virtual/os-headers
68 + virtual/pkgconfig
69 + nftables? (
70 + sys-devel/flex
71 + virtual/yacc
72 + )
73 +"
74 +
75 +src_prepare() {
76 + # use the saner headers from the kernel
77 + rm -f include/linux/{kernel,types}.h
78 +
79 + # Only run autotools if user patched something
80 + epatch_user && eautoreconf || elibtoolize
81 +}
82 +
83 +src_configure() {
84 + # Some libs use $(AR) rather than libtool to build #444282
85 + tc-export AR
86 +
87 + # Hack around struct mismatches between userland & kernel for some ABIs. #472388
88 + use amd64 && [[ ${ABI} == "x32" ]] && append-flags -fpack-struct
89 +
90 + sed -i \
91 + -e "/nfnetlink=[01]/s:=[01]:=$(usex netlink 1 0):" \
92 + -e "/nfconntrack=[01]/s:=[01]:=$(usex conntrack 1 0):" \
93 + configure || die
94 +
95 + econf \
96 + --sbindir="${EPREFIX}/sbin" \
97 + --libexecdir="${EPREFIX}/$(get_libdir)" \
98 + --enable-devel \
99 + --enable-shared \
100 + $(use_enable nftables) \
101 + $(use_enable pcap bpf-compiler) \
102 + $(use_enable pcap nfsynproxy) \
103 + $(use_enable static-libs static) \
104 + $(use_enable ipv6)
105 +}
106 +
107 +src_compile() {
108 + # Deal with parallel build errors.
109 + use nftables && emake -C iptables xtables-config-parser.h
110 + emake V=1
111 +}
112 +
113 +src_install() {
114 + default
115 + dodoc INCOMPATIBILITIES iptables/iptables.xslt
116 +
117 + # all the iptables binaries are in /sbin, so might as well
118 + # put these small files in with them
119 + into /
120 + dosbin iptables/iptables-apply
121 + dosym iptables-apply /sbin/ip6tables-apply
122 + doman iptables/iptables-apply.8
123 +
124 + insinto /usr/include
125 + doins include/iptables.h $(use ipv6 && echo include/ip6tables.h)
126 + insinto /usr/include/iptables
127 + doins include/iptables/internal.h
128 +
129 + keepdir /var/lib/iptables
130 + newinitd "${FILESDIR}"/${PN}.init iptables
131 + newconfd "${FILESDIR}"/${PN}-1.4.13.confd iptables
132 + if use ipv6 ; then
133 + keepdir /var/lib/ip6tables
134 + newinitd "${FILESDIR}"/iptables.init ip6tables
135 + newconfd "${FILESDIR}"/ip6tables-1.4.13.confd ip6tables
136 + fi
137 +
138 + systemd_dounit "${FILESDIR}"/systemd/iptables{,-{re,}store}.service
139 + if use ipv6 ; then
140 + systemd_dounit "${FILESDIR}"/systemd/ip6tables{,-{re,}store}.service
141 + fi
142 +
143 + # Move important libs to /lib #332175
144 + gen_usr_ldscript -a ip{4,6}tc iptc xtables
145 +
146 + prune_libtool_files
147 +}
148
149 diff --git a/net-firewall/iptables/metadata.xml b/net-firewall/iptables/metadata.xml
150 index 7979119..ebd02a7 100644
151 --- a/net-firewall/iptables/metadata.xml
152 +++ b/net-firewall/iptables/metadata.xml
153 @@ -5,6 +5,7 @@
154 <use>
155 <flag name='conntrack'>Build against <pkg>net-libs/libnetfilter_conntrack</pkg> when enables the connlabel matcher</flag>
156 <flag name='netlink'>Build against libnfnetlink which enables the nfnl_osf util</flag>
157 + <flag name='nftables'>Support nftables kernel interface</flag>
158 <flag name='pcap'>Build against <pkg>net-libs/libpcap</pkg> which enables the nfbpf_compile util</flag>
159 </use>
160 <longdescription>
161
162 diff --git a/profiles/arch/alpha/package.use.mask b/profiles/arch/alpha/package.use.mask
163 index d6d7547..ccf2253 100644
164 --- a/profiles/arch/alpha/package.use.mask
165 +++ b/profiles/arch/alpha/package.use.mask
166 @@ -2,6 +2,10 @@
167 # Distributed under the terms of the GNU General Public License v2
168 # $Id$
169
170 +# Mike Frysinger <vapier@g.o> (22 Dec 2015)
171 +# Needs keywording. #569254
172 +net-firewall/iptables nftables
173 +
174 # Justin Lecher <jlec@g.o> (18 Nov 2015)
175 # requires dev-python/restkit which requires
176 # dev-python/socketpool which requires dev-python/gevent which requires
177
178 diff --git a/profiles/arch/hppa/package.use.mask b/profiles/arch/hppa/package.use.mask
179 index a69a3ed..f293fc9 100644
180 --- a/profiles/arch/hppa/package.use.mask
181 +++ b/profiles/arch/hppa/package.use.mask
182 @@ -4,6 +4,10 @@
183
184 # DON'T TOUCH THIS FILE. Instead, file a bug and assign it to <hppa@g.o>.
185
186 +# Mike Frysinger <vapier@g.o> (22 Dec 2015)
187 +# Needs keywording. #569254
188 +net-firewall/iptables nftables
189 +
190 # Jeroen Roovers <jer@g.o> (16 Aug 2015)
191 # Bundles luajit which has not been ported to HPPA (bug #554376)
192 app-text/texlive-core luajittex
193
194 diff --git a/profiles/arch/ia64/package.use.mask b/profiles/arch/ia64/package.use.mask
195 index b22c144..2f72d49 100644
196 --- a/profiles/arch/ia64/package.use.mask
197 +++ b/profiles/arch/ia64/package.use.mask
198 @@ -2,6 +2,10 @@
199 # Distributed under the terms of the GNU General Public License v2
200 # $Id$
201
202 +# Mike Frysinger <vapier@g.o> (22 Dec 2015)
203 +# Needs keywording. #569254
204 +net-firewall/iptables nftables
205 +
206 # Justin Lecher <jlec@g.o> (18 Nov 2015)
207 # requires dev-python/restkit which requires
208 # dev-python/socketpool which requires dev-python/gevent which requires
209
210 diff --git a/profiles/arch/powerpc/package.use.mask b/profiles/arch/powerpc/package.use.mask
211 index 7a7cbb0..8be6980 100644
212 --- a/profiles/arch/powerpc/package.use.mask
213 +++ b/profiles/arch/powerpc/package.use.mask
214 @@ -2,6 +2,10 @@
215 # Distributed under the terms of the GNU General Public License v2
216 # $Id$
217
218 +# Mike Frysinger <vapier@g.o> (22 Dec 2015)
219 +# Needs keywording. #569254
220 +net-firewall/iptables nftables
221 +
222 # Pacho Ramos <pacho@g.o> (15 Nov 2015)
223 # Missing keywords
224 media-sound/rhythmbox upnp-av
225
226 diff --git a/profiles/arch/sparc/package.use.mask b/profiles/arch/sparc/package.use.mask
227 index fecfa8d..626ee11 100644
228 --- a/profiles/arch/sparc/package.use.mask
229 +++ b/profiles/arch/sparc/package.use.mask
230 @@ -2,6 +2,10 @@
231 # Distributed under the terms of the GNU General Public License v2
232 # $Id$
233
234 +# Mike Frysinger <vapier@g.o> (22 Dec 2015)
235 +# Needs keywording. #569254
236 +net-firewall/iptables nftables
237 +
238 # Justin Lecher <jlec@g.o> (18 Nov 2015)
239 # requires dev-python/restkit which requires
240 # dev-python/socketpool which requires dev-python/gevent which requires