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: net-firewall/iptables/
Date: Sat, 03 Feb 2018 11:47:58
Message-Id: 1517658462.1daf59c868aa1a4a20709d799a85d3bd033e8bbd.polynomial-c@gentoo
1 commit: 1daf59c868aa1a4a20709d799a85d3bd033e8bbd
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Sat Feb 3 11:38:50 2018 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 3 11:47:42 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1daf59c8
7
8 net-firewall/iptables: Bump to version 1.6.2
9
10 Package-Manager: Portage-2.3.24, Repoman-2.3.6
11
12 net-firewall/iptables/Manifest | 1 +
13 net-firewall/iptables/iptables-1.6.2.ebuild | 114 ++++++++++++++++++++++++++++
14 2 files changed, 115 insertions(+)
15
16 diff --git a/net-firewall/iptables/Manifest b/net-firewall/iptables/Manifest
17 index bce16ead4b4..403c3e2ebae 100644
18 --- a/net-firewall/iptables/Manifest
19 +++ b/net-firewall/iptables/Manifest
20 @@ -1,3 +1,4 @@
21 DIST iptables-1.4.21.tar.bz2 547439 BLAKE2B e30f25581a118b91781dcc02761d4c8c420fb19876ec9e8ade3aff22b574931065f9a1c1ec31983a444c406dd928c47673d02698553da85c3db4f31484b1597d SHA512 dd4baccdb080284d8620e6ed59beafc2677813f3e099051764b07f8e394f6d94ca11861b181f3cce7c55c66de64c1e2add13dc1a0b64e24050cd9fb7aea0689b
22 DIST iptables-1.6.0.tar.bz2 608288 BLAKE2B 4272860f434b4c6951d9ea32219e96c6907e4bcafaf0429d671d109b73b52aead4f17577f0a148a87e51b33708ca8c9b48ab6d11321e2baf138c0e6bdd636c78 SHA512 60360910db76e3265fb7b6456a55b91708263bde9c4e5b9cadf3832d2e2a9db3e6cb60c82e278ea0672618bd5c9566c374e00d19d35a2e8f330116c3ab6aaf51
23 DIST iptables-1.6.1.tar.bz2 620890 BLAKE2B b45ac26e1fb7e8b17a6df0afab3b6c0e2f0a5df9191367548136b3ce9aadc1bcb875b8bc0403e6f12fcf487054e96418f4ef34da827af8989fd4dcf83cd3cd8d SHA512 12280db6e6ef8e68da2537e9da59fc601790fd02b1ba38a37c90dbb56272018329dccb8be995f96ecd5d94fafa6043204f3e8f8ee96531685d9e3c55359d2ee8
24 +DIST iptables-1.6.2.tar.bz2 639785 BLAKE2B 3d129756fd33c8c73d56d57e3c5595896db86ded14834a45db21b964d82840b62216ce3cea4ae4960e8c5f0671df3cc6bfb222f68d29cf3a8c99e0eee14bf017 SHA512 04f22e969c794246b9aa28055b202638081cfb0bb4a5625c049a30c48ac84cdd41db12a53c5831398cfe47c8f5691aa02b30b0ae3b5afe0f20ec48cf86a799c0
25
26 diff --git a/net-firewall/iptables/iptables-1.6.2.ebuild b/net-firewall/iptables/iptables-1.6.2.ebuild
27 new file mode 100644
28 index 00000000000..b6c9ab99f6b
29 --- /dev/null
30 +++ b/net-firewall/iptables/iptables-1.6.2.ebuild
31 @@ -0,0 +1,114 @@
32 +# Copyright 1999-2018 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=6
36 +
37 +# Force users doing their own patches to install their own tools
38 +AUTOTOOLS_AUTO_DEPEND=no
39 +
40 +inherit ltprune multilib systemd toolchain-funcs autotools flag-o-matic
41 +
42 +DESCRIPTION="Linux kernel (2.4+) firewall, NAT and packet mangling tools"
43 +HOMEPAGE="http://www.netfilter.org/projects/iptables/"
44 +SRC_URI="http://www.netfilter.org/projects/iptables/files/${P}.tar.bz2"
45 +
46 +LICENSE="GPL-2"
47 +# Subslot tracks libxtables as that's the one other packages generally link
48 +# against and iptables changes. Will have to revisit if other sonames change.
49 +SLOT="0/12"
50 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
51 +IUSE="conntrack ipv6 netlink nftables pcap static-libs"
52 +
53 +RDEPEND="
54 + conntrack? ( >=net-libs/libnetfilter_conntrack-1.0.6 )
55 + netlink? ( net-libs/libnfnetlink )
56 + nftables? (
57 + >=net-libs/libmnl-1.0:0=
58 + >=net-libs/libnftnl-1.0.5:0=
59 + )
60 + pcap? ( net-libs/libpcap )
61 +"
62 +DEPEND="${RDEPEND}
63 + virtual/os-headers
64 + virtual/pkgconfig
65 + nftables? (
66 + sys-devel/flex
67 + virtual/yacc
68 + )
69 +"
70 +
71 +src_prepare() {
72 + # use the saner headers from the kernel
73 + rm -f include/linux/{kernel,types}.h
74 +
75 + # Only run autotools if user patched something
76 + eapply_user && eautoreconf || elibtoolize
77 +}
78 +
79 +src_configure() {
80 + # Some libs use $(AR) rather than libtool to build #444282
81 + tc-export AR
82 +
83 + # Hack around struct mismatches between userland & kernel for some ABIs. #472388
84 + use amd64 && [[ ${ABI} == "x32" ]] && append-flags -fpack-struct
85 +
86 + sed -i \
87 + -e "/nfnetlink=[01]/s:=[01]:=$(usex netlink 1 0):" \
88 + -e "/nfconntrack=[01]/s:=[01]:=$(usex conntrack 1 0):" \
89 + configure || die
90 +
91 + local myeconfargs=(
92 + --sbindir="${EPREFIX}/sbin"
93 + --libexecdir="${EPREFIX}/$(get_libdir)"
94 + --enable-devel
95 + --enable-shared
96 + $(use_enable nftables)
97 + $(use_enable pcap bpf-compiler)
98 + $(use_enable pcap nfsynproxy)
99 + $(use_enable static-libs static)
100 + $(use_enable ipv6)
101 + )
102 + econf "${myeconfargs[@]}"
103 +}
104 +
105 +src_compile() {
106 + # Deal with parallel build errors.
107 + use nftables && emake -C iptables xtables-config-parser.h
108 + emake V=1
109 +}
110 +
111 +src_install() {
112 + default
113 + dodoc INCOMPATIBILITIES iptables/iptables.xslt
114 +
115 + # all the iptables binaries are in /sbin, so might as well
116 + # put these small files in with them
117 + into /
118 + dosbin iptables/iptables-apply
119 + dosym iptables-apply /sbin/ip6tables-apply
120 + doman iptables/iptables-apply.8
121 +
122 + insinto /usr/include
123 + doins include/iptables.h $(use ipv6 && echo include/ip6tables.h)
124 + insinto /usr/include/iptables
125 + doins include/iptables/internal.h
126 +
127 + keepdir /var/lib/iptables
128 + newinitd "${FILESDIR}"/${PN}.init iptables
129 + newconfd "${FILESDIR}"/${PN}-1.4.13.confd iptables
130 + if use ipv6 ; then
131 + keepdir /var/lib/ip6tables
132 + newinitd "${FILESDIR}"/iptables.init ip6tables
133 + newconfd "${FILESDIR}"/ip6tables-1.4.13.confd ip6tables
134 + fi
135 +
136 + systemd_dounit "${FILESDIR}"/systemd/iptables-{re,}store.service
137 + if use ipv6 ; then
138 + systemd_dounit "${FILESDIR}"/systemd/ip6tables-{re,}store.service
139 + fi
140 +
141 + # Move important libs to /lib #332175
142 + gen_usr_ldscript -a ip{4,6}tc iptc xtables
143 +
144 + prune_libtool_files
145 +}