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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Thu Jun 24 01:43:11 2004 UTC (15 years, 6 months ago) by pfeifer
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
Updates to x509 for some security fixes. Preparation for move to open/strongswan.

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.04.ebuild,v 1.4 2004/04/21 16:22:46 vapier Exp $
4
5 inherit eutils
6
7 X509_PATCH=1.4.8
8 DESCRIPTION="FreeS/WAN IPSec Userspace Utilities with X.509 Patches"
9 HOMEPAGE="http://www.freeswan.org"
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 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="~x86 -sparc"
16 IUSE=""
17
18 DEPEND="virtual/glibc
19 virtual/linux-sources
20 >=dev-libs/gmp-3.1.1
21 net-misc/host
22 sys-apps/iproute2"
23 RDEPEND=""
24
25 pkg_setup() {
26 [ -d ${ROOT}/usr/src/linux/net/ipsec ] || {
27 echo You need to have the crypto-enabled version of Gentoo Sources
28 echo with a symlink to it in /usr/src/linux in order to have IPSec
29 echo kernel compatibility.
30 die
31 }
32 }
33
34 src_unpack() {
35 unpack ${A}
36
37 cd ${S}
38 epatch ${FILESDIR}/${P}-gentoo.patch
39 cp ${WORKDIR}/x509-${X509_PATCH}\-${P}/freeswan.diff \
40 ${WORKDIR}/x509-${X509_PATCH}\-${P}/freeswan.diff.old
41 sed 's:/etc/ipsec.d:/etc/ipsec/ipsec.d:g' \
42 ${WORKDIR}/x509-${X509_PATCH}-${P}/freeswan.diff.old > \
43 ${WORKDIR}/x509-${X509_PATCH}-${P}/freeswan.diff
44 epatch ${WORKDIR}/x509-${X509_PATCH}-${P}/freeswan.diff
45 }
46
47 src_compile() {
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 # try make prefix=${D}/usr install
60 make \
61 DESTDIR=${D} \
62 USERCOMPILE="${CFLAGS}" \
63 FINALCONFDIR=/etc/ipsec \
64 INC_RCDEFAULT=/etc/init.d \
65 INC_USRLOCAL=/usr \
66 INC_MANDIR=share/man \
67 install || die
68
69 newdoc ${WORKDIR}/x509-${X509_PATCH}-${P}/README README.x509
70 newdoc ${WORKDIR}/x509-${X509_PATCH}-${P}/CHANGES CHANGES.x509
71 newdoc ${WORKDIR}/x509-${X509_PATCH}-${P}/ipsec.secrets.template ipsec.secrets.x509
72 dodoc INSTALL CREDITS BUGS CHANGES README doc/*
73 dosym /etc/ipsec/ipsec.d /etc/ipsec.d
74 dosym /etc/ipsec/ipsec.conf /etc/ipsec.conf
75
76 exeinto /etc/init.d/
77 doexe ${FILESDIR}/ipsec
78 }

  ViewVC Help
Powered by ViewVC 1.1.20