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

Diff of /net-misc/freeswan/freeswan-1.98b.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.7 Revision 1.8
1# Copyright 1999-2003 Gentoo Technologies, Inc. 1# Copyright 1999-2003 Gentoo Technologies, Inc.
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/net-misc/freeswan/Attic/freeswan-1.98b.ebuild,v 1.7 2003/05/29 00:43:00 weeve Exp $ 3# $Header: /var/cvsroot/gentoo-x86/net-misc/freeswan/Attic/freeswan-1.98b.ebuild,v 1.8 2003/09/05 22:01:48 msterret Exp $
4 4
5S=${WORKDIR}/${P} 5S=${WORKDIR}/${P}
6DESCRIPTION="FreeS/WAN IPSec Userspace Utilities with X.509 Patches" 6DESCRIPTION="FreeS/WAN IPSec Userspace Utilities with X.509 Patches"
7SRC_URI="ftp://ftp.xs4all.nl/pub/crypto/freeswan/${P}.tar.gz 7SRC_URI="ftp://ftp.xs4all.nl/pub/crypto/freeswan/${P}.tar.gz
8 http://www.strongsec.com/freeswan/x509patch-0.9.13-${P}.tar.gz" 8 http://www.strongsec.com/freeswan/x509patch-0.9.13-${P}.tar.gz"
9 9
10HOMEPAGE="http://www.freeswan.org" 10HOMEPAGE="http://www.freeswan.org"
11DEPEND="virtual/glibc 11DEPEND="virtual/glibc
12 virtual/linux-sources 12 virtual/linux-sources
13 >=dev-libs/gmp-3.1.1" 13 >=dev-libs/gmp-3.1.1"
14LICENSE="GPL-2" 14LICENSE="GPL-2"
15RDEPEND="" 15RDEPEND=""
16SLOT="0" 16SLOT="0"
17KEYWORDS="x86 -sparc " 17KEYWORDS="x86 -sparc "
18 18
19pkg_setup() { 19pkg_setup() {
20 [ -d /usr/src/linux/net/ipsec ] || { 20 [ -d /usr/src/linux/net/ipsec ] || {
21 echo You need to have the crypto-enabled version of Gentoo Sources 21 echo You need to have the crypto-enabled version of Gentoo Sources
22 echo with a symlink to it in /usr/src/linux in order to have IPSec 22 echo with a symlink to it in /usr/src/linux in order to have IPSec
23 echo kernel compatibility. Please emerge sys-kernel/crypto-sources, 23 echo kernel compatibility. Please emerge sys-kernel/crypto-sources,
24 echo compile an IPSec-enabled kernel and attempt this ebuild again. 24 echo compile an IPSec-enabled kernel and attempt this ebuild again.
25 exit 1 25 exit 1
26 } 26 }
27} 27}
28 28
29src_compile() { 29src_compile() {
30 30
31 patch -p1 < ${FILESDIR}/freeswan-gentoo-cflags.patch || die 31 patch -p1 < ${FILESDIR}/freeswan-gentoo-cflags.patch || die
32 patch -p1 < ${WORKDIR}/x509patch-0.9.13-${P}/freeswan.diff || die 32 patch -p1 < ${WORKDIR}/x509patch-0.9.13-${P}/freeswan.diff || die
33 make \ 33 make \
34 DESTDIR=${D} \ 34 DESTDIR=${D} \
35 USERCOMPILE="${CFLAGS}" \ 35 USERCOMPILE="${CFLAGS}" \
36 FINALCONFDIR=/etc/ipsec \ 36 FINALCONFDIR=/etc/ipsec \
37 INC_RCDEFAULT=/etc/init.d \ 37 INC_RCDEFAULT=/etc/init.d \
39 INC_MANDIR=share/man \ 39 INC_MANDIR=share/man \
40 confcheck programs || die 40 confcheck programs || die
41} 41}
42 42
43src_install () { 43src_install () {
44 44
45 # try make prefix=${D}/usr install 45 # try make prefix=${D}/usr install
46 46
47 make \ 47 make \
48 DESTDIR=${D} \ 48 DESTDIR=${D} \
49 USERCOMPILE="${CFLAGS}" \ 49 USERCOMPILE="${CFLAGS}" \

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

  ViewVC Help
Powered by ViewVC 1.1.20