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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sun Dec 4 22:20:16 2005 UTC (8 years, 9 months 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-r1.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 ~ppc"
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 epatch ${FILESDIR}/${P}-isakmp-underrun.diff || die "epatch failed!"
28 epunt_cxx
29 }
30
31 src_compile() {
32 # Filter the c3 flag for now. Probably a GCC problem, but we'll
33 # avoid it here for now. See bug #61025
34 filter-flags -march=c3
35
36 econf \
37 --enable-hybrid \
38 --enable-dpd \
39 --enable-natt \
40 --enable-adminport \
41 --enable-frag \
42 $(use_enable ipv6) \
43 || die
44 # Removed due to some problems
45 # --enable-samode-unspec \
46 emake -j1 || die
47 }
48
49 src_install() {
50 einstall || die
51 keepdir /var/lib/racoon
52 insinto /etc/conf.d && newins ${FILESDIR}/racoon.conf.d racoon
53 exeinto /etc/init.d && newexe ${FILESDIR}/racoon.init.d racoon
54
55 dodoc ChangeLog README NEWS
56 dodoc ${S}/src/racoon/samples/racoon.conf.sample*
57 }

  ViewVC Help
Powered by ViewVC 1.1.20