Gentoo Archives: gentoo-commits

From: "Peter Volkov (pva)" <pva@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-firewall/iptables: ChangeLog iptables-1.4.3.ebuild
Date: Tue, 24 Mar 2009 08:12:35
Message-Id: E1Lm1kN-0005eW-Ur@stork.gentoo.org
1 pva 09/03/24 08:12:31
2
3 Modified: ChangeLog
4 Added: iptables-1.4.3.ebuild
5 Log:
6 Version bump.
7 (Portage version: 2.2_rc26/cvs/Linux i686)
8
9 Revision Changes Path
10 1.194 net-firewall/iptables/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-firewall/iptables/ChangeLog?rev=1.194&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-firewall/iptables/ChangeLog?rev=1.194&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-firewall/iptables/ChangeLog?r1=1.193&r2=1.194
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-firewall/iptables/ChangeLog,v
19 retrieving revision 1.193
20 retrieving revision 1.194
21 diff -u -r1.193 -r1.194
22 --- ChangeLog 16 Feb 2009 16:57:34 -0000 1.193
23 +++ ChangeLog 24 Mar 2009 08:12:31 -0000 1.194
24 @@ -1,6 +1,12 @@
25 # ChangeLog for net-firewall/iptables
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/net-firewall/iptables/ChangeLog,v 1.193 2009/02/16 16:57:34 ranger Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/net-firewall/iptables/ChangeLog,v 1.194 2009/03/24 08:12:31 pva Exp $
29 +
30 +*iptables-1.4.3 (24 Mar 2009)
31 +
32 + 24 Mar 2009; Peter Volkov <pva@g.o>
33 + +files/iptables-1.4.3-as-needed.patch, +iptables-1.4.3.ebuild:
34 + Version bump.
35
36 16 Feb 2009; Brent Baude <ranger@g.o> iptables-1.4.2-r2.ebuild:
37 stable ppc64, bug 255786
38
39
40
41 1.1 net-firewall/iptables/iptables-1.4.3.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-firewall/iptables/iptables-1.4.3.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-firewall/iptables/iptables-1.4.3.ebuild?rev=1.1&content-type=text/plain
45
46 Index: iptables-1.4.3.ebuild
47 ===================================================================
48 # Copyright 1999-2009 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/net-firewall/iptables/iptables-1.4.3.ebuild,v 1.1 2009/03/24 08:12:31 pva Exp $
51
52 inherit eutils toolchain-funcs linux-info
53
54 L7_PV=2.21
55 L7_P=netfilter-layer7-v${L7_PV}
56
57 DESCRIPTION="Linux kernel (2.4+) firewall, NAT and packet mangling tools"
58 HOMEPAGE="http://www.iptables.org/"
59 SRC_URI="http://iptables.org/projects/iptables/files/${P}.tar.bz2
60 l7filter? ( mirror://sourceforge/l7-filter/${L7_P}.tar.gz )"
61
62 LICENSE="GPL-2"
63 SLOT="0"
64 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
65 IUSE="l7filter"
66
67 DEPEND="virtual/os-headers"
68 RDEPEND=""
69
70 pkg_setup() {
71 if use l7filter ; then
72 ewarn "WARNING: 3rd party extensions has been enabled."
73 ewarn "This means that iptables will use your currently installed"
74 ewarn "kernel in ${KERNEL_DIR} as headers for iptables."
75 linux-info_pkg_setup
76
77 if kernel_is lt 2 6 20 ; then
78 eerror "Currently there is no l7-filter patch available for iptables-1.4.x"
79 eerror "and kernel version before 2.6.20."
80 eerror "If you need to compile iptables 1.4.x against Linux 2.6.19.x"
81 eerror "or earlier, with l7-filter patch, please, report upstream."
82 die "No patch available."
83 fi
84
85 [[ ! -f ${KERNEL_DIR}/include/linux/netfilter/xt_layer7.h ]] && \
86 die "For layer 7 support emerge net-misc/l7-filter-${L7_PV} before this."
87 fi
88 }
89
90 src_unpack() {
91 unpack ${P}.tar.bz2
92 use l7filter && unpack ${L7_P}.tar.gz
93 cd "${S}"
94
95 epatch "${FILESDIR}"/${PN}-1.4.2-no-ldconfig.patch
96 epatch "${FILESDIR}"/${PN}-1.4.2-hashlimit.patch #254496
97 sed -e 's:\<\(LOAD_MUST_SUCCEED\)\>:XTF_\1:' -i xtables.c
98 epatch "${FILESDIR}"/${P}-as-needed.patch
99
100 local check base=${PORTAGE_CONFIGROOT}/etc/portage/patches
101 for check in {${CATEGORY}/${PF},${CATEGORY}/${P},${CATEGORY}/${PN}}; do
102 EPATCH_SOURCE=${base}/${CTARGET}/${check}
103 [[ -r ${EPATCH_SOURCE} ]] || EPATCH_SOURCE=${base}/${CHOST}/${check}
104 [[ -r ${EPATCH_SOURCE} ]] || EPATCH_SOURCE=${base}/${check}
105 if [[ -d ${EPATCH_SOURCE} ]] ; then
106 EPATCH_SUFFIX="patch"
107 EPATCH_FORCE="yes" \
108 EPATCH_MULTI_MSG="Applying user patches from ${EPATCH_SOURCE} ..." \
109 epatch
110 break
111 fi
112 done
113
114 if use l7filter ; then
115 cp "${WORKDIR}/${L7_P}/iptables-1.4.1.1-for-kernel-2.6.20forward"/* extensions \
116 || die "Failed to copy l7filter sources"
117 fi
118 }
119
120 src_compile() {
121 econf \
122 --sbindir=/sbin \
123 --libexecdir=/$(get_libdir) \
124 --enable-devel \
125 --enable-libipq \
126 --enable-shared \
127 --enable-static \
128 $(use_with l7filter kernel ${KERNEL_DIR})
129 emake V=1 || die
130 }
131
132 src_install() {
133 emake install DESTDIR="${D}" || die
134
135 insinto /usr/include
136 doins include/iptables.h include/ip6tables.h || die
137
138 keepdir /var/lib/iptables
139 newinitd "${FILESDIR}"/${PN}-1.3.2.init iptables || die
140 newconfd "${FILESDIR}"/${PN}-1.3.2.confd iptables || die
141 keepdir /var/lib/ip6tables
142 newinitd "${FILESDIR}"/iptables-1.3.2.init ip6tables || die
143 newconfd "${FILESDIR}"/ip6tables-1.3.2.confd ip6tables || die
144 }