diff options
author | 2004-04-24 15:22:32 +0000 | |
---|---|---|
committer | 2004-04-24 15:22:32 +0000 | |
commit | d8ed18edd94e4ef5874f2ac01577e595fbce5c9a (patch) | |
tree | 23ba4c7df090748d02173e62036d6f261855df00 /net-misc/cisco-vpnclient-3des/cisco-vpnclient-3des-4.0.3b-r4.ebuild | |
parent | fix depend (Manifest recommit) (diff) | |
download | gentoo-2-d8ed18edd94e4ef5874f2ac01577e595fbce5c9a.tar.gz gentoo-2-d8ed18edd94e4ef5874f2ac01577e595fbce5c9a.tar.bz2 gentoo-2-d8ed18edd94e4ef5874f2ac01577e595fbce5c9a.zip |
Adding atheros patch, submitted by Dominic Battre and closing bug #48680.
Diffstat (limited to 'net-misc/cisco-vpnclient-3des/cisco-vpnclient-3des-4.0.3b-r4.ebuild')
-rw-r--r-- | net-misc/cisco-vpnclient-3des/cisco-vpnclient-3des-4.0.3b-r4.ebuild | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/net-misc/cisco-vpnclient-3des/cisco-vpnclient-3des-4.0.3b-r4.ebuild b/net-misc/cisco-vpnclient-3des/cisco-vpnclient-3des-4.0.3b-r4.ebuild new file mode 100644 index 000000000000..14dfa59ad3df --- /dev/null +++ b/net-misc/cisco-vpnclient-3des/cisco-vpnclient-3des-4.0.3b-r4.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/cisco-vpnclient-3des/cisco-vpnclient-3des-4.0.3b-r4.ebuild,v 1.1 2004/04/24 15:22:30 wolf31o2 Exp $ + +inherit eutils + +MY_PV=${PV/b/.B-k9} +DESCRIPTION="Cisco VPN Client (3DES)" +HOMEPAGE="http://www.cisco.com/en/US/products/sw/secursw/ps2308/index.html" +SRC_URI="vpnclient-linux-${MY_PV}.tar.gz" + +LICENSE="cisco-vpn-client" +SLOT="${KV}" +KEYWORDS="-* x86" +RESTRICT="fetch" +IUSE="" + +DEPEND="virtual/glibc + virtual/linux-sources + >=sys-apps/sed-4" + +S=${WORKDIR}/vpnclient + +VPNDIR="/etc/CiscoSystemsVPNClient" + +pkg_nofetch() { + eerror "Please goto:" + eerror " ${HOMEPAGE}" + eerror "and download" + eerror " ${A}" + eerror "to ${DISTDIR}" +} + +src_unpack() { + unpack ${A} + cd ${S} + + # Patch to allow use of alternate CC. Patch submitted to bug #33488 by + # Jesse Becker <jbecker@speakeasy.net> + epatch ${FILESDIR}/driver_build_CC.patch + # Patch to allow module to work with kernel 2.6.x. Patch submitted to bug + # #40730 by Kent Skaar <skaar@aol.net>. Patch originally submitted to LMKL + # by Gertjan van Wingerde <gwingerde@home.nl>. + epatch ${FILESDIR}/register_netdevice.patch + # Patch to allow module to work with Atheros chipsets. Patch submitted to + # bug #48680 by Dominic Battre <dominic.battre@gmx.de> + epatch ${FILESDIR}/atheros.patch +} + +src_compile () { + check_KV + sh ./driver_build.sh /lib/modules/${KV}/build + [ ! -f ./cisco_ipsec ] && die "Failed to make module 'cisco_ipsec'" + sed -i "s#@VPNBINDIR@#/usr/bin#" vpnclient_init + sed -i "s#@VPNBINDIR@#/usr/bin#" vpnclient.ini.in +} + +src_install() { + exeinto /etc/init.d + #newexe vpnclient_init vpnclient + newexe ${FILESDIR}/vpnclient.rc vpnclient + + exeinto /usr/bin + exeopts -m0711 + doexe vpnclient + exeopts -m4711 + doexe cvpnd + dobin ipseclog cisco_cert_mgr + + insinto /lib/modules/${KV}/CiscoVPN + doins cisco_ipsec + + insinto ${VPNDIR} + newins vpnclient.ini.in vpnclient.ini + insinto ${VPNDIR}/Profiles + doins *.pcf + dodir ${VPNDIR}/Certificates +} + +pkg_postinst() { + einfo "You must run \`/etc/init.d/vpnclient start\` before using the client." +} |