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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations) (download)
Mon Jun 2 22:16:01 2008 UTC (11 years, 6 months ago) by wolf31o2
Branch: MAIN
CVS Tags: HEAD
Changes since 1.10: +1 -1 lines
FILE REMOVED
Removing older ebuilds and marking 4.7.00.0640-r1 stable for the 4.7 series, since there've been no bug reports and it works fine for me.
(Portage version: 2.1.5.3)

1 # Copyright 1999-2007 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.7.00.0640.ebuild,v 1.10 2007/04/28 16:51:49 swegener Exp $
4
5 inherit eutils linux-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-x86_64-${MY_PV}.tar.gz"
11
12 LICENSE="cisco-vpn-client"
13 SLOT="0"
14 KEYWORDS="-* amd64 x86"
15 IUSE=""
16 RESTRICT="fetch strip" # stricter"
17
18 QA_TEXTRELS="opt/cisco-vpnclient/lib/libvpnapi.so"
19 QA_EXECSTACK="opt/cisco-vpnclient/lib/libvpnapi.so
20 opt/cisco-vpnclient/bin/vpnclient
21 opt/cisco-vpnclient/bin/cvpnd
22 opt/cisco-vpnclient/bin/cisco_cert_mgr
23 opt/cisco-vpnclient/bin/ipseclog"
24
25 S=${WORKDIR}/vpnclient
26
27 VPNDIR="/etc/opt/cisco-vpnclient/"
28
29 pkg_nofetch() {
30 einfo "Please visit:"
31 einfo " ${HOMEPAGE}"
32 einfo "and download ${A} to ${DISTDIR}"
33 }
34
35 src_unpack () {
36 unpack ${A}
37 cd ${S}
38
39 #Fix problems with the linux >=2.6.14 kernel.
40 if kernel_is 2 6 && [[ ${KV_PATCH} -ge 14 ]]
41 then
42 epatch ${FILESDIR}/${PV}-2.6.14.patch
43 fi
44 epatch ${FILESDIR}/2.6.19.patch
45 }
46
47 src_compile () {
48 unset ARCH
49 sh ./driver_build.sh ${KV_DIR}
50 [ ! -f ./cisco_ipsec -a ! -f ./cisco_ipsec.ko ] \
51 && die "Failed to make module 'cisco_ipsec'"
52 sed -i "s#@VPNBINDIR@#/usr/bin#" vpnclient_init
53 sed -i "s#@VPNBINDIR@#/usr/bin#" vpnclient.ini
54 }
55
56 src_install() {
57 newinitd ${FILESDIR}/vpnclient.rc vpnclient
58
59 exeinto /opt/cisco-vpnclient/bin
60 exeopts -m0711
61 doexe vpnclient
62 exeopts -m4711
63 doexe cvpnd
64 into /opt/cisco-vpnclient/
65 dobin ipseclog cisco_cert_mgr
66 insinto /opt/cisco-vpnclient/lib
67 doins libvpnapi.so
68 insinto /opt/cisco-vpnclient/include
69 doins vpnapi.h
70 dodir /usr/bin
71 dosym /opt/cisco-vpnclient/bin/vpnclient /usr/bin/vpnclient
72
73 insinto /lib/modules/${KV}/CiscoVPN
74 if kernel_is 2 6; then
75 doins cisco_ipsec.ko
76 else
77 doins cisco_ipsec
78 fi
79
80 insinto ${VPNDIR}
81 doins vpnclient.ini
82 insinto ${VPNDIR}/Profiles
83 doins *.pcf
84 dodir ${VPNDIR}/Certificates
85 }
86
87 pkg_postinst() {
88 linux-mod_pkg_postinst
89 einfo "You must run \`/etc/init.d/vpnclient start\` before using the client."
90 echo
91 ewarn "Configuration directory has moved to ${VPNDIR}!"
92 echo
93 }

  ViewVC Help
Powered by ViewVC 1.1.20