diff options
author | Peter Volkov <pva@gentoo.org> | 2008-01-11 17:47:01 +0000 |
---|---|---|
committer | Peter Volkov <pva@gentoo.org> | 2008-01-11 17:47:01 +0000 |
commit | 2116eda0910ed5f2411a0217f3f93de087441181 (patch) | |
tree | 46938c2dfbf29ed706d04034ab9e5344f8656687 /net-firewall | |
parent | Stable on amd64; bug 199206 (diff) | |
download | gentoo-2-2116eda0910ed5f2411a0217f3f93de087441181.tar.gz gentoo-2-2116eda0910ed5f2411a0217f3f93de087441181.tar.bz2 gentoo-2-2116eda0910ed5f2411a0217f3f93de087441181.zip |
l7-filter related code cleaned. Fixed build build problem with monolitic kernels and any of imq, l7filter or extesion USE flags enabled, bug 205127, thank Guillaume Castagnino <casta AT xwing.info> for report. iptables-1.2 is long time not in the tree hence removed related obsolete ewarn.
(Portage version: 2.1.3.19)
Diffstat (limited to 'net-firewall')
-rw-r--r-- | net-firewall/iptables/ChangeLog | 8 | ||||
-rw-r--r-- | net-firewall/iptables/iptables-1.3.8-r2.ebuild | 4 | ||||
-rw-r--r-- | net-firewall/iptables/iptables-1.4.0-r1.ebuild | 47 |
3 files changed, 25 insertions, 34 deletions
diff --git a/net-firewall/iptables/ChangeLog b/net-firewall/iptables/ChangeLog index 8a935cf92057..197d72f50428 100644 --- a/net-firewall/iptables/ChangeLog +++ b/net-firewall/iptables/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-firewall/iptables # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-firewall/iptables/ChangeLog,v 1.159 2008/01/10 17:59:20 nixnut Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-firewall/iptables/ChangeLog,v 1.160 2008/01/11 17:47:01 pva Exp $ + + 11 Jan 2008; <pva@gentoo.org> iptables-1.4.0-r1.ebuild: + l7-filter related code cleaned. Fixed build build problem with monolitic + kernels and any of imq, l7filter or extesion USE flags enabled, bug 205127, + thank Guillaume Castagnino <casta AT xwing.info> for report. iptables-1.2 is + long time not in the tree hence removed related obsolete ewarn. 10 Jan 2008; nixnut <nixnut@gentoo.org> iptables-1.3.8-r3.ebuild: Stable on ppc wrt bug 201909 diff --git a/net-firewall/iptables/iptables-1.3.8-r2.ebuild b/net-firewall/iptables/iptables-1.3.8-r2.ebuild index 40627b926790..ab13fc767a1f 100644 --- a/net-firewall/iptables/iptables-1.3.8-r2.ebuild +++ b/net-firewall/iptables/iptables-1.3.8-r2.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2007 Gentoo Foundation +# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-firewall/iptables/iptables-1.3.8-r2.ebuild,v 1.10 2008/01/10 17:59:20 nixnut Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-firewall/iptables/iptables-1.3.8-r2.ebuild,v 1.11 2008/01/11 17:47:01 pva Exp $ inherit eutils flag-o-matic toolchain-funcs linux-info diff --git a/net-firewall/iptables/iptables-1.4.0-r1.ebuild b/net-firewall/iptables/iptables-1.4.0-r1.ebuild index 2618eded6565..2a17119f9420 100644 --- a/net-firewall/iptables/iptables-1.4.0-r1.ebuild +++ b/net-firewall/iptables/iptables-1.4.0-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $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 $ +# $Header: /var/cvsroot/gentoo-x86/net-firewall/iptables/iptables-1.4.0-r1.ebuild,v 1.3 2008/01/11 17:47:01 pva Exp $ inherit eutils toolchain-funcs linux-info @@ -39,15 +39,16 @@ pkg_setup() { linux-info_pkg_setup fi - if kernel_is ge 2 6 20 - then - L7FILE=${KERNEL_DIR}/net/netfilter/xt_layer7.c - else - L7FILE=${KERNEL_DIR}/net/ipv4/netfilter/ipt_layer7.c - fi - if use l7filter && \ - [ ! -f "${L7FILE}" ]; then - die "For layer 7 support emerge net-misc/l7-filter-${L7_PV} before this" + if use l7filter ; then + if kernel_is lt 2 6 20 ; then + eerror "Currently there is no l7-filter patch available for iptables-1.4.x" + eerror "and kernel version before 2.6.20." + eerror "If you need to compile iptables 1.4.x against Linux 2.6.19.x" + eerror "or earlier, with l7-filter patch, please, report upstream." + die "No patch available." + fi + [ ! -f "${KERNEL_DIR}/include/linux/netfilter/xt_layer7.h" ] && \ + die "For layer 7 support emerge net-misc/l7-filter-${L7_PV} before this." fi if use imq && \ [ ! -f "${KERNEL_DIR}/net/ipv4/netfilter/ipt_IMQ.c" ]; then @@ -59,8 +60,7 @@ pkg_setup() { src_unpack() { unpack ${P}.tar.bz2 - if use l7filter - then + if use l7filter ; then unpack ${L7_P}.tar.gz fi cd "${S}" @@ -94,19 +94,9 @@ src_unpack() { fi if use l7filter ; then - #yes choosing 2.6.20 was deliberate - upstream mistake possibly - if kernel_is ge 2 6 20 - then - L7_PATCH=iptables-1.4-for-kernel-2.6.20forward-layer7-${L7_PV}.patch - else - eerror "Currently there is no l7-filter patch available for this" - eerror "kernel iptables-1.4 and kernel version pre 2.6.20." - eerror "If you need to compile iptables 1.4.x against Linux 2.6.19.x" - eerror "or earlier, with l7-filter patch, please, report upstream." - die "No patch available." - fi - EPATCH_OPTS="-p1" epatch "${WORKDIR}"/${L7_P}/${L7_PATCH} - chmod +x extensions/.layer7-test* + EPATCH_OPTS="-p1" epatch \ + "${WORKDIR}"/${L7_P}/iptables-1.4-for-kernel-2.6.20forward-layer7-${L7_PV}.patch + chmod +x extensions/.layer7-test fi if ! use extensions ; then @@ -141,6 +131,7 @@ src_defs() { export KBUILD_OUTPUT=${KERNEL_DIR} diemsg="failure" else + export KERNEL_DIR diemsg="failure - with l7filter and/or imq patch and/or other miscellanious patches added" fi export diemsg @@ -196,10 +187,4 @@ pkg_postinst() { ewarn " net.ipv6.ip_forward = 1" ewarn "for ipv6." fi - if has_version '=net-firewall/iptables-1.2*' ; then - ewarn - ewarn "When upgrading from iptables-1.2.x, you may be unable to remove" - ewarn "rules added with iptables-1.2.x. This is a known issue, please see:" - ewarn "http://bugs.gentoo.org/92535" - fi } |