| 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.6.2-r1.ebuild,v 1.3 2005/12/04 22:15:24 latexer Exp $
|
| 4 |
|
| 5 |
inherit eutils flag-o-matic
|
| 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 x86"
|
| 12 |
SLOT="0"
|
| 13 |
IUSE="idea ipv6 pam rc5 readline selinux"
|
| 14 |
|
| 15 |
DEPEND="virtual/libc
|
| 16 |
>=sys-kernel/linux-headers-2.6
|
| 17 |
readline? ( sys-libs/readline )
|
| 18 |
pam? ( sys-libs/pam )
|
| 19 |
>=dev-libs/openssl-0.9.6"
|
| 20 |
|
| 21 |
RDEPEND="${DEPEND}
|
| 22 |
selinux? ( sec-policy/selinux-ipsec-tools )"
|
| 23 |
|
| 24 |
src_unpack() {
|
| 25 |
unpack ${A}
|
| 26 |
cd ${S}
|
| 27 |
sed -i 's:#include <sys/sysctl.h>::' src/racoon/pfkey.c src/setkey/setkey.c
|
| 28 |
epatch ${FILESDIR}/${P}-dos-fix.diff
|
| 29 |
epunt_cxx
|
| 30 |
}
|
| 31 |
|
| 32 |
src_compile() {
|
| 33 |
# Filter the c3 flag for now. Probably a GCC problem, but we'll
|
| 34 |
# avoid it here for now. See bug #61025
|
| 35 |
filter-flags -march=c3
|
| 36 |
|
| 37 |
econf \
|
| 38 |
--enable-hybrid \
|
| 39 |
--enable-dpd \
|
| 40 |
--enable-natt \
|
| 41 |
--enable-adminport \
|
| 42 |
--enable-frag \
|
| 43 |
$(use_enable idea) \
|
| 44 |
$(use_enable rc5) \
|
| 45 |
$(use_enable ipv6) \
|
| 46 |
$(use_with readline) \
|
| 47 |
$(use_with pam libpam) \
|
| 48 |
|| die
|
| 49 |
# Removed due to some problems
|
| 50 |
# --enable-samode-unspec \
|
| 51 |
emake -j1 || die
|
| 52 |
}
|
| 53 |
|
| 54 |
src_install() {
|
| 55 |
einstall || die
|
| 56 |
keepdir /var/lib/racoon
|
| 57 |
insinto /etc/conf.d && newins ${FILESDIR}/racoon.conf.d racoon
|
| 58 |
exeinto /etc/init.d && newexe ${FILESDIR}/racoon.init.d racoon
|
| 59 |
|
| 60 |
dodoc ChangeLog README NEWS
|
| 61 |
dodoc ${S}/src/racoon/samples/racoon.conf.sample*
|
| 62 |
}
|