/[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.8 - (hide annotations) (download)
Fri Sep 5 22:01:48 2003 UTC (16 years, 5 months ago) by msterret
Branch: MAIN
Changes since 1.7: +7 -7 lines
whitespace cleanup

1 vapier 1.6 # Copyright 1999-2003 Gentoo Technologies, Inc.
2 vapier 1.4 # Distributed under the terms of the GNU General Public License v2
3 msterret 1.8 # $Header: /home/cvsroot/gentoo-x86/net-misc/freeswan/freeswan-1.98b.ebuild,v 1.7 2003/05/29 00:43:00 weeve 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