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