[packages/vpnc] - fix vpnc-script for new kernels and iproute2 - release 5

adwol adwol at pld-linux.org
Tue Feb 6 23:52:22 CET 2018


commit 9397f0909db139dc247e2f1a47f09b415d586d41
Author: Adam Osuchowski <adwol at pld-linux.org>
Date:   Tue Feb 6 23:50:21 2018 +0100

    - fix vpnc-script for new kernels and iproute2
    - release 5

 vpnc-script-ip_route_uid.patch | 12 ++++++++++++
 vpnc.spec                      |  4 +++-
 2 files changed, 15 insertions(+), 1 deletion(-)
---
diff --git a/vpnc.spec b/vpnc.spec
index 1df5f60..d1770b3 100644
--- a/vpnc.spec
+++ b/vpnc.spec
@@ -6,7 +6,7 @@ Summary:	VPN Client for Cisco EasyVPN
 Summary(pl.UTF-8):	Klient VPN dla Cisco EasyVPN
 Name:		vpnc
 Version:	0.5.3
-Release:	4
+Release:	5
 License:	GPL v2+
 Group:		Networking/Daemons
 Source0:	http://www.unix-ag.uni-kl.de/~massar/vpnc/%{name}-%{version}.tar.gz
@@ -14,6 +14,7 @@ Source0:	http://www.unix-ag.uni-kl.de/~massar/vpnc/%{name}-%{version}.tar.gz
 Source1:	%{name}cfg
 Source2:	%{name}.tmpfiles
 Patch0:		%{name}-bash.patch
+Patch1:		vpnc-script-ip_route_uid.patch
 URL:		http://www.unix-ag.uni-kl.de/~massar/vpnc/
 BuildRequires:	libgcrypt-devel >= 1.1.90
 %{?with_openssl:BuildRequires:	openssl-devel}
@@ -45,6 +46,7 @@ vpnc i openconnect).
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 %build
 %{__make} \
diff --git a/vpnc-script-ip_route_uid.patch b/vpnc-script-ip_route_uid.patch
new file mode 100644
index 0000000..c4f738c
--- /dev/null
+++ b/vpnc-script-ip_route_uid.patch
@@ -0,0 +1,12 @@
+diff -ruNp vpnc-0.5.3.orig/vpnc-script.in vpnc-0.5.3/vpnc-script.in
+--- vpnc-0.5.3.orig/vpnc-script.in	2008-11-19 21:55:51.000000000 +0100
++++ vpnc-0.5.3/vpnc-script.in	2018-02-06 23:46:51.680260349 +0100
+@@ -116,7 +116,7 @@ destroy_tun_device() {
+ 
+ if [ -n "$IPROUTE" ]; then
+ 	fix_ip_get_output () {
+-		sed 's/cache//;s/metric \?[0-9]\+ [0-9]\+//g;s/hoplimit [0-9]\+//g'
++		sed 's/cache//;s/metric \?[0-9]\+ [0-9]\+//g;s/hoplimit [0-9]\+//g;s/uid [0-9]\+//g'
+ 	}
+ 
+ 	set_vpngateway_route() {
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/vpnc.git/commitdiff/9397f0909db139dc247e2f1a47f09b415d586d41



More information about the pld-cvs-commit mailing list