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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sun Dec 4 22:20:16 2005 UTC (8 years, 10 months ago) by latexer
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +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-r2.ebuild,v 1.2 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 epatch ${FILESDIR}/${P}-ipv6.diff || die "epatch failed!"
29 epunt_cxx
30 libtoolize --force --copy || die
31 aclocal -I . || die
32 autoconf || die
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 ipv6) \
47 || die
48 # Removed due to some problems
49 # --enable-samode-unspec \
50 emake -j1 || die
51 }
52
53 src_install() {
54 einstall || die
55 keepdir /var/lib/racoon
56 insinto /etc/conf.d && newins ${FILESDIR}/racoon.conf.d racoon
57 exeinto /etc/init.d && newexe ${FILESDIR}/racoon.init.d racoon
58
59 dodoc ChangeLog README NEWS
60 dodoc ${S}/src/racoon/samples/racoon.conf.sample*
61 }

  ViewVC Help
Powered by ViewVC 1.1.20