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