/[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.5 - (hide annotations) (download)
Mon Dec 9 04:33:15 2002 UTC (17 years, 4 months ago) by manson
Branch: MAIN
CVS Tags: GENTOO_1_4_SNAP_2003010800
Changes since 1.4: +2 -2 lines
12-08-02 Keyword change remove sparc64 Rodney Rees manson@gentoo.org

1 ashmodai 1.1 # Copyright 1999-2002 Gentoo Technologies, Inc.
2 vapier 1.4 # Distributed under the terms of the GNU General Public License v2
3 manson 1.5 # $Header: /home/cvsroot/gentoo-x86/net-misc/freeswan/freeswan-1.98b.ebuild,v 1.4 2002/10/04 06:11:21 vapier 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     virtual/linux-sources
13     >=dev-libs/gmp-3.1.1"
14     LICENSE="GPL-2"
15     RDEPEND=""
16     SLOT="0"
17 manson 1.5 KEYWORDS="x86 sparc "
18 ashmodai 1.1
19     pkg_setup() {
20     [ -d /usr/src/linux/net/ipsec ] || {
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
23     echo kernel compatibility. Please emerge sys-kernel/crypto-sources,
24     echo compile an IPSec-enabled kernel and attempt this ebuild again.
25     exit 1
26     }
27     }
28    
29     src_compile() {
30    
31     patch -p1 < ${FILESDIR}/freeswan-gentoo-cflags.patch || die
32     patch -p1 < ${WORKDIR}/x509patch-0.9.13-${P}/freeswan.diff || die
33     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    
45     # 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