/[gentoo-x86]/net-misc/openswan/openswan-1.0.6.ebuild
Gentoo

Contents of /net-misc/openswan/openswan-1.0.6.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Tue Nov 15 03:07:16 2005 UTC (13 years, 11 months ago) by pfeifer
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +1 -1 lines
FILE REMOVED
Version bump fixing bug #112568.
(Portage version: 2.0.53_rc7)

1 # Copyright 1999-2005 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/openswan/openswan-1.0.6.ebuild,v 1.6 2005/07/15 10:44:27 george Exp $
4
5 inherit eutils
6
7 MY_P=${P/_/}
8 S=${WORKDIR}/${MY_P}
9 DESCRIPTION="Open Source implementation of IPsec for the Linux operating system (was SuperFreeS/WAN)."
10 HOMEPAGE="http://www.openswan.org/"
11 SRC_URI="http://www.openswan.org/code/${MY_P}.tar.gz
12 mirror://gentoo/${MY_P}.tar.gz"
13
14 DEPEND="!net-misc/strongswan
15 virtual/libc
16 virtual/linux-sources
17 net-dns/host
18 >=dev-libs/gmp-3.1.1"
19 LICENSE="GPL-2"
20 RDEPEND=""
21 SLOT="0"
22 KEYWORDS="x86 ~ppc"
23 IUSE=""
24
25 pkg_setup() {
26 [ -d /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. Please emerge sys-kernel/crypto-sources,
30 echo compile an IPSec-enabled kernel and attempt this ebuild again.
31 die
32 }
33 }
34
35 src_unpack() {
36 unpack ${A}
37 }
38
39 src_compile() {
40 cp ${S}/libdes/Makefile ${S}/libdes/Makefile.orig
41 sed s:/usr/local:/usr:g < ${S}/libdes/Makefile.orig \
42 > ${S}/libdes/Makefile
43 cp ${S}/libdes/Makefile ${S}/libdes/Makefile.orig
44 sed s:/usr/man:/usr/share/man:g < ${S}/libdes/Makefile.orig \
45 > ${S}/libdes/Makefile
46
47 make \
48 DESTDIR=${D} \
49 USERCOMPILE="${CFLAGS}" \
50 FINALCONFDIR=/etc/ipsec \
51 INC_RCDEFAULT=/etc/init.d \
52 INC_USRLOCAL=/usr \
53 INC_MANDIR=share/man \
54 confcheck programs || die
55 }
56
57 src_install () {
58
59 # try make prefix=${D}/usr install
60
61 make \
62 DESTDIR=${D} \
63 USERCOMPILE="${CFLAGS}" \
64 FINALCONFDIR=/etc/ipsec \
65 INC_RCDEFAULT=/etc/init.d \
66 INC_USRLOCAL=/usr \
67 INC_MANDIR=share/man \
68 install || die
69
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