vpnc-scripts: add upstream patch for ipv6.

This commit is contained in:
maxice8 2018-08-06 08:11:22 -03:00 committed by Enno Boland
parent 836dcee48a
commit 102107931f
2 changed files with 18 additions and 2 deletions

View file

@ -0,0 +1,16 @@
--- vpnc-script 2018-02-26 15:22:35.000000000 +0000
+++ vpnc-script 2018-08-06 12:02:25.418113014 +0100
@@ -881,10 +881,10 @@ do_connect() {
while [ $i -lt $CISCO_IPV6_SPLIT_INC ] ; do
eval NETWORK="\${CISCO_IPV6_SPLIT_INC_${i}_ADDR}"
eval NETMASKLEN="\${CISCO_IPV6_SPLIT_INC_${i}_MASKLEN}"
- if [ $NETMASKLEN -lt 128 ]; then
- set_ipv6_network_route "$NETWORK" "$NETMASKLEN" "$TUNDEV"
- else
+ if [ $NETMASKLEN -eq 0 ]; then
set_ipv6_default_route
+ else
+ set_ipv6_network_route "$NETWORK" "$NETMASKLEN" "$TUNDEV"
fi
i=`expr $i + 1`
done

View file

@ -1,11 +1,11 @@
# Template file for 'vpnc-scripts'
pkgname=vpnc-scripts
version=20180227
revision=1
revision=2
noarch=yes
short_desc="Network configuration scripts for VPNC and OpenConnect"
maintainer="Eivind Uggedal <eivind@uggedal.com>"
license="GPL-2"
license="GPL-2.0-or-later"
homepage="http://www.infradead.org/openconnect/vpnc-script.html"
distfiles="ftp://ftp.infradead.org/pub/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=d084939fb12fdf570344bbb89f3f6a961d1916e95b42f6381aee050c3f1dd39e