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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (hide annotations) (download)
Tue Jun 26 04:36:01 2012 UTC (2 years, 4 months ago) by zmedico
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +3 -3 lines
inherit multilib for get_libdir

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

1 zmedico 1.10 # Copyright 1999-2012 Gentoo Foundation
2 pva 1.1 # Distributed under the terms of the GNU General Public License v2
3 zmedico 1.10 # $Header: /var/cvsroot/gentoo-x86/net-firewall/iptables/iptables-1.4.10.ebuild,v 1.9 2011/01/13 18:56:23 ranger Exp $
4 pva 1.1
5     EAPI="2"
6    
7     # Force users doing their own patches to install their own tools
8     AUTOTOOLS_AUTO_DEPEND=no
9    
10 zmedico 1.10 inherit eutils multilib toolchain-funcs autotools
11 pva 1.1
12     DESCRIPTION="Linux kernel (2.4+) firewall, NAT and packet mangling tools"
13     HOMEPAGE="http://www.iptables.org/"
14     SRC_URI="http://iptables.org/projects/iptables/files/${P}.tar.bz2"
15    
16     LICENSE="GPL-2"
17     SLOT="0"
18 ranger 1.9 KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86"
19 pva 1.1 IUSE="ipv6"
20    
21     DEPEND="virtual/os-headers"
22     RDEPEND=""
23    
24     src_prepare() {
25     # Only run autotools if user patched something
26     epatch_user && eautoreconf || elibtoolize
27     }
28    
29     src_configure() {
30     econf \
31     --sbindir=/sbin \
32     --libexecdir=/$(get_libdir) \
33     --enable-devel \
34     --enable-libipq \
35     --enable-shared \
36     --enable-static \
37     $(use_enable ipv6)
38     }
39    
40     src_compile() {
41     emake V=1 || die
42     }
43    
44     src_install() {
45     emake install DESTDIR="${D}" || die
46     dosbin iptables-apply || die
47     doman iptables-apply.8 || die
48     dodoc INCOMPATIBILITIES iptables.xslt || die
49    
50     insinto /usr/include
51     doins include/iptables.h $(use ipv6 && echo include/ip6tables.h) || die
52     insinto /usr/include/iptables
53     doins include/iptables/internal.h || die
54    
55     keepdir /var/lib/iptables
56     newinitd "${FILESDIR}"/${PN}-1.3.2.init iptables || die
57     newconfd "${FILESDIR}"/${PN}-1.3.2.confd iptables || die
58     if use ipv6 ; then
59     keepdir /var/lib/ip6tables
60     newinitd "${FILESDIR}"/iptables-1.3.2.init ip6tables || die
61     newconfd "${FILESDIR}"/ip6tables-1.3.2.confd ip6tables || die
62     fi
63    
64     # Move important libs to /lib
65     gen_usr_ldscript -a ip{4,6}tc ipq iptc xtables
66     find "${D}" -type f -name '*.la' -exec rm -rf '{}' '+' || die "la removal failed"
67     }

  ViewVC Help
Powered by ViewVC 1.1.20