/[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 - (hide annotations) (download)
Mon Jun 2 22:16:01 2008 UTC (11 years, 7 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 wolf31o2 1.9 # Copyright 1999-2007 Gentoo Foundation
2 wolf31o2 1.1 # Distributed under the terms of the GNU General Public License v2
3 wolf31o2 1.11 # $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 wolf31o2 1.1
5 wolf31o2 1.4 inherit eutils linux-mod
6 wolf31o2 1.1
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 wolf31o2 1.2 KEYWORDS="-* amd64 x86"
15 wolf31o2 1.1 IUSE=""
16 wolf31o2 1.7 RESTRICT="fetch strip" # stricter"
17 wolf31o2 1.1
18 wolf31o2 1.7 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 wolf31o2 1.1
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 wolf31o2 1.9 if kernel_is 2 6 && [[ ${KV_PATCH} -ge 14 ]]
41 wolf31o2 1.1 then
42     epatch ${FILESDIR}/${PV}-2.6.14.patch
43     fi
44 wolf31o2 1.8 epatch ${FILESDIR}/2.6.19.patch
45 wolf31o2 1.1 }
46    
47     src_compile () {
48     unset ARCH
49 wolf31o2 1.3 sh ./driver_build.sh ${KV_DIR}
50 wolf31o2 1.1 [ ! -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 swegener 1.10 newinitd ${FILESDIR}/vpnclient.rc vpnclient
58 wolf31o2 1.1
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 wolf31o2 1.6 if kernel_is 2 6; then
75     doins cisco_ipsec.ko
76     else
77     doins cisco_ipsec
78     fi
79 wolf31o2 1.1
80     insinto ${VPNDIR}
81     doins vpnclient.ini
82     insinto ${VPNDIR}/Profiles
83     doins *.pcf
84     dodir ${VPNDIR}/Certificates
85     }
86    
87     pkg_postinst() {
88 wolf31o2 1.4 linux-mod_pkg_postinst
89 wolf31o2 1.1 einfo "You must run \`/etc/init.d/vpnclient start\` before using the client."
90 wolf31o2 1.4 echo
91 wolf31o2 1.1 ewarn "Configuration directory has moved to ${VPNDIR}!"
92 wolf31o2 1.4 echo
93 wolf31o2 1.1 }

  ViewVC Help
Powered by ViewVC 1.1.20