/[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.1 - (hide annotations) (download)
Thu Jul 4 19:09:14 2002 UTC (17 years, 7 months ago) by ashmodai
Branch: MAIN
Forgot to add some files :-)

1 ashmodai 1.1 # Copyright 1999-2002 Gentoo Technologies, Inc.
2     # Distributed under the terms of the GNU General Public License, v2 or later
3     # $Header: $
4    
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    
18     pkg_setup() {
19     [ -d /usr/src/linux/net/ipsec ] || {
20     echo You need to have the crypto-enabled version of Gentoo Sources
21     echo with a symlink to it in /usr/src/linux in order to have IPSec
22     echo kernel compatibility. Please emerge sys-kernel/crypto-sources,
23     echo compile an IPSec-enabled kernel and attempt this ebuild again.
24     exit 1
25     }
26     }
27    
28     src_compile() {
29    
30     patch -p1 < ${FILESDIR}/freeswan-gentoo-cflags.patch || die
31     patch -p1 < ${WORKDIR}/x509patch-0.9.13-${P}/freeswan.diff || die
32     make \
33     DESTDIR=${D} \
34     USERCOMPILE="${CFLAGS}" \
35     FINALCONFDIR=/etc/ipsec \
36     INC_RCDEFAULT=/etc/init.d \
37     INC_USRLOCAL=/usr \
38     INC_MANDIR=share/man \
39     confcheck programs || die
40     }
41    
42     src_install () {
43    
44     # try make prefix=${D}/usr install
45    
46     make \
47     DESTDIR=${D} \
48     USERCOMPILE="${CFLAGS}" \
49     FINALCONFDIR=/etc/ipsec \
50     INC_RCDEFAULT=/etc/init.d \
51     INC_USRLOCAL=/usr \
52     INC_MANDIR=share/man \
53     install || die
54    
55     newdoc ${WORKDIR}/x509patch-0.9.12-${P}/README README.x509
56     newdoc ${WORKDIR}/x509patch-0.9.12-${P}/CHANGES CHANGES.x509
57     newdoc ${WORKDIR}/x509patch-0.9.12-${P}/ipsec.secrets.template ipsec.secrets.x509
58     dodoc INSTALL COPYING CREDITS BUGS CHANGES README doc/*
59     }
60    

  ViewVC Help
Powered by ViewVC 1.1.20