/[gentoo-x86]/net-misc/cisco-vpnclient-3des/cisco-vpnclient-3des-4.0.3b.ebuild
Gentoo

Contents of /net-misc/cisco-vpnclient-3des/cisco-vpnclient-3des-4.0.3b.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Jan 13 19:06:32 2004 UTC (15 years, 10 months ago) by wolf31o2
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Removing older revisions.

1 # Copyright 1999-2003 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /home/cvsroot/gentoo-x86/net-misc/cisco-vpnclient-3des/cisco-vpnclient-3des-4.0.3b.ebuild,v 1.1 2003/12/12 23:54:44 wolf31o2 Exp $
4
5 MY_PV=${PV/b/.B-k9}
6 DESCRIPTION="Cisco VPN Client (3DES)"
7 HOMEPAGE="http://www.cisco.com/en/US/products/sw/secursw/ps2308/index.html"
8 SRC_URI="vpnclient-linux-${MY_PV}.tar.gz"
9
10 LICENSE="cisco-vpn-client"
11 SLOT="${KV}"
12 KEYWORDS="-* x86"
13 RESTRICT="fetch"
14
15 DEPEND="virtual/glibc
16 virtual/linux-sources
17 >=sys-apps/sed-4"
18
19 S=${WORKDIR}/vpnclient
20
21 VPNDIR="/etc/CiscoSystemsVPNClient"
22
23 pkg_nofetch() {
24 eerror "Please goto:"
25 eerror " ${HOMEPAGE}"
26 eerror "and download"
27 eerror " ${A}"
28 eerror "to ${DISTDIR}"
29 }
30
31 src_unpack() {
32 unpack ${A}
33 cd ${S}
34
35 # Patch to allow use of alternate CC. Patch submitted to bug #33488 by
36 # Jesse Becker (jbecker@speakeasy.net)
37 epatch ${FILESDIR}/driver_build_CC.patch
38 }
39
40 src_compile () {
41 check_KV
42 sh ./driver_build.sh /lib/modules/${KV}/build
43 [ ! -f ./cisco_ipsec ] && die "Failed to make module 'cisco_ipsec'"
44 sed -i "s#@VPNBINDIR@#/usr/bin#" vpnclient_init
45 sed -i "s#@VPNBINDIR@#/usr/bin#" vpnclient.ini.in
46 }
47
48 src_install() {
49 exeinto /etc/init.d
50 newexe vpnclient_init vpnclient
51
52 exeinto /usr/bin
53 exeopts -m0711
54 doexe vpnclient
55 exeopts -m4711
56 doexe cvpnd
57 dobin ipseclog cisco_cert_mgr
58
59 insinto /lib/modules/${KV}/CiscoVPN
60 doins cisco_ipsec
61
62 insinto ${VPNDIR}
63 newins vpnclient.ini.in vpnclient.ini
64 insinto ${VPNDIR}/Profiles
65 doins *.pcf
66 dodir ${VPNDIR}/Certificates
67 }
68
69 pkg_postinst() {
70 einfo "You must run \`/etc/init.d/vpnclient start\` before using the client."
71 }

  ViewVC Help
Powered by ViewVC 1.1.20