pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

vpnc-svn: Remote SVN repo is dead



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Sat Sep 24 16:02:12 2016 +0200
Changeset:	26cd2106a3d00f5b99e4032ce452f04f223084e1

Removed Files:
	vpnc-svn/DESCR
	vpnc-svn/Makefile
	vpnc-svn/PLIST
	vpnc-svn/distinfo
	vpnc-svn/options.mk
	vpnc-svn/patches/patch-config.c
	vpnc-svn/patches/patch-config.h
	vpnc-svn/patches/patch-makeman.pl
	vpnc-svn/patches/patch-pcf2vpnc
	vpnc-svn/patches/patch-sysdep.c
	vpnc-svn/patches/patch-tunip.c
	vpnc-svn/patches/patch-vpnc.c
	vpnc-svn/patches/patch-vpnc_disconnect
	vpnc-svn/patches/patch-vpnc_script

Log Message:
vpnc-svn: Remote SVN repo is dead

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=26cd2106a3d00f5b99e4032ce452f04f223084e1

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 vpnc-svn/DESCR                         |  8 ----
 vpnc-svn/Makefile                      | 75 ---------------------------------
 vpnc-svn/PLIST                         | 11 -----
 vpnc-svn/distinfo                      | 11 -----
 vpnc-svn/options.mk                    | 20 ---------
 vpnc-svn/patches/patch-config.c        | 77 ----------------------------------
 vpnc-svn/patches/patch-config.h        | 13 ------
 vpnc-svn/patches/patch-makeman.pl      |  8 ----
 vpnc-svn/patches/patch-pcf2vpnc        | 10 -----
 vpnc-svn/patches/patch-sysdep.c        | 35 ----------------
 vpnc-svn/patches/patch-tunip.c         | 34 ---------------
 vpnc-svn/patches/patch-vpnc.c          | 31 --------------
 vpnc-svn/patches/patch-vpnc_disconnect | 12 ------
 vpnc-svn/patches/patch-vpnc_script     | 62 ---------------------------
 14 files changed, 407 deletions(-)

diffs:
diff --git a/vpnc-svn/DESCR b/vpnc-svn/DESCR
deleted file mode 100644
index 57222de..0000000
--- a/vpnc-svn/DESCR
+++ /dev/null
@@ -1,8 +0,0 @@
-A VPN client compatible with Cisco's EasyVPN equipment.
-
-vpnc is supposed to work with:
-
-    * Cisco VPN concentrator 3000 Series
-    * Cisco IOS routers
-    * Cisco PIX / ASA Security Appliances
-    * Juniper/Netscreen
diff --git a/vpnc-svn/Makefile b/vpnc-svn/Makefile
deleted file mode 100644
index 1fa6d82..0000000
--- a/vpnc-svn/Makefile
+++ /dev/null
@@ -1,75 +0,0 @@
-# $NetBSD: Makefile,v 1.4 2014/02/14 12:06:45 hfath Exp $
-#
-
-DISTNAME=		vpnc-0.5.3
-PKGREVISION=		${_SVN_PKGVERSION:S/.//g}
-CATEGORIES=		net security
-MASTER_SITES=		http://www.unix-ag.uni-kl.de/~massar/vpnc/
-
-SVN_ROOT.vpnc=		http://svn.unix-ag.uni-kl.de/vpnc/
-SVN_REPOSITORIES=	vpnc
-_SVN_CMD=		svn16
-
-MAINTAINER=		pkgsrc-users%NetBSD.org@localhost
-HOMEPAGE=		http://www.unix-ag.uni-kl.de/~massar/vpnc/
-COMMENT=		Client for Cisco3000 ipsec VPN Concentrator
-
-WRKSRC=			${WRKDIR}/vpnc/trunk
-
-NOT_FOR_PLATFORM=	Interix-*-*
-
-USE_TOOLS+=		gmake
-USE_TOOLS+=		perl
-INSTALLATION_DIRS=	bin sbin ${PKGMANDIR}/man1 ${PKGMANDIR}/man8 \
-			share/doc/vpnc share/examples/vpnc
-OWN_DIRS=		${PKG_SYSCONFDIR}/vpnc
-
-SUBST_CLASSES+=		paths
-SUBST_MESSAGE.paths=	fixing pathnames
-SUBST_STAGE.paths=	post-patch
-SUBST_FILES.paths=	config.c vpnc-script makeman.pl pcf2vpnc
-SUBST_FILES.paths+=	vpnc.8.template vpnc-disconnect
-SUBST_SED.paths=	-e 's|@PKG_SYSCONFDIR@|${PKG_SYSCONFDIR}|g'
-SUBST_SED.paths+=	-e 's|@PREFIX@|${PREFIX}|g'
-SUBST_SED.paths+=	-e 's|@PKGMANDIR@|${PKGMANDIR}|g'
-SUBST_SED.paths+=	-e 's|@VARBASE@|${VARBASE}|g'
-SUBST_SED.paths+=	-e 's|@PERL5@|${PERL5}|g'
-SUBST_SED.paths+=	-e 's|@SH@|${SH}|g'
-
-BUILD_DEFS+=		VARBASE
-
-EGDIR=			${PREFIX}/share/examples/vpnc
-CONF_FILES+=		${EGDIR}/default.conf \
-			${PKG_SYSCONFDIR}/vpnc/default.conf
-CONF_FILES_MODE=	0600
-CONF_FILES_PERMS+=	${EGDIR}/vpnc-script \
-			${PKG_SYSCONFDIR}/vpnc/vpnc-script \
-			${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 755
-
-do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/vpnc ${DESTDIR}${PREFIX}/sbin
-	${INSTALL_PROGRAM} ${WRKSRC}/cisco-decrypt ${DESTDIR}${PREFIX}/bin
-	${INSTALL_SCRIPT} ${WRKSRC}/vpnc-script ${DESTDIR}${EGDIR}
-	${INSTALL_DATA} ${WRKSRC}/vpnc.conf ${DESTDIR}${EGDIR}/default.conf
-	${INSTALL_SCRIPT} ${WRKSRC}/vpnc-disconnect ${DESTDIR}${PREFIX}/bin
-	${INSTALL_SCRIPT} ${WRKSRC}/pcf2vpnc ${DESTDIR}${PREFIX}/bin
-	${INSTALL_MAN} ${WRKSRC}/vpnc.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8
-	${INSTALL_MAN} ${WRKSRC}/pcf2vpnc.1 \
-		${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
-	${INSTALL_MAN} ${WRKSRC}/cisco-decrypt.1 \
-		${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
-	${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/vpnc
-
-.include "options.mk"
-
-.include "../../mk/bsd.prefs.mk"
-
-CFLAGS.SunOS=	-DLOG_PERROR=0
-
-.if ${OPSYS} == "SunOS"
-.include "../../net/solaris-tap/buildlink3.mk"
-.endif
-
-.include "../../security/libgcrypt/buildlink3.mk"
-.include "../../wip/mk/svn-package.mk"
-.include "../../mk/bsd.pkg.mk"
diff --git a/vpnc-svn/PLIST b/vpnc-svn/PLIST
deleted file mode 100644
index af07d0a..0000000
--- a/vpnc-svn/PLIST
+++ /dev/null
@@ -1,11 +0,0 @@
-@comment $NetBSD: PLIST,v 1.1.1.1 2012/05/23 15:37:12 hfath Exp $
-bin/cisco-decrypt
-bin/pcf2vpnc
-bin/vpnc-disconnect
-man/man1/cisco-decrypt.1
-man/man1/pcf2vpnc.1
-man/man8/vpnc.8
-sbin/vpnc
-share/doc/vpnc/README
-share/examples/vpnc/default.conf
-share/examples/vpnc/vpnc-script
diff --git a/vpnc-svn/distinfo b/vpnc-svn/distinfo
deleted file mode 100644
index 882b60b..0000000
--- a/vpnc-svn/distinfo
+++ /dev/null
@@ -1,11 +0,0 @@
-$NetBSD: distinfo,v 1.4 2014/02/20 20:53:59 hfath Exp $
-
-SHA1 (patch-config.c) = 313a76fa5c5784a93f06a4e31927e3b42a9a6fdf
-SHA1 (patch-config.h) = 2917b54525315d59646a1ca759138a14021ee674
-SHA1 (patch-makeman.pl) = d87e77fe71a2a37265409b5f88e53cbf1373a9b0
-SHA1 (patch-pcf2vpnc) = e04d8167c95ff89496ff4d9603adc57b6da2a457
-SHA1 (patch-sysdep.c) = 30f4122e686ccb1757cec5869d296495738e6be6
-SHA1 (patch-tunip.c) = 3bc4968d5e51577185813b033786092f8a981a90
-SHA1 (patch-vpnc.c) = 7d677152e39477202c7b57b7063e77f174859884
-SHA1 (patch-vpnc_disconnect) = a38c6f7cf978d063be0db3791b29962ceaeb5b9e
-SHA1 (patch-vpnc_script) = 1fb5b4d3d98b6a0ae67d8800d08f92876a0ea694
diff --git a/vpnc-svn/options.mk b/vpnc-svn/options.mk
deleted file mode 100644
index 4e3a1c8..0000000
--- a/vpnc-svn/options.mk
+++ /dev/null
@@ -1,20 +0,0 @@
-# $NetBSD: options.mk,v 1.2 2012/05/23 15:58:00 hfath Exp $
-
-PKG_OPTIONS_VAR=	PKG_OPTIONS.openvpnc
-PKG_SUPPORTED_OPTIONS=	openssl		# off by default
-PKG_SUGGESTED_OPTIONS=
-
-.include "../../mk/bsd.prefs.mk"
-.include "../../mk/bsd.options.mk"
-
-.if !empty(PKG_OPTIONS:Mopenssl)
-.include "../../security/openssl/buildlink3.mk"
-SUBST_CLASSES+=		openssl
-SUBST_MESSAGE.openssl=	adding openssl option
-SUBST_STAGE.openssl=	post-patch
-SUBST_FILES.openssl=	Makefile
-SUBST_SED.openssl=	-e 's/^.OPENSSL_GPL_VIOLATION/OPENSSL_GPL_VIOLATION/'
-SUBST_SED.openssl+=	-e 's/^.OPENSSLLIBS/OPENSSLLIBS/'
-.else
-.include "../../security/gnutls/buildlink3.mk"
-.endif
diff --git a/vpnc-svn/patches/patch-config.c b/vpnc-svn/patches/patch-config.c
deleted file mode 100644
index d235bfa..0000000
--- a/vpnc-svn/patches/patch-config.c
+++ /dev/null
@@ -1,77 +0,0 @@
-$NetBSD: patch-config.c,v 1.3 2014/02/20 20:53:59 hfath Exp $
-
---- config.c.orig	2014-02-20 20:27:20.000000000 +0000
-+++ config.c
-@@ -362,12 +362,12 @@ static const char *config_def_app_versio
- 
- static const char *config_def_script(void)
- {
--	return "/etc/vpnc/vpnc-script";
-+	return "@PKG_SYSCONFDIR@/vpnc/vpnc-script";
- }
- 
- static const char *config_def_pid_file(void)
- {
--	return "/var/run/vpnc.pid";
-+	return "@VARBASE@/run/vpnc.pid";
- }
- 
- static const char *config_def_vendor(void)
-@@ -375,6 +375,16 @@ static const char *config_def_vendor(voi
- 	return "cisco";
- }
- 
-+static const char *config_def_networks_list(void)
-+{
-+	return "";
-+}
-+
-+static const char *config_def_dns_update(void)
-+{
-+	return "Yes";
-+}
-+
- static const char *config_def_target_network(void)
- {
- 	return "0.0.0.0/0.0.0.0";
-@@ -650,6 +660,20 @@ static const struct config_names_s {
- 		"path to password program or helper name\n",
- 		NULL
- 	}, {
-+		CONFIG_DNS_UPDATE, 1, 1,
-+		"--dns-update",
-+		"DNSUpdate",
-+		"",
-+		"DEPRECATED extension from Debian",
-+		config_def_dns_update
-+	}, {
-+		CONFIG_TARGET_NETWORKS, 1, 1,
-+		"--target-networks",
-+		"Target Networks",
-+		NULL,
-+		"DEPRECATED extension from Debian",
-+		config_def_networks_list
-+	}, {
- 		0, 0, 0, NULL, NULL, NULL, NULL, NULL
- 	}
- };
-@@ -658,7 +682,7 @@ static char *get_config_filename(const c
- {
- 	char *realname;
- 
--	asprintf(&realname, "%s%s%s", index(name, '/') ? "" : "/etc/vpnc/", name, add_dot_conf ? ".conf" : "");
-+	asprintf(&realname, "%s%s%s", index(name, '/') ? "" : "@PKG_SYSCONFDIR@/vpnc/", name, add_dot_conf ? ".conf" : "");
- 	return realname;
- }
- 
-@@ -894,8 +918,8 @@ void do_config(int argc, char **argv)
- 	}
- 
- 	if (!got_conffile) {
--		read_config_file("/etc/vpnc/default.conf", config, 1);
--		read_config_file("/etc/vpnc.conf", config, 1);
-+		read_config_file("@PKG_SYSCONFDIR@/vpnc/default.conf", config, 1);
-+		read_config_file("@PKG_SYSCONFDIR@/vpnc.conf", config, 1);
- 	}
- 
- 	if (!print_config) {
diff --git a/vpnc-svn/patches/patch-config.h b/vpnc-svn/patches/patch-config.h
deleted file mode 100644
index 5b5b5de..0000000
--- a/vpnc-svn/patches/patch-config.h
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-config.h,v 1.2 2014/02/20 20:53:59 hfath Exp $
-
---- config.h.orig	2014-02-20 20:27:20.000000000 +0000
-+++ config.h
-@@ -60,6 +60,8 @@ enum config_enum {
- 	CONFIG_CA_FILE,
- 	CONFIG_CA_DIR,
- 	CONFIG_PASSWORD_HELPER,
-+	CONFIG_DNS_UPDATE,
-+	CONFIG_TARGET_NETWORKS,
- 	LAST_CONFIG
- };
- 
diff --git a/vpnc-svn/patches/patch-makeman.pl b/vpnc-svn/patches/patch-makeman.pl
deleted file mode 100644
index db003ee..0000000
--- a/vpnc-svn/patches/patch-makeman.pl
+++ /dev/null
@@ -1,8 +0,0 @@
-$NetBSD: patch-makeman.pl,v 1.2 2014/02/20 20:53:59 hfath Exp $
-
---- makeman.pl.orig	2014-02-20 20:27:20.000000000 +0000
-+++ makeman.pl
-@@ -1,2 +1,2 @@
--#! /usr/bin/env perl
-+#! @PERL5@ -w
- 
diff --git a/vpnc-svn/patches/patch-pcf2vpnc b/vpnc-svn/patches/patch-pcf2vpnc
deleted file mode 100644
index bf8d227..0000000
--- a/vpnc-svn/patches/patch-pcf2vpnc
+++ /dev/null
@@ -1,10 +0,0 @@
-$NetBSD: patch-pcf2vpnc,v 1.2 2014/02/20 20:53:59 hfath Exp $
-
---- pcf2vpnc.orig	2014-02-20 20:27:20.000000000 +0000
-+++ pcf2vpnc
-@@ -1,4 +1,4 @@
--#!/usr/bin/env perl
-+#!@PERL5@
- # Stefan Tomanek <stefan%pico.ruhr.de@localhost>
- # updated by Wolfram Sang <ninja%the-dreams.de@localhost> on 21.10.06 and on 26.06.07
- ##
diff --git a/vpnc-svn/patches/patch-sysdep.c b/vpnc-svn/patches/patch-sysdep.c
deleted file mode 100644
index e59dd6a..0000000
--- a/vpnc-svn/patches/patch-sysdep.c
+++ /dev/null
@@ -1,35 +0,0 @@
-$NetBSD: patch-sysdep.c,v 1.2 2014/02/20 20:53:59 hfath Exp $
-
---- sysdep.c.orig	2014-02-20 20:27:20.000000000 +0000
-+++ sysdep.c
-@@ -666,7 +666,7 @@ int tun_get_hwaddr(int fd, char *dev, ui
- 	}
- 
- 	return 0;
--#elif defined(SIOCGIFHWADDR)
-+#elif defined(SIOCGIFHWADDR) || defined(SIOCGENADDR)
- 	struct ifreq ifr;
- 
- 	/* Use a new socket fd! */
-@@ -677,12 +677,20 @@ int tun_get_hwaddr(int fd, char *dev, ui
- 	memset(&ifr, 0, sizeof(struct ifreq));
- 	strncpy(ifr.ifr_name, dev, IFNAMSIZ);
- 
-+#if defined(SIOCGIFHWADDR) && !defined(__sun)
- 	if (ioctl(fd, SIOCGIFHWADDR, &ifr) < 0) {
- 		return -1;
- 	}
- 
- 	memcpy(hwaddr, &ifr.ifr_hwaddr.sa_data, ETH_ALEN);
--
-+#endif
-+#if defined(SIOCGENADDR)
-+	if (ioctl(fd, SIOCGENADDR, &ifr) < 0) {
-+		return -1;
-+	}
-+	
-+	memcpy(hwaddr, &ifr.ifr_enaddr, ETH_ALEN);
-+#endif
- 	return 0;
- #else
- 	/* todo: implement using SIOCGLIFADDR */
diff --git a/vpnc-svn/patches/patch-tunip.c b/vpnc-svn/patches/patch-tunip.c
deleted file mode 100644
index 92313b5..0000000
--- a/vpnc-svn/patches/patch-tunip.c
+++ /dev/null
@@ -1,34 +0,0 @@
-$NetBSD: patch-tunip.c,v 1.2 2014/02/20 20:53:59 hfath Exp $
-
---- tunip.c.orig	2014-02-20 20:27:20.000000000 +0000
-+++ tunip.c
-@@ -177,7 +177,8 @@ static int encap_rawip_recv(struct sa_bl
- 		return -1;
- 	}
- 	if (r < (p->ip_hl << 2) + s->ipsec.em->fixed_header_size) {
--		logmsg(LOG_ALERT, "packet too short. got %zd, expected %d", r, (p->ip_hl << 2) + s->ipsec.em->fixed_header_size);
-+		syslog(LOG_ALERT, "packet too short. got %ld, expected %ld",
-+		    (long) r, (long) ((p->ip_hl << 2) + s->ipsec.em->fixed_header_size));
- 		return -1;
- 	}
- 
-@@ -216,8 +217,8 @@ static int encap_udp_recv(struct sa_bloc
- 		return -1;
- 	}
- 	if (r < s->ipsec.em->fixed_header_size) {
--		logmsg(LOG_ALERT, "packet too short from %s. got %zd, expected %d",
--			inet_ntoa(s->dst), r, s->ipsec.em->fixed_header_size);
-+		logmsg(LOG_ALERT, "packet too short from %s. got %ld, expected %ld",
-+			inet_ntoa(s->dst), (long) r, (long) (s->ipsec.em->fixed_header_size));
- 		return -1;
- 	}
- 
-@@ -877,7 +878,7 @@ static void vpnc_main_loop(struct sa_blo
- 				}
- 			}
- 			DEBUG(2,printf("lifetime status: %ld of %u seconds used, %u|%u of %u kbytes used\n",
--				time(NULL) - s->ipsec.life.start,
-+				(long)(time(NULL) - s->ipsec.life.start),
- 				s->ipsec.life.seconds,
- 				s->ipsec.life.rx/1024,
- 				s->ipsec.life.tx/1024,
diff --git a/vpnc-svn/patches/patch-vpnc.c b/vpnc-svn/patches/patch-vpnc.c
deleted file mode 100644
index 4000c78..0000000
--- a/vpnc-svn/patches/patch-vpnc.c
+++ /dev/null
@@ -1,31 +0,0 @@
-$NetBSD: patch-vpnc.c,v 1.3 2014/02/20 20:54:00 hfath Exp $
-
---- vpnc.c.orig	2014-02-20 20:27:20.000000000 +0000
-+++ vpnc.c
-@@ -389,6 +389,8 @@ static void config_tunnel(struct sa_bloc
- {
- 	setenv("VPNGATEWAY", inet_ntoa(s->dst), 1);
- 	setenv("reason", "connect", 1);
-+	setenv("DNS_UPDATE", config[CONFIG_DNS_UPDATE], 1);
-+	setenv("TARGET_NETWORKS", config[CONFIG_TARGET_NETWORKS], 1);
- 	system(config[CONFIG_SCRIPT]);
- 	s_atexit_sa = s;
- 	atexit(atexit_close);
-@@ -1196,7 +1198,7 @@ static struct isakmp_payload *make_our_s
- 
- static void lifetime_ike_process(struct sa_block *s, struct isakmp_attribute *a)
- {
--	uint32_t value;
-+	uint32_t value = 0;
- 
- 	assert(a != NULL);
- 	assert(a->type == IKE_ATTRIB_LIFE_TYPE);
-@@ -1226,7 +1228,7 @@ static void lifetime_ike_process(struct 
- 
- static void lifetime_ipsec_process(struct sa_block *s, struct isakmp_attribute *a)
- {
--	uint32_t value;
-+	uint32_t value = 0;
- 
- 	assert(a != NULL);
- 	assert(a->type == ISAKMP_IPSEC_ATTRIB_SA_LIFE_TYPE);
diff --git a/vpnc-svn/patches/patch-vpnc_disconnect b/vpnc-svn/patches/patch-vpnc_disconnect
deleted file mode 100644
index 45da7d7..0000000
--- a/vpnc-svn/patches/patch-vpnc_disconnect
+++ /dev/null
@@ -1,12 +0,0 @@
-$NetBSD: patch-vpnc_disconnect,v 1.3 2014/02/20 20:54:00 hfath Exp $
-
---- vpnc-disconnect.orig	2014-02-20 20:27:20.000000000 +0000
-+++ vpnc-disconnect
-@@ -1,6 +1,6 @@
- #!/bin/sh
- 
--pid=/var/run/vpnc.pid
-+pid=@VARBASE@/run/vpnc.pid
- 
- if [ $# -ne 0 ]; then
- 	echo "Usage: $0" 1>&2
diff --git a/vpnc-svn/patches/patch-vpnc_script b/vpnc-svn/patches/patch-vpnc_script
deleted file mode 100644
index a597fbf..0000000
--- a/vpnc-svn/patches/patch-vpnc_script
+++ /dev/null
@@ -1,62 +0,0 @@
-$NetBSD: patch-vpnc_script,v 1.3 2014/02/20 20:54:00 hfath Exp $
-
---- vpnc-script.orig	2014-02-20 20:27:20.000000000 +0000
-+++ vpnc-script
-@@ -78,9 +78,10 @@ PATH=/sbin:/usr/sbin:$PATH
- 
- OS="`uname -s`"
- 
--HOOKS_DIR=/etc/vpnc
--DEFAULT_ROUTE_FILE=/var/run/vpnc/defaultroute
--RESOLV_CONF_BACKUP=/var/run/vpnc/resolv.conf-backup
-+HOOKS_DIR=$PKG_SYSCONFDIR/vpnc
-+STATEDIR=/var/run/vpnc
-+DEFAULT_ROUTE_FILE=$STATEDIR/defaultroute
-+RESOLV_CONF_BACKUP=$STATEDIR/resolv.conf-backup
- SCRIPTNAME=`basename $0`
- 
- # some systems, eg. Darwin & FreeBSD, prune /var/run on boot
-@@ -163,7 +164,7 @@ do_ifconfig() {
- 	fi
- 
- 	if [ -z "$MTU" ]; then
--		MTU=1412
-+		MTU=1390
- 	fi
- 
- 	# Point to point interface require a netmask of 255.255.255.255 on some systems
-@@ -285,11 +286,11 @@ else # use route command
- 		# isn't -n supposed to give --numeric output?
- 		# apperently not...
- 		# Get rid of lines containing IPv6 addresses (':')
--		netstat -r -n | awk '/:/ { next; } /^(default|0\.0\.0\.0)/ { print $2; }'
-+		netstat -r -n | awk '/:/ { next; } $2 ~ /^link/ { next; } /^(default|0\.0\.0\.0)/ { print $2; }'
- 	}
- 
- 	set_vpngateway_route() {
--		route add -host "$VPNGATEWAY" $route_syntax_gw "`get_default_gw`"
-+		route add -host "$VPNGATEWAY" $route_syntax_gw "`get_default_gw`" $route_syntax_interface
- 	}
- 
- 	del_vpngateway_route() {
-@@ -623,6 +624,20 @@ do_pre_init() {
- }
- 
- do_connect() {
-+	if test "$TARGET_NETWORKS" ; then
-+		i=0
-+		for network in $TARGET_NETWORKS ; do
-+			eval CISCO_SPLIT_INC_${i}_ADDR=`echo $network | cut -f1 -d/`
-+			eval CISCO_SPLIT_INC_${i}_MASKLEN=`echo $network | cut -f2 -d/`
-+			eval CISCO_SPLIT_INC_${i}_MASK=$( @PERL5@ -e '$ARGV[0]=~s,.*/,,;$m=(2**$ARGV[0]-1)<<(32-$ARGV[0]);printf "%d.%d.%d.%d\n", $m>>24 & 0xff, $m>>16 & 0xff, $m>>8 & 0xff, $m & 0xff;' $network )
-+			eval CISCO_SPLIT_INC_${i}_PROTOCOL=0
-+			eval CISCO_SPLIT_INC_${i}_SPORT=0
-+			eval CISCO_SPLIT_INC_${i}_DPORT=0
-+			i=`expr $i + 1`
-+		done
-+		CISCO_SPLIT_INC=$i
-+	fi
-+
- 	if [ -n "$CISCO_BANNER" ]; then
- 		echo "Connect Banner:"
- 		echo "$CISCO_BANNER" | while read LINE ; do echo "|" "$LINE" ; done


Home | Main Index | Thread Index | Old Index