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

Contents of /net-firewall/ipsec-tools/ipsec-tools-0.5.2.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, 8 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.2.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 epunt_cxx
28 libtoolize --force --copy || die
29 aclocal -I . || die
30 autoconf || die
31 }
32
33 src_compile() {
34 # Filter the c3 flag for now. Probably a GCC problem, but we'll
35 # avoid it here for now. See bug #61025
36 filter-flags -march=c3
37
38 econf \
39 $(use_enable ipv6) \
40 --enable-frag \
41 --enable-hybrid \
42 --enable-dpd \
43 --enable-natt \
44 --enable-adminport \
45 || die
46 # Removed due to some problems
47 #--enable-samode-unspec \
48 emake -j1 || die
49 }
50
51 src_install() {
52 einstall || die
53 keepdir /var/lib/racoon
54 insinto /etc/conf.d && newins ${FILESDIR}/racoon.conf.d racoon
55 exeinto /etc/init.d && newexe ${FILESDIR}/racoon.init.d racoon
56
57 dodoc ChangeLog README NEWS
58 dodoc ${S}/src/racoon/samples/racoon.conf.sample*
59 }

  ViewVC Help
Powered by ViewVC 1.1.20