/[gentoo-x86]/net-misc/freeswan/freeswan-1.98b-r1.ebuild
Gentoo

Contents of /net-misc/freeswan/freeswan-1.98b-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Tue Jun 8 21:04:55 2004 UTC (15 years, 6 months ago) by mr_bones_
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +1 -1 lines
FILE REMOVED
clean out older ebuilds

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.98b-r1.ebuild,v 1.9 2004/02/21 08:20:09 mr_bones_ Exp $
4
5 X509_PATCH=0.9.15
6 S=${WORKDIR}/${P}
7 DESCRIPTION="FreeS/WAN IPSec Userspace Utilities with X.509 Patches"
8 SRC_URI="ftp://ftp.xs4all.nl/pub/crypto/freeswan/${P}.tar.gz
9 http://www.strongsec.com/freeswan/x509patch-${X509_PATCH}-${P}.tar.gz"
10
11 HOMEPAGE="http://www.freeswan.org"
12 DEPEND="virtual/glibc
13 virtual/linux-sources
14 >=dev-libs/gmp-3.1.1"
15 LICENSE="GPL-2"
16 RDEPEND=""
17 SLOT="0"
18 KEYWORDS="x86 -sparc"
19
20 pkg_setup() {
21 [ -d /usr/src/linux/net/ipsec ] || {
22 echo You need to have the crypto-enabled version of Gentoo Sources
23 echo with a symlink to it in /usr/src/linux in order to have IPSec
24 echo kernel compatibility. Please emerge sys-kernel/crypto-sources,
25 echo compile an IPSec-enabled kernel and attempt this ebuild again.
26 exit 1
27 }
28 }
29
30 src_unpack() {
31 unpack ${A}
32
33 cd ${S}
34 patch -p1 < ${FILESDIR}/freeswan-gentoo-cflags.patch || die
35 sed 's:/etc/ipsec.d:/etc/ipsec/ipsec.d:g' ${WORKDIR}/x509patch-${X509_PATCH}-${P}/freeswan.diff | patch -p1 || die
36 }
37
38 src_compile() {
39
40 make \
41 DESTDIR=${D} \
42 USERCOMPILE="${CFLAGS}" \
43 FINALCONFDIR=/etc/ipsec \
44 INC_RCDEFAULT=/etc/init.d \
45 INC_USRLOCAL=/usr \
46 INC_MANDIR=share/man \
47 confcheck programs || die
48 }
49
50 src_install () {
51
52 # try make prefix=${D}/usr install
53
54 make \
55 DESTDIR=${D} \
56 USERCOMPILE="${CFLAGS}" \
57 FINALCONFDIR=/etc/ipsec \
58 INC_RCDEFAULT=/etc/init.d \
59 INC_USRLOCAL=/usr \
60 INC_MANDIR=share/man \
61 install || die
62
63 newdoc ${WORKDIR}/x509patch-${X509_PATCH}-${P}/README README.x509
64 newdoc ${WORKDIR}/x509patch-${X509_PATCH}-${P}/CHANGES CHANGES.x509
65 newdoc ${WORKDIR}/x509patch-${X509_PATCH}-${P}/ipsec.secrets.template ipsec.secrets.x509
66 dodoc INSTALL COPYING CREDITS BUGS CHANGES README doc/*
67 }
68

  ViewVC Help
Powered by ViewVC 1.1.20