/[gentoo-x86]/net-misc/freeswan/freeswan-1.99-r1.ebuild
Gentoo

Contents of /net-misc/freeswan/freeswan-1.99-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (hide annotations) (download)
Thu Jul 8 22:48:45 2004 UTC (15 years, 7 months ago) by pfeifer
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Remove net-misc/freeswan from tree. All users should now use strongswan or openswan. Userspace support is now in gentoo-sources-2.4.26-r4.

1 agriffis 1.2 # Copyright 1999-2004 Gentoo Foundation
2 pfeifer 1.1 # Distributed under the terms of the GNU General Public License v2
3 pfeifer 1.4 # $Header: /var/cvsroot/gentoo-x86/net-misc/freeswan/freeswan-1.99-r1.ebuild,v 1.3 2004/07/01 21:00:22 squinky86 Exp $
4 pfeifer 1.1
5     inherit eutils
6    
7     X509_PATCH=0.9.41
8     S=${WORKDIR}/${P}
9     DESCRIPTION="FreeS/WAN IPSec Userspace Utilities with X.509 Patches"
10     SRC_URI="ftp://ftp.xs4all.nl/pub/crypto/freeswan/${P}.tar.gz
11     http://www.strongsec.com/freeswan/x509patch-${X509_PATCH}-${P}.tar.gz"
12    
13     HOMEPAGE="http://www.freeswan.org"
14 squinky86 1.3 DEPEND="virtual/libc
15 pfeifer 1.1 virtual/linux-sources
16     >=dev-libs/gmp-3.1.1
17     sys-apps/iproute2"
18     LICENSE="GPL-2"
19     RDEPEND=""
20     SLOT="0"
21     KEYWORDS="x86 -sparc"
22     IUSE=""
23    
24     pkg_setup() {
25     [ -d /usr/src/linux/net/ipsec ] || {
26     echo You need to have the crypto-enabled version of Gentoo Sources
27     echo with a symlink to it in /usr/src/linux in order to have IPSec
28     echo kernel compatibility.
29     # exit 1
30     }
31     }
32    
33     src_unpack() {
34     unpack ${A} ; cd ${S}
35     epatch ${FILESDIR}/freeswan-gentoo-cflags.patch
36     epatch ${FILESDIR}/${P}-spi.c.patch
37    
38     sed -i 's:/etc/ipsec.d:/etc/ipsec/ipsec.d:g' ${WORKDIR}/x509patch-${X509_PATCH}-${P}/freeswan.diff
39     epatch ${WORKDIR}/x509patch-${X509_PATCH}-${P}/freeswan.diff
40     }
41    
42     src_compile() {
43    
44     make \
45     DESTDIR=${D} \
46     USERCOMPILE="${CFLAGS}" \
47     FINALCONFDIR=/etc/ipsec \
48     INC_RCDEFAULT=/etc/init.d \
49     INC_USRLOCAL=/usr \
50     INC_MANDIR=share/man \
51     confcheck programs || die
52     }
53    
54     src_install () {
55    
56     # try make prefix=${D}/usr install
57    
58     make \
59     DESTDIR=${D} \
60     USERCOMPILE="${CFLAGS}" \
61     FINALCONFDIR=/etc/ipsec \
62     INC_RCDEFAULT=/etc/init.d \
63     INC_USRLOCAL=/usr \
64     INC_MANDIR=share/man \
65     install || die
66    
67     newdoc ${WORKDIR}/x509patch-${X509_PATCH}-${P}/README README.x509
68     newdoc ${WORKDIR}/x509patch-${X509_PATCH}-${P}/CHANGES CHANGES.x509
69     newdoc ${WORKDIR}/x509patch-${X509_PATCH}-${P}/ipsec.secrets.template ipsec.secrets.x509
70     dodoc INSTALL COPYING CREDITS BUGS CHANGES README doc/*
71     dosym /etc/ipsec/ipsec.d /etc/ipsec.d
72     }
73    

  ViewVC Help
Powered by ViewVC 1.1.20