/[gentoo-x86]/net-firewall/iptables/iptables-1.4.6.ebuild
Gentoo

Contents of /net-firewall/iptables/iptables-1.4.6.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (hide annotations) (download)
Thu Jun 10 07:20:36 2010 UTC (4 years, 3 months ago) by pva
Branch: MAIN
Changes since 1.5: +3 -2 lines
Add blocker on >=linux-headers-2.6.33, bug #323333, thank Jack Lloyd for report. Drop old.
(Portage version: 2.1.8.3/cvs/Linux x86_64)

1 phajdan.jr 1.2 # Copyright 1999-2010 Gentoo Foundation
2 vapier 1.1 # Distributed under the terms of the GNU General Public License v2
3 pva 1.6 # $Header: /var/cvsroot/gentoo-x86/net-firewall/iptables/iptables-1.4.6.ebuild,v 1.5 2010/05/24 12:10:27 nixnut Exp $
4 vapier 1.1
5     inherit eutils toolchain-funcs
6    
7     DESCRIPTION="Linux kernel (2.4+) firewall, NAT and packet mangling tools"
8     HOMEPAGE="http://www.iptables.org/"
9     SRC_URI="http://iptables.org/projects/iptables/files/${P}.tar.bz2"
10    
11     LICENSE="GPL-2"
12     SLOT="0"
13 nixnut 1.5 KEYWORDS="alpha amd64 arm ~hppa ia64 m68k ~mips ppc ~ppc64 s390 sh sparc x86"
14 vapier 1.1 IUSE="ipv6"
15    
16 pva 1.6 DEPEND="virtual/os-headers
17     !>=sys-kernel/linux-headers-2.6.33"
18 vapier 1.1 RDEPEND=""
19    
20     src_unpack() {
21     unpack ${P}.tar.bz2
22     cd "${S}"
23     epatch_user
24     }
25    
26     src_compile() {
27     econf \
28     --sbindir=/sbin \
29     --libexecdir=/$(get_libdir) \
30     --enable-devel \
31     --enable-libipq \
32     --enable-shared \
33     --enable-static \
34     $(use_enable ipv6)
35     emake V=1 || die
36     }
37    
38     src_install() {
39     emake install DESTDIR="${D}" || die
40    
41     insinto /usr/include
42     doins include/iptables.h $(use ipv6 && echo include/ip6tables.h) || die
43     insinto /usr/include/iptables
44     doins include/iptables/internal.h || die
45    
46     keepdir /var/lib/iptables
47     newinitd "${FILESDIR}"/${PN}-1.3.2.init iptables || die
48     newconfd "${FILESDIR}"/${PN}-1.3.2.confd iptables || die
49     if use ipv6 ; then
50     keepdir /var/lib/ip6tables
51     newinitd "${FILESDIR}"/iptables-1.3.2.init ip6tables || die
52     newconfd "${FILESDIR}"/ip6tables-1.3.2.confd ip6tables || die
53     fi
54     }

  ViewVC Help
Powered by ViewVC 1.1.20