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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sun Dec 4 22:20:16 2005 UTC (9 years ago) by latexer
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Clean house.
(Portage version: 2.0.53)

1 # Copyright 1999-2005 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.5.ebuild,v 1.3 2005/06/25 13:35:49 swegener Exp $
4
5 inherit eutils flag-o-matic
6
7 MY_P=${P/_/-}
8
9 DESCRIPTION="IPsec-Tools is a port of KAME's IPsec utilities to the Linux-2.6 IPsec implementation."
10 HOMEPAGE="http://ipsec-tools.sourceforge.net/"
11 SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2"
12 LICENSE="BSD"
13 KEYWORDS="~x86 ~amd64"
14 SLOT="0"
15 IUSE="ipv6 selinux"
16 S=${WORKDIR}/${MY_P}
17 DEPEND="virtual/libc
18 >=sys-kernel/linux-headers-2.6
19 >=dev-libs/openssl-0.9.6"
20 RDEPEND="${DEPEND}
21 selinux? ( sec-policy/selinux-ipsec-tools )"
22
23 src_unpack() {
24 unpack ${A}
25 cd ${S}
26 sed -i 's:#include <sys/sysctl.h>::' src/racoon/pfkey.c src/setkey/setkey.c
27 epunt_cxx
28 }
29
30 src_compile() {
31 # Filter the c3 flag for now. Probably a GCC problem, but we'll
32 # avoid it here for now. See bug #61025
33 filter-flags -march=c3
34
35 econf \
36 --enable-hybrid \
37 --enable-dpd \
38 --enable-natt \
39 --enable-adminport \
40 --enable-frag \
41 $(use_enable ipv6) \
42 || die
43 # Removed due to some problems
44 # --enable-samode-unspec \
45 emake -j1 || die
46 }
47
48 src_install() {
49 einstall || die
50 keepdir /var/lib/racoon
51 insinto /etc/conf.d && newins ${FILESDIR}/racoon.conf.d racoon
52 exeinto /etc/init.d && newexe ${FILESDIR}/racoon.init.d racoon
53
54 dodoc ChangeLog README NEWS
55 dodoc ${S}/src/racoon/samples/racoon.conf.sample*
56 }

  ViewVC Help
Powered by ViewVC 1.1.20