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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

1 mr_bones_ 1.9 # Copyright 1999-2004 Gentoo Technologies, Inc.
2 vapier 1.4 # Distributed under the terms of the GNU General Public License v2
3 mr_bones_ 1.10 # $Header: /var/cvsroot/gentoo-x86/net-misc/freeswan/freeswan-1.98b.ebuild,v 1.9 2004/02/21 08:20:09 mr_bones_ Exp $
4 ashmodai 1.1
5     S=${WORKDIR}/${P}
6     DESCRIPTION="FreeS/WAN IPSec Userspace Utilities with X.509 Patches"
7     SRC_URI="ftp://ftp.xs4all.nl/pub/crypto/freeswan/${P}.tar.gz
8     http://www.strongsec.com/freeswan/x509patch-0.9.13-${P}.tar.gz"
9    
10     HOMEPAGE="http://www.freeswan.org"
11     DEPEND="virtual/glibc
12 msterret 1.8 virtual/linux-sources
13 ashmodai 1.1 >=dev-libs/gmp-3.1.1"
14     LICENSE="GPL-2"
15     RDEPEND=""
16     SLOT="0"
17 weeve 1.7 KEYWORDS="x86 -sparc "
18 ashmodai 1.1
19     pkg_setup() {
20 msterret 1.8 [ -d /usr/src/linux/net/ipsec ] || {
21 ashmodai 1.1 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
23 msterret 1.8 echo kernel compatibility. Please emerge sys-kernel/crypto-sources,
24 ashmodai 1.1 echo compile an IPSec-enabled kernel and attempt this ebuild again.
25     exit 1
26     }
27     }
28    
29     src_compile() {
30    
31 msterret 1.8 patch -p1 < ${FILESDIR}/freeswan-gentoo-cflags.patch || die
32     patch -p1 < ${WORKDIR}/x509patch-0.9.13-${P}/freeswan.diff || die
33 ashmodai 1.1 make \
34     DESTDIR=${D} \
35     USERCOMPILE="${CFLAGS}" \
36     FINALCONFDIR=/etc/ipsec \
37     INC_RCDEFAULT=/etc/init.d \
38     INC_USRLOCAL=/usr \
39     INC_MANDIR=share/man \
40     confcheck programs || die
41     }
42    
43     src_install () {
44 msterret 1.8
45 ashmodai 1.1 # try make prefix=${D}/usr install
46    
47     make \
48     DESTDIR=${D} \
49     USERCOMPILE="${CFLAGS}" \
50     FINALCONFDIR=/etc/ipsec \
51     INC_RCDEFAULT=/etc/init.d \
52     INC_USRLOCAL=/usr \
53     INC_MANDIR=share/man \
54     install || die
55    
56     newdoc ${WORKDIR}/x509patch-0.9.12-${P}/README README.x509
57     newdoc ${WORKDIR}/x509patch-0.9.12-${P}/CHANGES CHANGES.x509
58     newdoc ${WORKDIR}/x509patch-0.9.12-${P}/ipsec.secrets.template ipsec.secrets.x509
59     dodoc INSTALL COPYING CREDITS BUGS CHANGES README doc/*
60     }
61    

  ViewVC Help
Powered by ViewVC 1.1.20