/[gentoo-x86]/net-firewall/ipsec-tools/ipsec-tools-0.6.5.ebuild
Gentoo

Contents of /net-firewall/ipsec-tools/ipsec-tools-0.6.5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Sat Jun 7 00:11:37 2008 UTC (6 years, 2 months ago) by swegener
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +1 -1 lines
FILE REMOVED
Cleanup.
(Portage version: 2.1.5.4)

1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-firewall/ipsec-tools/ipsec-tools-0.6.5.ebuild,v 1.6 2007/03/12 21:03:37 armin76 Exp $
4
5 inherit eutils flag-o-matic autotools
6
7 DESCRIPTION="IPsec-Tools is a port of KAME's IPsec utilities to the Linux-2.6 IPsec implementation."
8 HOMEPAGE="http://ipsec-tools.sourceforge.net/"
9 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
10 LICENSE="BSD"
11 KEYWORDS="amd64 ppc sparc x86"
12 SLOT="0"
13 IUSE="idea ipv6 pam rc5 readline selinux"
14
15 AT_M4DIR="${S}"
16
17 DEPEND="virtual/libc
18 !<sys-kernel/linux-headers-2.6
19 readline? ( sys-libs/readline )
20 pam? ( sys-libs/pam )
21 >=dev-libs/openssl-0.9.6"
22
23 RDEPEND="${DEPEND}
24 selinux? ( sec-policy/selinux-ipsec-tools )"
25
26 src_unpack() {
27 unpack ${A}
28 cd ${S}
29 sed -i 's:#include <sys/sysctl.h>::' src/racoon/pfkey.c src/setkey/setkey.c
30 sed -i 's:-Werror::g' ${S}/configure.ac
31 eautoreconf
32 epunt_cxx
33 }
34
35 src_compile() {
36 # Filter the c3 flag for now. Probably a GCC problem, but we'll
37 # avoid it here for now. See bug #61025
38 filter-flags -march=c3
39
40 econf \
41 --enable-hybrid \
42 --enable-dpd \
43 --enable-natt \
44 --enable-adminport \
45 --enable-frag \
46 $(use_enable idea) \
47 $(use_enable rc5) \
48 $(use_enable ipv6) \
49 $(use_with readline) \
50 $(use_with pam libpam) \
51 || die
52 # Removed due to some problems
53 # --enable-samode-unspec \
54 emake -j1 || die
55 }
56
57 src_install() {
58 einstall || die
59 keepdir /var/lib/racoon
60 insinto /etc/conf.d && newins ${FILESDIR}/racoon.conf.d racoon
61 exeinto /etc/init.d && newexe ${FILESDIR}/racoon.init.d racoon
62
63 dodoc ChangeLog README NEWS
64 dodoc ${S}/src/racoon/samples/racoon.conf.sample*
65 }

  ViewVC Help
Powered by ViewVC 1.1.20