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

Diff of /net-firewall/iptables/iptables-1.4.12.1-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.1 Revision 1.2
1# Copyright 1999-2011 Gentoo Foundation 1# Copyright 1999-2011 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/net-firewall/iptables/iptables-1.4.12.1-r1.ebuild,v 1.1 2011/09/19 07:45:40 pva Exp $ 3# $Header: /var/cvsroot/gentoo-x86/net-firewall/iptables/iptables-1.4.12.1-r1.ebuild,v 1.2 2011/12/30 12:01:22 scarabeus Exp $
4 4
5EAPI="4" 5EAPI="4"
6 6
7# Force users doing their own patches to install their own tools 7# Force users doing their own patches to install their own tools
8AUTOTOOLS_AUTO_DEPEND=no 8AUTOTOOLS_AUTO_DEPEND=no
14SRC_URI="http://iptables.org/projects/iptables/files/${P}.tar.bz2" 14SRC_URI="http://iptables.org/projects/iptables/files/${P}.tar.bz2"
15 15
16LICENSE="GPL-2" 16LICENSE="GPL-2"
17SLOT="0" 17SLOT="0"
18KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" 18KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
19IUSE="ipv6 netlink" 19IUSE="ipv6 netlink static-libs"
20 20
21COMMON_DEPEND=" 21RDEPEND="
22 netlink? ( net-libs/libnfnetlink ) 22 netlink? ( net-libs/libnfnetlink )
23" 23"
24DEPEND=" 24DEPEND="${RDEPEND}
25 ${COMMON_DEPEND}
26 virtual/os-headers 25 virtual/os-headers
27 sys-devel/automake 26 sys-devel/automake
28" 27"
29RDEPEND="
30 ${COMMON_DEPEND}
31"
32 28
33src_prepare() { 29src_prepare() {
30 epatch \
34 epatch "${FILESDIR}/iptables-1.4.12.1-lm.patch" 31 "${FILESDIR}/iptables-1.4.12.1-lm.patch" \
35 epatch "${FILESDIR}/iptables-1.4.12.1-conntrack-v2-ranges.patch" 32 "${FILESDIR}/iptables-1.4.12.1-conntrack-v2-ranges.patch"
36 eautomake 33 eautomake
37 34
38 # Only run autotools if user patched something 35 # Only run autotools if user patched something
39 epatch_user && eautoreconf || elibtoolize 36 epatch_user && eautoreconf || elibtoolize
40} 37}
47 --sbindir=/sbin \ 44 --sbindir=/sbin \
48 --libexecdir=/$(get_libdir) \ 45 --libexecdir=/$(get_libdir) \
49 --enable-devel \ 46 --enable-devel \
50 --enable-libipq \ 47 --enable-libipq \
51 --enable-shared \ 48 --enable-shared \
52 --enable-static \ 49 $(use-enable static-libs static) \
53 $(use_enable ipv6) 50 $(use_enable ipv6)
54} 51}
55 52
56src_compile() { 53src_compile() {
57 emake V=1 54 emake V=1
58} 55}
59 56
60src_install() { 57src_install() {
61 emake install DESTDIR="${D}" 58 default
62 dodoc INCOMPATIBILITIES iptables/iptables.xslt 59 dodoc INCOMPATIBILITIES iptables/iptables.xslt
63 60
64 # all the iptables binaries are in /sbin, so might as well 61 # all the iptables binaries are in /sbin, so might as well
65 # put these small files in with them 62 # put these small files in with them
66 into / 63 into /

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.20