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

Contents of /net-firewall/iptables/iptables-1.4.11.1-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (hide annotations) (download)
Sat Aug 13 17:21:16 2011 UTC (2 years, 8 months ago) by maekke
Branch: MAIN
Changes since 1.4: +2 -2 lines
arm stable, bug #376881

(Portage version: 2.1.10.10/cvs/Linux i686)

1 pva 1.1 # Copyright 1999-2011 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 maekke 1.5 # $Header: /var/cvsroot/gentoo-x86/net-firewall/iptables/iptables-1.4.11.1-r2.ebuild,v 1.4 2011/08/07 03:12:44 phajdan.jr Exp $
4 pva 1.1
5     EAPI="4"
6    
7     # Force users doing their own patches to install their own tools
8     AUTOTOOLS_AUTO_DEPEND=no
9    
10     inherit eutils toolchain-funcs autotools
11    
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 maekke 1.5 KEYWORDS="~alpha amd64 arm ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh ~sparc x86"
19 pva 1.1 IUSE="ipv6 netlink"
20    
21     COMMON_DEPEND="
22     netlink? ( net-libs/libnfnetlink )
23     "
24     DEPEND="
25     ${COMMON_DEPEND}
26     virtual/os-headers
27     sys-devel/automake
28     "
29     RDEPEND="
30     ${COMMON_DEPEND}
31     "
32    
33     src_prepare() {
34     # Only run autotools if user patched something
35     epatch "${FILESDIR}/${P}-man-fixes.patch"
36     eautomake
37     epatch_user && eautoreconf || elibtoolize
38     }
39    
40     src_configure() {
41     sed -i \
42     -e "/nfnetlink=[01]/s:=[01]:=$(use netlink && echo 1 || echo 0):" \
43     configure
44     econf \
45     --sbindir=/sbin \
46     --libexecdir=/$(get_libdir) \
47     --enable-devel \
48     --enable-libipq \
49     --enable-shared \
50     --enable-static \
51     $(use_enable ipv6)
52     }
53    
54     src_compile() {
55     emake V=1
56     }
57    
58     src_install() {
59     emake install DESTDIR="${D}"
60     dodoc INCOMPATIBILITIES iptables/iptables.xslt
61    
62     # all the iptables binaries are in /sbin, so might as well
63     # put these small files in with them
64     into /
65     dosbin iptables/iptables-apply
66     dosym iptables-apply /sbin/ip6tables-apply
67     doman iptables/iptables-apply.8
68    
69     insinto /usr/include
70     doins include/iptables.h $(use ipv6 && echo include/ip6tables.h)
71     insinto /usr/include/iptables
72     doins include/iptables/internal.h
73    
74     keepdir /var/lib/iptables
75     newinitd "${FILESDIR}"/${PN}-1.4.11.init iptables
76     newconfd "${FILESDIR}"/${PN}-1.3.2.confd iptables
77     if use ipv6 ; then
78     keepdir /var/lib/ip6tables
79     newinitd "${FILESDIR}"/iptables-1.4.11.init ip6tables
80     newconfd "${FILESDIR}"/ip6tables-1.3.2.confd ip6tables
81     fi
82    
83     # Move important libs to /lib
84     gen_usr_ldscript -a ip{4,6}tc ipq iptc xtables
85     find "${ED}" -type f -name '*.la' -exec rm -rf '{}' '+' || die "la removal failed"
86     }

  ViewVC Help
Powered by ViewVC 1.1.20