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.0-r1.ebuild metadata.xml iptables-1.4.0.ebuild
Date: Tue, 08 Jan 2008 16:23:34
Message-Id: E1JCHEh-0002Cz-7R@stork.gentoo.org
1 pva 08/01/08 16:23:31
2
3 Modified: ChangeLog iptables-1.4.0-r1.ebuild metadata.xml
4 iptables-1.4.0.ebuild
5 Log:
6 IMQ patches updated for iptables 1.4.x. Added myself into metadata for l7filter and imq extensions.
7 (Portage version: 2.1.3.19)
8
9 Revision Changes Path
10 1.158 net-firewall/iptables/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-firewall/iptables/ChangeLog?rev=1.158&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-firewall/iptables/ChangeLog?rev=1.158&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-firewall/iptables/ChangeLog?r1=1.157&r2=1.158
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-firewall/iptables/ChangeLog,v
19 retrieving revision 1.157
20 retrieving revision 1.158
21 diff -u -r1.157 -r1.158
22 --- ChangeLog 30 Dec 2007 15:00:48 -0000 1.157
23 +++ ChangeLog 8 Jan 2008 16:23:30 -0000 1.158
24 @@ -1,6 +1,10 @@
25 # ChangeLog for net-firewall/iptables
26 -# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/net-firewall/iptables/ChangeLog,v 1.157 2007/12/30 15:00:48 vapier Exp $
28 +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/net-firewall/iptables/ChangeLog,v 1.158 2008/01/08 16:23:30 pva Exp $
30 +
31 + 08 Jan 2008; <pva@g.o> metadata.xml, iptables-1.4.0-r1.ebuild:
32 + IMQ patches updated for iptables 1.4.x. Added myself into metadata for
33 + l7filter and imq extensions.
34
35 *iptables-1.4.0-r1 (30 Dec 2007)
36
37
38
39
40 1.2 net-firewall/iptables/iptables-1.4.0-r1.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-firewall/iptables/iptables-1.4.0-r1.ebuild?rev=1.2&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-firewall/iptables/iptables-1.4.0-r1.ebuild?rev=1.2&content-type=text/plain
44 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-firewall/iptables/iptables-1.4.0-r1.ebuild?r1=1.1&r2=1.2
45
46 Index: iptables-1.4.0-r1.ebuild
47 ===================================================================
48 RCS file: /var/cvsroot/gentoo-x86/net-firewall/iptables/iptables-1.4.0-r1.ebuild,v
49 retrieving revision 1.1
50 retrieving revision 1.2
51 diff -u -r1.1 -r1.2
52 --- iptables-1.4.0-r1.ebuild 30 Dec 2007 15:00:48 -0000 1.1
53 +++ iptables-1.4.0-r1.ebuild 8 Jan 2008 16:23:30 -0000 1.2
54 @@ -1,28 +1,31 @@
55 -# Copyright 1999-2007 Gentoo Foundation
56 +# Copyright 1999-2008 Gentoo Foundation
57 # Distributed under the terms of the GNU General Public License v2
58 -# $Header: /var/cvsroot/gentoo-x86/net-firewall/iptables/iptables-1.4.0-r1.ebuild,v 1.1 2007/12/30 15:00:48 vapier Exp $
59 +# $Header: /var/cvsroot/gentoo-x86/net-firewall/iptables/iptables-1.4.0-r1.ebuild,v 1.2 2008/01/08 16:23:30 pva Exp $
60
61 inherit eutils toolchain-funcs linux-info
62
63 L7_PV=2.17
64 L7_P=netfilter-layer7-v${L7_PV}
65 +IMQ_PATCH=iptables-1.4.0-imq.diff
66
67 DESCRIPTION="Linux kernel (2.4+) firewall, NAT and packet mangling tools"
68 -HOMEPAGE="http://www.iptables.org/ http://l7-filter.sf.net/"
69 +HOMEPAGE="http://www.iptables.org/ http://www.linuximq.net/ http://l7-filter.sf.net/"
70 SRC_URI="http://iptables.org/projects/iptables/files/${P}.tar.bz2
71 + imq? ( http://www.actusa.net/~linuximq/${IMQ_PATCH} )
72 l7filter? ( mirror://sourceforge/l7-filter/${L7_P}.tar.gz )"
73
74 LICENSE="GPL-2"
75 SLOT="0"
76 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
77 -IUSE="extensions ipv6 l7filter static"
78 +IUSE="extensions imq ipv6 l7filter static"
79
80 DEPEND="virtual/os-headers
81 - l7filter? ( virtual/linux-sources )"
82 + l7filter? ( virtual/linux-sources )
83 + imq? ( virtual/linux-sources )"
84 RDEPEND=""
85
86 pkg_setup() {
87 - if use l7filter || use extensions ; then
88 + if use l7filter || use imq || use extensions ; then
89 ewarn "WARNING: 3rd party extensions has been enabled."
90 ewarn "This means that iptables will use your currently installed"
91 ewarn "kernel in ${KERNEL_DIR} as headers for iptables."
92 @@ -46,6 +49,12 @@
93 [ ! -f "${L7FILE}" ]; then
94 die "For layer 7 support emerge net-misc/l7-filter-${L7_PV} before this"
95 fi
96 + if use imq && \
97 + [ ! -f "${KERNEL_DIR}/net/ipv4/netfilter/ipt_IMQ.c" ]; then
98 + eerror "For IMQ support add a patch from http://www.actusa.net/~linuximq/ or from"
99 + eerror "http://www.linuximq.net/patches.html (for older kernels) to your kernel."
100 + die "Please, patch your kernel to support IMQ."
101 + fi
102 }
103
104 src_unpack() {
105 @@ -79,6 +88,11 @@
106 fi
107 done
108
109 + if use imq ; then
110 + EPATCH_OPTS="-p1" epatch "${DISTDIR}"/${IMQ_PATCH}
111 + chmod +x extensions/.IMQ-test*
112 + fi
113 +
114 if use l7filter ; then
115 #yes choosing 2.6.20 was deliberate - upstream mistake possibly
116 if kernel_is ge 2 6 20
117 @@ -116,7 +130,7 @@
118 use ipv6 || myconf="${myconf} DO_IPV6=0"
119 use static && myconf="${myconf} NO_SHARED_LIBS=0"
120 export myconf
121 - if ! use l7filter && ! use extensions ; then
122 + if ! use l7filter && ! use imq && ! use extensions ; then
123 export KERNEL_DIR=$(
124 # ugh -- iptables has scripts which check for the existence of
125 # files so we need to give it the right path to our toolchains
126 @@ -127,7 +141,7 @@
127 export KBUILD_OUTPUT=${KERNEL_DIR}
128 diemsg="failure"
129 else
130 - diemsg="failure - with l7filter and/or other miscellanious patches added"
131 + diemsg="failure - with l7filter and/or imq patch and/or other miscellanious patches added"
132 fi
133 export diemsg
134 }
135
136
137
138 1.4 net-firewall/iptables/metadata.xml
139
140 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-firewall/iptables/metadata.xml?rev=1.4&view=markup
141 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-firewall/iptables/metadata.xml?rev=1.4&content-type=text/plain
142 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-firewall/iptables/metadata.xml?r1=1.3&r2=1.4
143
144 Index: metadata.xml
145 ===================================================================
146 RCS file: /var/cvsroot/gentoo-x86/net-firewall/iptables/metadata.xml,v
147 retrieving revision 1.3
148 retrieving revision 1.4
149 diff -u -r1.3 -r1.4
150 --- metadata.xml 12 Jul 2005 01:44:31 -0000 1.3
151 +++ metadata.xml 8 Jan 2008 16:23:30 -0000 1.4
152 @@ -2,4 +2,21 @@
153 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
154 <pkgmetadata>
155 <herd>base-system</herd>
156 +<maintainer>
157 + <email>pva@g.o</email>
158 + <name>Peter Volkov</name>
159 + <description>imq and l7filter extensions</description>
160 +</maintainer>
161 +<longdescription>
162 + iptables is the userspace command line program used to set up, maintain, and
163 + inspect the tables of IPv4 packet filter rules in the Linux kernel. It's a
164 + part of packet filtering framework which allows the stateless and stateful
165 + packet filtering, all kinds of network address and port translation, and is a
166 + flexible and extensible infrastructure with multiple layers of API's for 3rd
167 + party extensions. The iptables package also includes ip6tables. ip6tables is
168 + used for configuring the IPv6 packet filter.
169 +
170 + Note that some extensions (e.g. imq and l7filter) are not included into
171 + official kernel sources so you have to patch the sources before installation.
172 +</longdescription>
173 </pkgmetadata>
174
175
176
177 1.4 net-firewall/iptables/iptables-1.4.0.ebuild
178
179 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-firewall/iptables/iptables-1.4.0.ebuild?rev=1.4&view=markup
180 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-firewall/iptables/iptables-1.4.0.ebuild?rev=1.4&content-type=text/plain
181 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-firewall/iptables/iptables-1.4.0.ebuild?r1=1.3&r2=1.4
182
183 Index: iptables-1.4.0.ebuild
184 ===================================================================
185 RCS file: /var/cvsroot/gentoo-x86/net-firewall/iptables/iptables-1.4.0.ebuild,v
186 retrieving revision 1.3
187 retrieving revision 1.4
188 diff -u -r1.3 -r1.4
189 --- iptables-1.4.0.ebuild 27 Dec 2007 21:48:28 -0000 1.3
190 +++ iptables-1.4.0.ebuild 8 Jan 2008 16:23:30 -0000 1.4
191 @@ -1,6 +1,6 @@
192 -# Copyright 1999-2007 Gentoo Foundation
193 +# Copyright 1999-2008 Gentoo Foundation
194 # Distributed under the terms of the GNU General Public License v2
195 -# $Header: /var/cvsroot/gentoo-x86/net-firewall/iptables/iptables-1.4.0.ebuild,v 1.3 2007/12/27 21:48:28 vapier Exp $
196 +# $Header: /var/cvsroot/gentoo-x86/net-firewall/iptables/iptables-1.4.0.ebuild,v 1.4 2008/01/08 16:23:30 pva Exp $
197
198 inherit eutils toolchain-funcs linux-info
199
200
201
202
203 --
204 gentoo-commits@l.g.o mailing list