Version bump #157850 by Blu3.
authorMike Frysinger <vapier@gentoo.org>
Thu, 14 Dec 2006 05:43:35 +0000 (05:43 +0000)
committerMike Frysinger <vapier@gentoo.org>
Thu, 14 Dec 2006 05:43:35 +0000 (05:43 +0000)
Package-Manager: portage-2.1.2_rc3

net-firewall/iptables/ChangeLog
net-firewall/iptables/Manifest
net-firewall/iptables/files/digest-iptables-1.3.7 [new file with mode: 0644]
net-firewall/iptables/iptables-1.3.7.ebuild [new file with mode: 0644]

index c39444a1ff50673964b8af2a666464a4e3cb4f46..069d78cfcb083d4ed1fc48ea30001d423b8adab8 100644 (file)
@@ -1,6 +1,11 @@
 # ChangeLog for net-firewall/iptables
 # Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-firewall/iptables/ChangeLog,v 1.120 2006/11/11 08:25:00 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-firewall/iptables/ChangeLog,v 1.121 2006/12/14 05:43:35 vapier Exp $
+
+*iptables-1.3.7 (14 Dec 2006)
+
+  14 Dec 2006; Mike Frysinger <vapier@gentoo.org> +iptables-1.3.7.ebuild:
+  Version bump #157850 by Blu3.
 
   11 Nov 2006; Mike Frysinger <vapier@gentoo.org>
   files/ip6tables-1.3.2.confd, files/iptables-1.3.2.confd,
index eb3ad3f5c19f8f41e93bdbfcbe2f273892daca18..03ef73d46eb80b36b81ebc2aa7907e08c1e4c2dd 100644 (file)
@@ -85,6 +85,7 @@ DIST iptables-1.2.11.tar.bz2 156988 RMD160 66e0fa391444a1e169feaf2fc67b5f8622ec1
 DIST iptables-1.3.0-imq1.diff 5369 RMD160 8ca1fa3bfea02d27232d8d8cb0a12586dd4537b5 SHA1 bdf665cacc985fceaadf119ae7a756caca1589ad SHA256 0f9d36e48b3f1e83ef9e1d39c19e7271a889a31c65c396c416200eb143f1795b
 DIST iptables-1.3.5.tar.bz2 191820 RMD160 3364e0f37f67ba4aa9ac9caa6f11adb67887e528 SHA1 6dbeeee13517fa02852960b6f6e51115c7548a09 SHA256 1d8ee8634d167b0f1a8872b6547910c11bae676699faf2b4bc2c84a128449c3c
 DIST iptables-1.3.6.tar.bz2 185438 RMD160 54d9777f2116ad57253446c42619c726f68ae8f0 SHA1 d0c873b4ce1a928424f38fa8419c96be22fef5d0 SHA256 4394c3de8c55776e54a36a6fcd4f9eeed381f451883049f8268c34c3482f5f1b
+DIST iptables-1.3.7.tar.bz2 196205 RMD160 8109f2d58eb33905bbbbc0cf871abc8172e7ddc0 SHA1 2f25e7a81fb3e81f92b0121d9dcd5a536854dc60 SHA256 0e00cea0029eaf7923a4a901265d5aa8159804b520fda9c12df54d350073ce02
 DIST netfilter-layer7-v2.1.tar.gz 89247 RMD160 cd2d455a16761b4fe2318d6d8a5671a535176d62 SHA1 5dc0c9bd1e3df3110cf724f3437a4b68d62b4dd3 SHA256 5022e8a349135f67045f4add47405af0d626c90a5e8b86ee01745755946e1390
 DIST netfilter-layer7-v2.2.tar.gz 88944 RMD160 cf421e6ef4acf5b9107feacaee6566d55ad21683 SHA1 55eaad3b4e46feff09910cd5e3c76c57ac12dc58 SHA256 e82cc356ece2bea3da2bb4b467063a96337ced4bde6127a44f0296245e74d57d
 DIST netfilter-layer7-v2.3.tar.gz 105587 RMD160 4c5c5315cf1f193c9ceb605d8d9d9328b515c64d SHA1 cfbe80a6c5725732e4935692e4b0cf5b42abd4f0 SHA256 4a5e4475d05c8d0998e56d12e8e27eb9acf23ce80a53000783b2f609a6bb33aa
@@ -117,10 +118,14 @@ EBUILD iptables-1.3.6.ebuild 5727 RMD160 3942518924aa00b35b57572814cc691b64586d5
 MD5 bda128f763227c8cb2c899f8f5bf014b iptables-1.3.6.ebuild 5727
 RMD160 3942518924aa00b35b57572814cc691b64586d5a iptables-1.3.6.ebuild 5727
 SHA256 c5719408d68a0b487239b5b171f6e19f0e1b00857c0c1185ecf65e051dcbdd47 iptables-1.3.6.ebuild 5727
-MISC ChangeLog 24801 RMD160 46bd0e8bdbd001943cec276c7f9d8c445ac11416 SHA1 9af853ab5f98caee272d15525f53f2bf5b28b561 SHA256 3c8542cfb6b52adf17dc35bb18bbad6fb026ddd3e978f06289ea9056e7ec4658
-MD5 1291760c8789e8049ee661b06e957648 ChangeLog 24801
-RMD160 46bd0e8bdbd001943cec276c7f9d8c445ac11416 ChangeLog 24801
-SHA256 3c8542cfb6b52adf17dc35bb18bbad6fb026ddd3e978f06289ea9056e7ec4658 ChangeLog 24801
+EBUILD iptables-1.3.7.ebuild 5638 RMD160 0b01c444e88d9f95c49e5374da64d1a139c289eb SHA1 645e9363e0f9f108467c6ddf90a545ce3fe20516 SHA256 b8340918650c629900f105c7204c051e91da79308d75a26b998c60bdb3a4c8d4
+MD5 627e13b8f7242d1866d67a1b7bc943c7 iptables-1.3.7.ebuild 5638
+RMD160 0b01c444e88d9f95c49e5374da64d1a139c289eb iptables-1.3.7.ebuild 5638
+SHA256 b8340918650c629900f105c7204c051e91da79308d75a26b998c60bdb3a4c8d4 iptables-1.3.7.ebuild 5638
+MISC ChangeLog 24939 RMD160 9f4634861b7c6e761efc49c8baa9286c3311147d SHA1 feb820883bdfe31a056855e5e3e5f7dfae9bbdf9 SHA256 d66b94184c710d350a8121cc7ca96a8313a63f96fb96be927674aa375bda5d69
+MD5 9cd288be458809a8b4ccd7a03b593f92 ChangeLog 24939
+RMD160 9f4634861b7c6e761efc49c8baa9286c3311147d ChangeLog 24939
+SHA256 d66b94184c710d350a8121cc7ca96a8313a63f96fb96be927674aa375bda5d69 ChangeLog 24939
 MISC metadata.xml 164 RMD160 f43cbec30b7074319087c9acffdb9354b17b0db3 SHA1 9c213f5803676c56439df3716be07d6692588856 SHA256 f5f2891f2a4791cd31350bb2bb572131ad7235cd0eeb124c9912c187ac10ce92
 MD5 9a09f8d531c582e78977dbfd96edc1f2 metadata.xml 164
 RMD160 f43cbec30b7074319087c9acffdb9354b17b0db3 metadata.xml 164
@@ -146,10 +151,13 @@ SHA256 65f1e644901e9411fbb3f8a2787a839d3fbd941134d8b25314976a495a9a0938 files/di
 MD5 0f737b6bda361096558683003e58e97d files/digest-iptables-1.3.6-r1 759
 RMD160 9ac216fda9f8372cfc4a7feb3ced6586eaacf2d6 files/digest-iptables-1.3.6-r1 759
 SHA256 b6cdf0da6f3681548aea7cd05500b00660b64d95f4d6d6196267c2535dc190d0 files/digest-iptables-1.3.6-r1 759
+MD5 79bea5d76920d2f926a66430f16f6721 files/digest-iptables-1.3.7 759
+RMD160 36a4ee766ed7ddf2e1e3cd6297d2003c7d29c35a files/digest-iptables-1.3.7 759
+SHA256 dff59639aecf693dc4a6bcdf0e5540b4d8006d5b034708a6f8d392f8d5fa0830 files/digest-iptables-1.3.7 759
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.5 (GNU/Linux)
 
-iD8DBQFFVYjlamhnQswr0vIRArNOAKCTjJ2KthvppYrbASABPmKrsQES5wCfWffy
-tWPfHUwPcf7QsG4s7dt/X58=
-=t9QR
+iD8DBQFFgOTFamhnQswr0vIRAtoWAKCsbs+GcvNOM1b4/prxa+CrNnK7/ACgkovS
+M5ahqutj7aO4tyvoT+s6XYU=
+=Zwar
 -----END PGP SIGNATURE-----
diff --git a/net-firewall/iptables/files/digest-iptables-1.3.7 b/net-firewall/iptables/files/digest-iptables-1.3.7
new file mode 100644 (file)
index 0000000..98dbc3a
--- /dev/null
@@ -0,0 +1,9 @@
+MD5 9adae8be9562775a176fc1b275b3cb29 iptables-1.3.0-imq1.diff 5369
+RMD160 8ca1fa3bfea02d27232d8d8cb0a12586dd4537b5 iptables-1.3.0-imq1.diff 5369
+SHA256 0f9d36e48b3f1e83ef9e1d39c19e7271a889a31c65c396c416200eb143f1795b iptables-1.3.0-imq1.diff 5369
+MD5 dd965bdacbb86ce2a6498829fddda6b7 iptables-1.3.7.tar.bz2 196205
+RMD160 8109f2d58eb33905bbbbc0cf871abc8172e7ddc0 iptables-1.3.7.tar.bz2 196205
+SHA256 0e00cea0029eaf7923a4a901265d5aa8159804b520fda9c12df54d350073ce02 iptables-1.3.7.tar.bz2 196205
+MD5 58135cd1aafaf4ae2fa478159206f064 netfilter-layer7-v2.6.tar.gz 122514
+RMD160 31b68ae3baa0a340f2e4a555fd5124c3b977629d netfilter-layer7-v2.6.tar.gz 122514
+SHA256 c5a842c037e915eb72576e5861f0b048837719f1edf448775d9218b42c48e0aa netfilter-layer7-v2.6.tar.gz 122514
diff --git a/net-firewall/iptables/iptables-1.3.7.ebuild b/net-firewall/iptables/iptables-1.3.7.ebuild
new file mode 100644 (file)
index 0000000..4acae23
--- /dev/null
@@ -0,0 +1,180 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-firewall/iptables/iptables-1.3.7.ebuild,v 1.1 2006/12/14 05:43:35 vapier Exp $
+
+inherit eutils flag-o-matic toolchain-funcs linux-info
+
+L7_PV="2.6"
+L7_P="netfilter-layer7-v${L7_PV}"
+L7_PATCH="iptables-layer7-${L7_PV}.patch"
+IMQ_PATCH="iptables-1.3.0-imq1.diff"
+
+DESCRIPTION="Linux kernel (2.4+) firewall, NAT and packet mangling tools"
+HOMEPAGE="http://www.iptables.org/ http://www.linuximq.net/ http://l7-filter.sf.net/"
+SRC_URI="http://iptables.org/projects/iptables/files/${P}.tar.bz2
+       imq? ( http://www.linuximq.net/patchs/${IMQ_PATCH} )
+       l7filter? ( mirror://sourceforge/l7-filter/${L7_P}.tar.gz )"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+IUSE="extensions imq ipv6 l7filter static"
+
+DEPEND="virtual/os-headers
+       l7filter? ( virtual/linux-sources )
+       imq? ( virtual/linux-sources )"
+RDEPEND=""
+
+pkg_setup() {
+       if use l7filter || use imq || use extensions ; then
+               ewarn "WARNING: 3rd party extensions has been enabled."
+               ewarn "This means that iptables will use your currently installed"
+               ewarn "kernel in ${KERNEL_DIR} as headers for iptables."
+               ewarn
+               if use extensions ; then
+                       ewarn "You may have to patch your kernel to allow iptables to build."
+                       ewarn "Please check http://ftp.netfilter.org/pub/patch-o-matic-ng/snapshot/ for patches"
+                       ewarn "for your kernel."
+                       ewarn
+               fi
+               linux-info_pkg_setup
+       fi
+
+       if use l7filter && \
+               [ ! -f "${KERNEL_DIR}/net/ipv4/netfilter/ipt_layer7.c" ]; then
+               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
+               die "For IMQ support add a patch from http://www.linuximq.net/patches.html to your kernel"
+       fi
+}
+
+src_unpack() {
+       unpack ${P}.tar.bz2
+       use l7filter && unpack ${L7_P}.tar.gz
+       cd "${S}"
+
+       EPATCH_OPTS="-p0" \
+       epatch "${FILESDIR}"/1.3.1-files/install_ipv6_apps.patch
+       EPATCH_OPTS="-p1" \
+       epatch "${FILESDIR}"/1.3.1-files/install_all_dev_files.patch-1.3.1
+
+       # this provide's grsec's stealth match
+       EPATCH_OPTS="-p0" \
+       epatch "${FILESDIR}"/1.3.1-files/grsecurity-1.2.8-iptables.patch-1.3.1
+       sed -i \
+               -e "s/PF_EXT_SLIB:=/PF_EXT_SLIB:=stealth /g" \
+               extensions/Makefile || die "failed to enable stealth extension"
+
+       EPATCH_OPTS="-p1" \
+       epatch "${FILESDIR}"/1.3.1-files/${PN}-1.3.1-compilefix.patch
+
+       if use imq ; then
+               EPATCH_OPTS="-p1" epatch "${DISTDIR}"/${IMQ_PATCH}
+               chmod +x extensions/{.IMQ-test*,.childlevel-test*}
+       fi
+       if use l7filter ; then
+               EPATCH_OPTS="-p1" epatch "${WORKDIR}"/${L7_P}/${L7_PATCH}
+               chmod +x extensions/.layer7-test*
+       fi
+
+       # the net directory is moving around so account for new/old locations
+       cd "${S}"/extensions
+       local x
+       for x in .*-test* ; do
+               sed -e 's:net/ipv[46]/netfilter:net/netfilter:g' ${x} > .new-${x}
+               if cmp ${x} .new-${x} > /dev/null ; then
+                       rm -f .new-${x}
+               else
+                       chmod a+rx .new-${x}
+               fi
+       done
+}
+
+src_defs() {
+       # these are used in both of src_compile and src_install
+       myconf=""
+       myconf="${myconf} PREFIX="
+       myconf="${myconf} LIBDIR=/$(get_libdir)"
+       myconf="${myconf} BINDIR=/sbin"
+       myconf="${myconf} MANDIR=/usr/share/man"
+       myconf="${myconf} INCDIR=/usr/include"
+       # iptables and libraries are now installed to /sbin and /lib, so that
+       # systems with remote network-mounted /usr filesystems can get their
+       # network interfaces up and running correctly without /usr.
+       use ipv6 || myconf="${myconf} DO_IPV6=0"
+       use static && myconf="${myconf} NO_SHARED_LIBS=0"
+       export myconf
+       if ! use l7filter && ! use imq && ! use extensions ; then
+               export KERNEL_DIR="/usr"
+               diemsg="failure"
+       else
+               diemsg="failure - with l7filter or imq patch added"
+       fi
+       export diemsg
+}
+
+src_compile() {
+       src_defs
+
+       # iptables will NOT work correctly unless -O[123] are present!
+       replace-flags -O0 -O2
+       get-flag -O || append-flags -O2
+
+       emake -j1 \
+               COPT_FLAGS="${CFLAGS}" ${myconf} \
+               KERNEL_DIR="${KERNEL_DIR}" \
+               CC="$(tc-getCC)" \
+               || die "${diemsg}"
+}
+
+src_install() {
+       src_defs
+       make ${myconf} \
+               DESTDIR="${D}" \
+               KERNEL_DIR="${KERNEL_DIR}" \
+               install install-devel || die "${diemsg}"
+
+       dodir /usr/$(get_libdir)
+       mv -f "${D}"/$(get_libdir)/*.a "${D}"/usr/$(get_libdir)
+
+       keepdir /var/lib/iptables
+       newinitd "${FILESDIR}"/${PN}-1.3.2.init iptables
+       newconfd "${FILESDIR}"/${PN}-1.3.2.confd iptables
+
+       if use ipv6 ; then
+               keepdir /var/lib/ip6tables
+               newinitd "${FILESDIR}"/iptables-1.3.2.init ip6tables
+               newconfd "${FILESDIR}"/ip6tables-1.3.2.confd ip6tables
+       fi
+}
+
+pkg_postinst() {
+       einfo "This package now includes an initscript which loads and saves"
+       einfo "rules stored in /var/lib/iptables/rules-save"
+       use ipv6 && einfo "and /var/lib/ip6tables/rules-save"
+       einfo "This location can be changed in /etc/conf.d/iptables"
+       einfo
+       einfo "If you are using the iptables initsscript you should save your"
+       einfo "rules using the new iptables version before rebooting."
+       einfo
+       einfo "If you are upgrading to a >=2.4.21 kernel you may need to rebuild"
+       einfo "iptables."
+       einfo
+       ewarn "!!! ipforwarding is not a part of the iptables initscripts."
+       einfo
+       einfo "To enable ipforwarding at bootup:"
+       einfo "/etc/sysctl.conf and set net.ipv4.ip_forward = 1"
+       if use ipv6 ; then
+               einfo "and/or"
+               einfo "  net.ipv6.ip_forward = 1"
+               einfo "for ipv6."
+       fi
+       if has_version '=net-firewall/iptables-1.2*' ; then
+               echo
+               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
+}