diff options
author | Daniel Ahlberg <aliz@gentoo.org> | 2004-06-28 19:03:56 +0000 |
---|---|---|
committer | Daniel Ahlberg <aliz@gentoo.org> | 2004-06-28 19:03:56 +0000 |
commit | 3b3fd0fcadda0ba2bcdb1f1b52bc3e113d7fb0be (patch) | |
tree | 4b7bc421a4ec4c0d3968fc2b6a9960951eeb297c /net-firewall | |
parent | Huge cleanup of old obsolete files. (Manifest recommit) (diff) | |
download | gentoo-2-3b3fd0fcadda0ba2bcdb1f1b52bc3e113d7fb0be.tar.gz gentoo-2-3b3fd0fcadda0ba2bcdb1f1b52bc3e113d7fb0be.tar.bz2 gentoo-2-3b3fd0fcadda0ba2bcdb1f1b52bc3e113d7fb0be.zip |
Revision bump.
Diffstat (limited to 'net-firewall')
-rw-r--r-- | net-firewall/iptables/Manifest | 2 | ||||
-rw-r--r-- | net-firewall/iptables/iptables-1.2.9-r2.ebuild | 56 |
2 files changed, 30 insertions, 28 deletions
diff --git a/net-firewall/iptables/Manifest b/net-firewall/iptables/Manifest index e24cb827ed31..8997a1b54922 100644 --- a/net-firewall/iptables/Manifest +++ b/net-firewall/iptables/Manifest @@ -1,5 +1,5 @@ MD5 e17c9bfee1f65cb1a80b6ea77ccbed7c iptables-1.2.7a-r3.ebuild 1959 -MD5 8e1a3feb5dd3edfce12db26ab92d29a2 iptables-1.2.9-r2.ebuild 4476 +MD5 cbe3c57135c1c88a0a970ebecf65b1c8 iptables-1.2.9-r2.ebuild 4741 MD5 9cd0905c67f2b36d434811cdd13cf14c iptables-1.2.9.ebuild 2777 MD5 15b500a507f8a161618d173a656922fa iptables-1.2.9-r1.ebuild 3496 MD5 a8363be7d747fe0b455126b622628f9d ChangeLog 11322 diff --git a/net-firewall/iptables/iptables-1.2.9-r2.ebuild b/net-firewall/iptables/iptables-1.2.9-r2.ebuild index 111ceb4a4748..5581939f4673 100644 --- a/net-firewall/iptables/iptables-1.2.9-r2.ebuild +++ b/net-firewall/iptables/iptables-1.2.9-r2.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-firewall/iptables/iptables-1.2.9-r2.ebuild,v 1.3 2004/06/24 22:41:09 agriffis Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-firewall/iptables/iptables-1.2.9-r2.ebuild,v 1.4 2004/06/28 19:03:56 aliz Exp $ inherit eutils flag-o-matic @@ -13,11 +13,9 @@ SLOT="0" KEYWORDS="-*" #KEYWORDS="x86 ~ppc sparc ~mips alpha arm hppa amd64 ia64" IUSE="ipv6 static extensions" - -# iptables is dependent on kernel sources. Strange but true. DEPEND="virtual/linux-sources" -pkg_preinst() { +pkg_setup() { if use extensions; then einfo "WARNING: 3rd party extensions has been enabled." einfo "This means that iptables will use your currently installed" @@ -31,36 +29,35 @@ pkg_preinst() { src_unpack() { - replace-flags -O0 -O2 + unpack ${A} ; cd ${S} - if [ -z `get-flag O` ]; then - append-flags -O2 - fi + epatch ${FILESDIR}/${PV}-files/04_all_install_ipv6_apps.patch.bz2 + epatch ${FILESDIR}/${PV}-files/05_all_install_all_dev_files.patch.bz2 - unpack ${A} ; cd ${S} + # The folowing hack is needed because ${ARCH} is "sparc" and not "sparc64" + # and epatch uses ??_${ARCH}_foo.${EPATCH_SUFFIX} when reading from directories + [ "${PROFILE_ARCH}" = "sparc64" ] && epatch ${FILESDIR}/${PV}-files/sparc64_limit_fix.patch.bz2 + use hppa && epatch ${FILESDIR}/${PV}-files/03_hppa_gentoo.patch.bz2 if use extensions; then - epatch ${FILESDIR}/extensions/${P}-grsecurity.patch.bz2 - epatch ${FILESDIR}/extensions/${P}-imq.patch.bz2 - epatch ${FILESDIR}/extensions/${P}-l7.patch.bz2 + epatch ${FILESDIR}/${PV}-files/01_all_grsecurity.patch.bz2 + epatch ${FILESDIR}/${PV}-files/02_all_imq.patch.bz2 + epatch ${FILESDIR}/${PV}-files/06_all_l7.patch.bz2 chmod +x extensions/.IMQ-test* chmod +x extensions/.childlevel-test* chmod +x extensions/.layer7-test* fi - # The folowing hack is needed because ${ARCH} is "sparc" and not "sparc64" - # and epatch uses ??_${ARCH}_foo.${EPATCH_SUFFIX} when reading from directories - [ "${PROFILE_ARCH}" = "sparc64" ] && epatch ${FILESDIR}/sparc64_limit_fix.patch.bz2 - usr hppa && epatch ${FILESDIR}/${P}-hppa.patch.bz2 sed -i -e "s:-O2:${CFLAGS} -Iinclude:g" -e "s:/usr/local::g" -e "s:-Iinclude/::" Makefile } src_compile() { - # Only check_KV if /usr/src/linux exists - if [ -L ${ROOT}/usr/src/linux -o -d ${ROOT}/usr/src/linux ]; then - check_KV + replace-flags -O0 -O2 + + if [ -z `get-flag O` ]; then + append-flags -O2 fi # prevent it from causing ICMP errors. @@ -75,16 +72,21 @@ src_compile() { use static && myconf="${myconf} NO_SHARED_LIBS=0" if use extensions; then + # Only check_KV if /usr/src/linux exists + if [ -L ${ROOT}/usr/src/linux -o -d ${ROOT}/usr/src/linux ]; then + check_KV + else + ewarn "You don't have kernel sources available at /usr/src/linux." + ewarn "Iptables will be built against linux-headers." + fi + make ${myconf} \ LIBDIR=/lib \ BINDIR=/sbin \ MANDIR=/usr/share/man \ INCDIR=/usr/include \ KERNEL_DIR=/usr/src/linux \ - || ( - eerror "Please check http://cvs.iptables.org/patch-o-matic-ng/updates/ if your kernel needs to be patched for iptables" - die - ) + || die "Please check http://cvs.iptables.org/patch-o-matic-ng/updates/ if your kernel needs to be patched for iptables" else make ${myconf} \ LIBDIR=/lib \ @@ -107,16 +109,16 @@ src_install() { dodoc COPYING dodir /var/lib/iptables ; keepdir /var/lib/iptables exeinto /etc/init.d - newexe ${FILESDIR}/${PF}.init iptables + newexe ${FILESDIR}/${PN}-${PV}-r1.init iptables insinto /etc/conf.d - newins ${FILESDIR}/${PF}.confd iptables + newins ${FILESDIR}/${PN}-${PV}-r1.confd iptables if use ipv6; then dodir /var/lib/ip6tables ; keepdir /var/lib/ip6tables exeinto /etc/init.d - newexe ${FILESDIR}/${PF/iptables/ip6tables}.init ip6tables + newexe ${FILESDIR}/${PN/iptables/ip6tables}-${PV}-r1.init ip6tables insinto /etc/conf.d - newins ${FILESDIR}/${PF/iptables/ip6tables}.confd ip6tables + newins ${FILESDIR}/${PN/iptables/ip6tables}-${PV}-r1.confd ip6tables fi } |