1 |
commit: d548656bbe8a719c33233076cc6eba6b01cf0e65 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Apr 29 09:34:44 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Apr 29 10:20:55 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d548656b |
7 |
|
8 |
net-firewall/iptables: drop 1.8.7 |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
net-firewall/iptables/iptables-1.8.7.ebuild | 181 ---------------------------- |
13 |
1 file changed, 181 deletions(-) |
14 |
|
15 |
diff --git a/net-firewall/iptables/iptables-1.8.7.ebuild b/net-firewall/iptables/iptables-1.8.7.ebuild |
16 |
deleted file mode 100644 |
17 |
index e81c56c6afe9..000000000000 |
18 |
--- a/net-firewall/iptables/iptables-1.8.7.ebuild |
19 |
+++ /dev/null |
20 |
@@ -1,181 +0,0 @@ |
21 |
-# Copyright 1999-2022 Gentoo Authors |
22 |
-# Distributed under the terms of the GNU General Public License v2 |
23 |
- |
24 |
-EAPI=7 |
25 |
- |
26 |
-inherit systemd toolchain-funcs autotools flag-o-matic usr-ldscript |
27 |
- |
28 |
-DESCRIPTION="Linux kernel (2.4+) firewall, NAT and packet mangling tools" |
29 |
-HOMEPAGE="https://www.netfilter.org/projects/iptables/" |
30 |
-SRC_URI="https://www.netfilter.org/projects/iptables/files/${P}.tar.bz2" |
31 |
- |
32 |
-LICENSE="GPL-2" |
33 |
-# Subslot reflects PV when libxtables and/or libip*tc was changed |
34 |
-# the last time. |
35 |
-SLOT="0/1.8.3" |
36 |
-KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86" |
37 |
-IUSE="conntrack ipv6 netlink nftables pcap static-libs" |
38 |
- |
39 |
-BUILD_DEPEND=" |
40 |
- >=app-eselect/eselect-iptables-20200508 |
41 |
-" |
42 |
-COMMON_DEPEND=" |
43 |
- conntrack? ( >=net-libs/libnetfilter_conntrack-1.0.6 ) |
44 |
- netlink? ( net-libs/libnfnetlink ) |
45 |
- nftables? ( |
46 |
- >=net-libs/libmnl-1.0:0= |
47 |
- >=net-libs/libnftnl-1.1.6:0= |
48 |
- ) |
49 |
- pcap? ( net-libs/libpcap ) |
50 |
-" |
51 |
-DEPEND="${COMMON_DEPEND} |
52 |
- virtual/os-headers |
53 |
- >=sys-kernel/linux-headers-4.4:0 |
54 |
-" |
55 |
-BDEPEND="${BUILD_DEPEND} |
56 |
- app-eselect/eselect-iptables |
57 |
- virtual/pkgconfig |
58 |
- nftables? ( |
59 |
- sys-devel/flex |
60 |
- virtual/yacc |
61 |
- ) |
62 |
-" |
63 |
-RDEPEND="${COMMON_DEPEND} |
64 |
- ${BUILD_DEPEND} |
65 |
- nftables? ( net-misc/ethertypes ) |
66 |
- !<net-firewall/ebtables-2.0.11-r1 |
67 |
- !<net-firewall/arptables-0.0.5-r1 |
68 |
-" |
69 |
- |
70 |
-PATCHES=( |
71 |
- "${FILESDIR}/iptables-1.8.4-no-symlinks.patch" |
72 |
- "${FILESDIR}/iptables-1.8.2-link.patch" |
73 |
-) |
74 |
- |
75 |
-src_prepare() { |
76 |
- # use the saner headers from the kernel |
77 |
- rm include/linux/{kernel,types}.h || die |
78 |
- |
79 |
- default |
80 |
- eautoreconf |
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 |
- local myeconfargs=( |
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 |
- econf "${myeconfargs[@]}" |
107 |
-} |
108 |
- |
109 |
-src_compile() { |
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}-r2.init iptables |
131 |
- newconfd "${FILESDIR}"/${PN}-r1.confd iptables |
132 |
- if use ipv6 ; then |
133 |
- keepdir /var/lib/ip6tables |
134 |
- dosym iptables /etc/init.d/ip6tables |
135 |
- newconfd "${FILESDIR}"/ip6tables-r1.confd ip6tables |
136 |
- fi |
137 |
- |
138 |
- if use nftables; then |
139 |
- # Bug 647458 |
140 |
- rm "${ED}"/etc/ethertypes || die |
141 |
- |
142 |
- # Bugs 660886 and 669894 |
143 |
- rm "${ED}"/sbin/{arptables,ebtables}{,-{save,restore}} || die |
144 |
- fi |
145 |
- |
146 |
- systemd_dounit "${FILESDIR}"/systemd/iptables-{re,}store.service |
147 |
- if use ipv6 ; then |
148 |
- systemd_dounit "${FILESDIR}"/systemd/ip6tables-{re,}store.service |
149 |
- fi |
150 |
- |
151 |
- # Move important libs to /lib #332175 |
152 |
- gen_usr_ldscript -a ip{4,6}tc xtables |
153 |
- |
154 |
- find "${ED}" -type f -name "*.la" -delete || die |
155 |
-} |
156 |
- |
157 |
-pkg_postinst() { |
158 |
- local default_iptables="xtables-legacy-multi" |
159 |
- if ! eselect iptables show &>/dev/null; then |
160 |
- elog "Current iptables implementation is unset, setting to ${default_iptables}" |
161 |
- eselect iptables set "${default_iptables}" |
162 |
- fi |
163 |
- |
164 |
- if use nftables; then |
165 |
- local tables |
166 |
- for tables in {arp,eb}tables; do |
167 |
- if ! eselect ${tables} show &>/dev/null; then |
168 |
- elog "Current ${tables} implementation is unset, setting to ${default_iptables}" |
169 |
- eselect ${tables} set xtables-nft-multi |
170 |
- fi |
171 |
- done |
172 |
- fi |
173 |
- |
174 |
- eselect iptables show |
175 |
-} |
176 |
- |
177 |
-pkg_prerm() { |
178 |
- if [[ -z ${REPLACED_BY_VERSION} ]]; then |
179 |
- elog "Unsetting iptables symlinks before removal" |
180 |
- eselect iptables unset |
181 |
- fi |
182 |
- |
183 |
- if ! has_version 'net-firewall/ebtables'; then |
184 |
- elog "Unsetting ebtables symlinks before removal" |
185 |
- eselect ebtables unset |
186 |
- elif [[ -z ${REPLACED_BY_VERSION} ]]; then |
187 |
- elog "Resetting ebtables symlinks to ebtables-legacy" |
188 |
- eselect ebtables set ebtables-legacy |
189 |
- fi |
190 |
- |
191 |
- if ! has_version 'net-firewall/arptables'; then |
192 |
- elog "Unsetting arptables symlinks before removal" |
193 |
- eselect arptables unset |
194 |
- elif [[ -z ${REPLACED_BY_VERSION} ]]; then |
195 |
- elog "Resetting arptables symlinks to arptables-legacy" |
196 |
- eselect arptables set arptables-legacy |
197 |
- fi |
198 |
- |
199 |
- # the eselect module failing should not be fatal |
200 |
- return 0 |
201 |
-} |