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

Contents of /net-misc/freeswan/freeswan-2.02.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


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

1 # Copyright 1999-2004 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/freeswan/freeswan-2.02.ebuild,v 1.2 2004/02/21 08:20:09 mr_bones_ Exp $
4
5 inherit eutils
6
7 X509_PATCH=1.4.6
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/x509-${X509_PATCH}-${P}.tar.gz"
12
13 HOMEPAGE="http://www.freeswan.org"
14 DEPEND="virtual/glibc
15 virtual/linux-sources
16 >=dev-libs/gmp-3.1.1
17 net-misc/host"
18 LICENSE="GPL-2"
19 RDEPEND=""
20 SLOT="0"
21 KEYWORDS="~x86 -sparc"
22
23 pkg_setup() {
24 [ -d /usr/src/linux/net/ipsec ] || {
25 echo You need to have the crypto-enabled version of Gentoo Sources
26 echo with a symlink to it in /usr/src/linux in order to have IPSec
27 echo kernel compatibility.
28
29 exit 1
30 }
31 }
32
33 src_unpack() {
34 unpack ${A}
35
36 cd ${S}
37 epatch ${FILESDIR}/${P}-gentoo.patch
38 cp ${WORKDIR}/x509-${X509_PATCH}\-${P}/freeswan.diff \
39 ${WORKDIR}/x509-${X509_PATCH}\-${P}/freeswan.diff.old
40 sed 's:/etc/ipsec.d:/etc/ipsec/ipsec.d:g' \
41 ${WORKDIR}/x509-${X509_PATCH}-${P}/freeswan.diff.old > \
42 ${WORKDIR}/x509-${X509_PATCH}-${P}/freeswan.diff
43 epatch ${WORKDIR}/x509-${X509_PATCH}-${P}/freeswan.diff
44 }
45
46 src_compile() {
47
48 make \
49 DESTDIR=${D} \
50 USERCOMPILE="${CFLAGS}" \
51 FINALCONFDIR=/etc/ipsec \
52 INC_RCDEFAULT=/etc/init.d \
53 INC_USRLOCAL=/usr \
54 INC_MANDIR=share/man \
55 confcheck programs || die
56 }
57
58 src_install () {
59
60 # try make prefix=${D}/usr install
61
62 make \
63 DESTDIR=${D} \
64 USERCOMPILE="${CFLAGS}" \
65 FINALCONFDIR=/etc/ipsec \
66 INC_RCDEFAULT=/etc/init.d \
67 INC_USRLOCAL=/usr \
68 INC_MANDIR=share/man \
69 install || die
70
71 newdoc ${WORKDIR}/x509-${X509_PATCH}-${P}/README README.x509
72 newdoc ${WORKDIR}/x509-${X509_PATCH}-${P}/CHANGES CHANGES.x509
73 newdoc ${WORKDIR}/x509-${X509_PATCH}-${P}/ipsec.secrets.template ipsec.secrets.x509
74 dodoc INSTALL COPYING CREDITS BUGS CHANGES README doc/*
75 dosym /etc/ipsec/ipsec.d /etc/ipsec.d
76 dosym /etc/ipsec/ipsec.conf /etc/ipsec.conf
77
78 exeinto /etc/init.d/
79 doexe ${FILESDIR}/ipsec
80 }
81

  ViewVC Help
Powered by ViewVC 1.1.20