vpnc: added patch to fix the 'Error: either "to" is duplicate, or "ipid" is a garbage' bug
Further details are at: http://www.rz.uni-konstanz.de/activekb/questions/250/VPNC+unter+Ubuntu+11.10+%22Error%3A+either+%22to%22+is+duplicate%2C+or+%22ipid%22+is+a+garbage.%22 svn path=/nixpkgs/trunk/; revision=32712
This commit is contained in:
parent
41b3f46f78
commit
57b612cb05
|
@ -7,7 +7,7 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "1128860lis89g1s21hqxvap2nq426c9j4bvgghncc1zj0ays7kj6";
|
||||
};
|
||||
|
||||
patches = [ ./makefile.patch ];
|
||||
patches = [ ./makefile.patch ./vpnc-script.patch ];
|
||||
|
||||
# The `etc/vpnc/vpnc-script' script relies on `which' and on
|
||||
# `ifconfig' as found in net-tools (not GNU Inetutils).
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
diff -ubr vpnc-0.5.3-orig/vpnc-script.in vpnc-0.5.3/vpnc-script.in
|
||||
--- vpnc-0.5.3-orig/vpnc-script.in 2012-02-29 23:03:35.289636602 +0100
|
||||
+++ vpnc-0.5.3/vpnc-script.in 2012-02-29 23:03:59.597307445 +0100
|
||||
@@ -116,7 +116,7 @@
|
||||
|
||||
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/ipid 0x....//g'
|
||||
}
|
||||
|
||||
set_vpngateway_route() {
|
Loading…
Reference in New Issue