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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Nov 9 20:24:13 2004 UTC (15 years, 1 month ago) by wolf31o2
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Added supported device patch from James Ward <jennyandjamesward@yahoo.com> and closing bugs #68738, #70365, and #70374.

1 # Copyright 1999-2004 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/cisco-vpnclient-3des/cisco-vpnclient-3des-4.6.00.0045.ebuild,v 1.1 2004/11/04 01:18:27 wolf31o2 Exp $
4
5 inherit eutils kernel-mod
6
7 MY_PV=${PV}-k9
8 DESCRIPTION="Cisco VPN Client (3DES)"
9 HOMEPAGE="http://cco.cisco.com/en/US/products/sw/secursw/ps2308/index.html"
10 SRC_URI="vpnclient-linux-${MY_PV}.tar.gz"
11
12 LICENSE="cisco-vpn-client"
13 SLOT="${KV}"
14 KEYWORDS="-* ~x86"
15 IUSE=""
16 RESTRICT="fetch"
17
18 DEPEND="virtual/libc
19 virtual/linux-sources
20 >=sys-apps/sed-4"
21
22 S=${WORKDIR}/vpnclient
23
24 VPNDIR="/etc/opt/cisco-vpnclient/"
25
26 pkg_nofetch() {
27 einfo "Please visit:"
28 einfo " ${HOMEPAGE}"
29 einfo "and download ${A} to ${DISTDIR}"
30 }
31
32 src_unpack() {
33 unpack ${A}
34 cd ${S}
35
36 # Patch to allow use of alternate CC. Patch submitted to bug #33488 by
37 # Jesse Becker <jbecker@speakeasy.net>
38 epatch ${FILESDIR}/driver_build_CC.patch
39 }
40
41 src_compile () {
42 unset ARCH
43 sh ./driver_build.sh /lib/modules/${KV}/build
44 [ ! -f ./cisco_ipsec -a ! -f ./cisco_ipsec.ko ] \
45 && die "Failed to make module 'cisco_ipsec'"
46 sed -i "s#@VPNBINDIR@#/usr/bin#" vpnclient_init
47 sed -i "s#@VPNBINDIR@#/usr/bin#" vpnclient.ini
48 }
49
50 src_install() {
51 exeinto /etc/init.d
52 newexe ${FILESDIR}/vpnclient.rc vpnclient
53
54 exeinto /opt/cisco-vpnclient/bin
55 exeopts -m0711
56 doexe vpnclient
57 exeopts -m4711
58 doexe cvpnd
59 into /opt/cisco-vpnclient/
60 dobin ipseclog cisco_cert_mgr
61 dolib.so libvpnapi.so
62 doins vpnapi.h
63 dodir /usr/bin
64 dosym /opt/cisco-vpnclient/bin/vpnclient /usr/bin/vpnclient
65
66
67 insinto /lib/modules/${KV}/CiscoVPN
68 if kernel-mod_is_2_6_kernel; then
69 doins cisco_ipsec.ko
70 else
71 doins cisco_ipsec
72 fi
73
74 insinto ${VPNDIR}
75 doins vpnclient.ini
76 insinto ${VPNDIR}/Profiles
77 doins *.pcf
78 dodir ${VPNDIR}/Certificates
79 }
80
81 pkg_postinst() {
82 einfo "You must run \`/etc/init.d/vpnclient start\` before using the client."
83 echo ""
84 ewarn "Configuration directory has moved to ${VPNDIR}!"
85 echo ""
86 }

  ViewVC Help
Powered by ViewVC 1.1.20