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

Contents of /net-firewall/ipsec-tools/ipsec-tools-0.2.4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Wed Apr 7 00:19:31 2004 UTC (10 years, 7 months ago) by latexer
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
Bump for security issue. See bug #47013

1 # Copyright 1999-2004 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /home/cvsroot/gentoo-x86/net-firewall/ipsec-tools/ipsec-tools-0.2.4.ebuild,v 1.4 2004/03/06 23:44:38 plasmaroo Exp $
4
5 DESCRIPTION="IPsec-Tools is a port of KAME's IPsec utilities to the Linux-2.6 IPsec implementation."
6 HOMEPAGE="http://ipsec-tools.sourceforge.net/"
7 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
8 LICENSE="BSD"
9 KEYWORDS="~x86 amd64"
10 SLOT="0"
11 IUSE=""
12 DEPEND="virtual/glibc
13 >=dev-libs/openssl-0.9.6"
14
15 pkg_setup() {
16 my_KV=`echo ${KV} | cut -f-2 -d "."`
17 if [ ${my_KV} != "2.6" ] ; then
18 echo; eerror "You need a 2.6.x kernel to use the ipsec tools!"; die "You need a 2.6 kernel to use ipsec-tools!"
19 fi
20 }
21
22 src_compile() {
23 unset CC
24 ./configure --prefix=/usr --sysconfdir=/etc --with-kernel-headers=/usr/src/linux/include || die
25 sed -e 's:AM_CFLAGS = :AM_CFLAGS = -include /usr/src/linux/include/linux/compiler.h :' -i src/setkey/Makefile || die
26 sed -e 's:CPPFLAGS=:CPPFLAGS = -include /usr/src/linux/include/linux/compiler.h :' -i src/racoon/Makefile || die
27 sed -e 's:va_copy:__va_copy:g' -i src/racoon/plog.c || die # GCC 2 Fix
28 emake || die
29 }
30
31 src_install() {
32 einstall || die
33 rm ${D}/usr/bin
34 dosbin src/racoon/racoon
35 dodoc ChangeLog README NEWS
36 insinto /etc && doins ${FILESDIR}/ipsec.conf.sample
37 insinto /etc/conf.d && newins ${FILESDIR}/racoon.conf.d racoon
38 exeinto /etc/init.d && newexe ${FILESDIR}/racoon.init.d racoon
39 }

  ViewVC Help
Powered by ViewVC 1.1.20