/[gentoo-x86]/net-misc/freeswan/freeswan-1.99.ebuild
Gentoo

Contents of /net-misc/freeswan/freeswan-1.99.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.13 - (show annotations) (download)
Thu Jun 24 01:43:11 2004 UTC (15 years, 7 months ago) by pfeifer
Branch: MAIN
CVS Tags: HEAD
Changes since 1.12: +1 -1 lines
FILE REMOVED
Updates to x509 for some security fixes. Preparation for move to open/strongswan.

1 # Copyright 1999-2004 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/freeswan/freeswan-1.99.ebuild,v 1.12 2004/04/27 21:34:49 agriffis Exp $
4
5 inherit eutils
6
7 X509_PATCH=0.9.34
8 S=${WORKDIR}/${P}
9 DESCRIPTION="FreeS/WAN IPSec Userspace Utilities with X.509 Patches"
10 SRC_URI="ftp://ftp.xs4all.nl/pub/crypto/freeswan/${P}.tar.gz
11 http://www.strongsec.com/freeswan/x509patch-${X509_PATCH}-${P}.tar.gz"
12
13 HOMEPAGE="http://www.freeswan.org"
14 DEPEND="virtual/glibc
15 virtual/linux-sources
16 >=dev-libs/gmp-3.1.1
17 sys-apps/iproute2"
18 LICENSE="GPL-2"
19 RDEPEND=""
20 SLOT="0"
21 KEYWORDS="x86 -sparc"
22
23 pkg_setup() {
24 [ -d /usr/src/linux/net/ipsec ] || {
25 echo You need to have the crypto-enabled version of Gentoo Sources
26 echo with a symlink to it in /usr/src/linux in order to have IPSec
27 echo kernel compatibility.
28 # exit 1
29 }
30 }
31
32 src_unpack() {
33 unpack ${A} ; cd ${S}
34 epatch ${FILESDIR}/freeswan-gentoo-cflags.patch
35 epatch ${FILESDIR}/${P}-spi.c.patch
36
37 sed -i 's:/etc/ipsec.d:/etc/ipsec/ipsec.d:g' ${WORKDIR}/x509patch-${X509_PATCH}-${P}/freeswan.diff
38 epatch ${WORKDIR}/x509patch-${X509_PATCH}-${P}/freeswan.diff
39 }
40
41 src_compile() {
42
43 make \
44 DESTDIR=${D} \
45 USERCOMPILE="${CFLAGS}" \
46 FINALCONFDIR=/etc/ipsec \
47 INC_RCDEFAULT=/etc/init.d \
48 INC_USRLOCAL=/usr \
49 INC_MANDIR=share/man \
50 confcheck programs || die
51 }
52
53 src_install () {
54
55 # try make prefix=${D}/usr install
56
57 make \
58 DESTDIR=${D} \
59 USERCOMPILE="${CFLAGS}" \
60 FINALCONFDIR=/etc/ipsec \
61 INC_RCDEFAULT=/etc/init.d \
62 INC_USRLOCAL=/usr \
63 INC_MANDIR=share/man \
64 install || die
65
66 newdoc ${WORKDIR}/x509patch-${X509_PATCH}-${P}/README README.x509
67 newdoc ${WORKDIR}/x509patch-${X509_PATCH}-${P}/CHANGES CHANGES.x509
68 newdoc ${WORKDIR}/x509patch-${X509_PATCH}-${P}/ipsec.secrets.template ipsec.secrets.x509
69 dodoc INSTALL COPYING CREDITS BUGS CHANGES README doc/*
70 dosym /etc/ipsec/ipsec.d /etc/ipsec.d
71 }
72

  ViewVC Help
Powered by ViewVC 1.1.20