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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Tue May 8 15:37:23 2012 UTC (2 years, 3 months ago) by ranger
Branch: MAIN
Changes since 1.4: +2 -2 lines
Marking iptables-1.4.13 ppc64 for bug 414329

(Portage version: 2.1.10.49/cvs/Linux ppc64)

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

  ViewVC Help
Powered by ViewVC 1.1.20