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

Contents of /net-firewall/ipsec-tools/ipsec-tools-0.4.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.4.ebuild,v 1.2 2005/01/11 03:11:01 latexer Exp $
4
5 inherit eutils
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.gz"
10 LICENSE="BSD"
11 KEYWORDS="~x86 ~amd64 ~sparc"
12 SLOT="0"
13 IUSE="selinux"
14 DEPEND="virtual/libc
15 >=dev-libs/openssl-0.9.6"
16 RDEPEND="${DEPEND}
17 selinux? ( sec-policy/selinux-ipsec-tools )"
18
19 pkg_setup() {
20 my_KV=`echo ${KV} | cut -f-2 -d "."`
21 if [ ${my_KV} != "2.6" ] ; then
22 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!"
23 fi
24 }
25
26 src_unpack() {
27 unpack ${A}
28 cd ${S}
29 epatch ${FILESDIR}/${P}-gcc34.diff
30 }
31
32 src_compile() {
33 unset CC
34 ./configure --prefix=/usr --sysconfdir=/etc --with-kernel-headers=/usr/src/linux/include || die
35 sed -e 's:AM_CFLAGS = :AM_CFLAGS = -include /usr/src/linux/include/linux/compiler.h :' -i src/setkey/Makefile || die
36 sed -e 's:CPPFLAGS=:CPPFLAGS = -include /usr/src/linux/include/linux/compiler.h :' -i src/racoon/Makefile || die
37 sed -e 's:va_copy:__va_copy:g' -i src/racoon/plog.c || die # GCC 2 Fix
38 emake || die
39 }
40
41 src_install() {
42 einstall || die
43 rm ${D}/usr/bin
44 dosbin src/racoon/racoon
45 insinto /etc && doins ${FILESDIR}/ipsec.conf.sample
46 insinto /etc/conf.d && newins ${FILESDIR}/racoon.conf.d racoon
47 exeinto /etc/init.d && newexe ${FILESDIR}/racoon.init.d racoon
48
49 dodoc ChangeLog README NEWS
50 dodoc ${S}/src/racoon/samples/racoon.conf.sample*
51 }

  ViewVC Help
Powered by ViewVC 1.1.20