From 9a0d0825ebc6b9d77e432dd99df4f34cf79b6e80 Mon Sep 17 00:00:00 2001 From: Daniel Ahlberg Date: Mon, 28 Jun 2004 19:03:56 +0000 Subject: Revision bump. --- net-firewall/iptables/Manifest | 2 +- net-firewall/iptables/iptables-1.2.9-r2.ebuild | 56 +++++++++++++------------- 2 files changed, 30 insertions(+), 28 deletions(-) (limited to 'net-firewall') diff --git a/net-firewall/iptables/Manifest b/net-firewall/iptables/Manifest index e24cb827ed31..420783ec9f93 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 1f97cc5c50754ec50a15a5b2ca5b6f52 iptables-1.2.9-r2.ebuild 4737 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 } -- cgit v1.2.3-65-gdbad