/[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.9 - (hide annotations) (download)
Tue Jun 26 04:36:01 2012 UTC (2 years, 2 months ago) by zmedico
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +3 -3 lines
inherit multilib for get_libdir

(Portage version: 2.2.0_alpha113/cvs/Linux i686)

1 zmedico 1.9 # Copyright 1999-2012 Gentoo Foundation
2 vapier 1.1 # Distributed under the terms of the GNU General Public License v2
3 zmedico 1.9 # $Header: /var/cvsroot/gentoo-x86/net-firewall/iptables/iptables-1.4.6.ebuild,v 1.8 2010/09/06 20:51:27 ranger Exp $
4 vapier 1.1
5 zmedico 1.9 inherit eutils multilib toolchain-funcs
6 vapier 1.1
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 ranger 1.8 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