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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

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

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.20