# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 DESCRIPTION="IPsec-Tools is a port of KAME's IPsec utilities to the Linux-2.6 IPsec implementation." HOMEPAGE="http://ipsec-tools.sourceforge.net/" SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" LICENSE="BSD" KEYWORDS="~x86 ~alpha" SLOT="0" IUSE="" DEPEND="virtual/glibc >=dev-libs/openssl-0.9.7" pkg_setup() { [ ${KV/2.6*/} ] && { val="You need a 2.6.x kernel to use the ipsec tools!"; echo; eerror ${val}; die ${val}; } } src_compile() { unset CC ./bootstrap ./configure --prefix=/usr --sysconfdir=/etc || die emake || die } src_install() { einstall || die dodoc ChangeLog README NEWS insinto /etc && doins ${FILESDIR}/ipsec.conf.sample insinto /etc/conf.d && newins ${FILESDIR}/racoon.conf.d racoon exeinto /etc/init.d && newexe ${FILESDIR}/racoon.init.d racoon }