summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBart Lauwers <blauwers@gentoo.org>2003-07-05 12:42:46 +0000
committerBart Lauwers <blauwers@gentoo.org>2003-07-05 12:42:46 +0000
commite9fba1bde10228777bdf46ccfb6a9b956522d0c4 (patch)
treea632ec10106dc482ec0305171fe7ad19ca6e869e /net-misc
parentAdding ebuild for cisco's vpnclient (diff)
downloadgentoo-2-e9fba1bde10228777bdf46ccfb6a9b956522d0c4.tar.gz
gentoo-2-e9fba1bde10228777bdf46ccfb6a9b956522d0c4.tar.bz2
gentoo-2-e9fba1bde10228777bdf46ccfb6a9b956522d0c4.zip
Adding ebuild for cisco's vpnclient
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/cisco-vpnclient-3des/ChangeLog8
-rw-r--r--net-misc/cisco-vpnclient-3des/Manifest3
-rw-r--r--net-misc/cisco-vpnclient-3des/cisco-vpnclient-3des-4.0.1a.ebuild77
-rw-r--r--net-misc/cisco-vpnclient-3des/files/digest-cisco-vpnclient-3des-4.0.1a1
4 files changed, 88 insertions, 1 deletions
diff --git a/net-misc/cisco-vpnclient-3des/ChangeLog b/net-misc/cisco-vpnclient-3des/ChangeLog
new file mode 100644
index 000000000000..2c440b1a6c3d
--- /dev/null
+++ b/net-misc/cisco-vpnclient-3des/ChangeLog
@@ -0,0 +1,8 @@
+# ChangeLog for net-misc/cisco-vpnclient-3des
+# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/cisco-vpnclient-3des/ChangeLog,v 1.1 2003/07/05 12:42:36 blauwers Exp $
+
+*cisco-vpnclient-3des-4.0.1a (05 JUL 2003)
+
+ 05 JUL 2003; Bart Lauwers <blauwers@gentoo.org> :
+ Initial import.
diff --git a/net-misc/cisco-vpnclient-3des/Manifest b/net-misc/cisco-vpnclient-3des/Manifest
index 923c0af965ea..ca90b944e7e2 100644
--- a/net-misc/cisco-vpnclient-3des/Manifest
+++ b/net-misc/cisco-vpnclient-3des/Manifest
@@ -1,2 +1,3 @@
-MD5 5a4e117d24b6bfda33e0803900c66406 cisco-vpnclient-3des-4.0.1a.ebuild 618
+MD5 569d31b2583c4deb3b68f51bdd765edf cisco-vpnclient-3des-4.0.1a.ebuild 2085
+MD5 112e971f3d909738d5af19b3e28f9e0d ChangeLog 356
MD5 e87a2dcccbebe59023e70bb5fa5fbca3 files/digest-cisco-vpnclient-3des-4.0.1a 79
diff --git a/net-misc/cisco-vpnclient-3des/cisco-vpnclient-3des-4.0.1a.ebuild b/net-misc/cisco-vpnclient-3des/cisco-vpnclient-3des-4.0.1a.ebuild
new file mode 100644
index 000000000000..4306a0f190f7
--- /dev/null
+++ b/net-misc/cisco-vpnclient-3des/cisco-vpnclient-3des-4.0.1a.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2003 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.1a.ebuild,v 1.1 2003/07/05 12:42:36 blauwers Exp $
+
+IUSE=""
+At="vpnclient-linux-4.0.1.A-k9.tar.gz"
+S="${WORKDIR}/vpnclient"
+SRC_URI=""
+DESCRIPTION="Cisco VPN Client (3DES)"
+HOMEPAGE="http://www.cisco.com/en/US/products/sw/secursw/ps2308/index.html"
+DEPEND="virtual/glibc
+ virtual/linux-sources"
+LICENSE="cisco-vpn-client"
+SLOT="0"
+KEYWORDS="x86 -ppc -sparc -alpha -hppa -mips -arm"
+
+VPNDIR="/etc/CiscoSystemsVPNClient"
+
+src_unpack() {
+ if [ ! -f "${DISTDIR}/${At}" ] ; then
+ die "Please download ${At} from ${HOMEPAGE} and move it to ${DISTDIR}."
+ fi
+ einfo "Cisco Systems VPN Client Version 4.0.1 (A) Linux Installer"
+ einfo "Copyright (C) 1998-2001 Cisco Systems, Inc. All Rights Reserved."
+ einfo ""
+ einfo "By installing this product you agree that you have read the"
+ einfo "license.txt file (The VPN Client license) and will comply with"
+ einfo "its terms. "
+ einfo ""
+ unpack "${At}"
+}
+
+src_compile () {
+ check_KV
+ sh ./driver_build.sh /lib/modules/${KV}/build
+ if [ ! -f ./cisco_ipsec ]; then
+ eerror "Failed to make module \"cisco_ipsec\"." && die
+ fi
+ sed "s#@VPNBINDIR@#/usr/bin#" < ./vpnclient_init > vpnclient_init.gentoo
+ sed "s#@VPNBINDIR@#/usr/bin#" < ./vpnclient.ini.in > vpnclient.ini
+}
+
+src_install () {
+ dodoc license.txt
+
+ if [ -f "/etc/init.d/vpnclient" ]; then
+ sh /etc/init.d/vpnclient stop
+ einfo "Stopped: vpnclient (Cisco VPN service)"
+ fi
+ exeinto /etc/init.d
+ newexe vpnclient_init.gentoo vpnclient
+
+ exeinto /usr/bin
+ exeopts -m0711
+ doexe vpnclient
+ exeopts -m4711
+ doexe cvpnd
+ dobin ipseclog
+ dobin cisco_cert_mgr
+
+ insinto /lib/modules/preferred/CiscoVPN
+ doins cisco_ipsec
+
+ dodir ${VPNDIR}
+ dodir "$VPNDIR/Certificates"
+ dodir "$VPNDIR/Profiles"
+
+ insinto ${VPNDIR}
+ doins vpnclient.ini
+
+ insinto "${VPNDIR}/Profiles"
+ doins *.pcf
+}
+
+pkg_postinst () {
+ einfo "You must run \"/etc/init.d/vpnclient start\" before using the client."
+}
diff --git a/net-misc/cisco-vpnclient-3des/files/digest-cisco-vpnclient-3des-4.0.1a b/net-misc/cisco-vpnclient-3des/files/digest-cisco-vpnclient-3des-4.0.1a
new file mode 100644
index 000000000000..195f6dcc89d2
--- /dev/null
+++ b/net-misc/cisco-vpnclient-3des/files/digest-cisco-vpnclient-3des-4.0.1a
@@ -0,0 +1 @@
+MD5 e9aa698bd7abbf0e1efd41bdf91ebc0a vpnclient-linux-4.0.1.A-k9.tar.gz 1316843