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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Fri Dec 12 23:54:44 2003 UTC (15 years, 11 months ago) by wolf31o2
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Added driver_build_CC.patch and version bumped to newest version.  Closing bugs #33488 and #35617.

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.1a.ebuild,v 1.3 2003/10/27 20:13:04 vapier Exp $
4
5 MY_PV=${PV/a/.A-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 [ "${KV:0:3}" == "2.6" ] && epatch ${FILESDIR}/${PV}-linux26.patch
35 }
36
37 src_compile () {
38 check_KV
39 sh ./driver_build.sh /lib/modules/${KV}/build
40 [ ! -f ./cisco_ipsec ] && die "Failed to make module 'cisco_ipsec'"
41 sed -i "s#@VPNBINDIR@#/usr/bin#" vpnclient_init
42 sed -i "s#@VPNBINDIR@#/usr/bin#" vpnclient.ini.in
43 }
44
45 src_install() {
46 exeinto /etc/init.d
47 newexe vpnclient_init vpnclient
48
49 exeinto /usr/bin
50 exeopts -m0711
51 doexe vpnclient
52 exeopts -m4711
53 doexe cvpnd
54 dobin ipseclog cisco_cert_mgr
55
56 insinto /lib/modules/${KV}/CiscoVPN
57 doins cisco_ipsec
58
59 insinto ${VPNDIR}
60 newins vpnclient.ini.in vpnclient.ini
61 insinto ${VPNDIR}/Profiles
62 doins *.pcf
63 dodir ${VPNDIR}/Certificates
64 }
65
66 pkg_postinst() {
67 einfo "You must run \`/etc/init.d/vpnclient start\` before using the client."
68 }

  ViewVC Help
Powered by ViewVC 1.1.20