diff options
author | Thomas Strobel <ts468@cam.ac.uk> | 2015-09-06 19:20:54 +0200 |
---|---|---|
committer | Thomas Strobel <ts468@cam.ac.uk> | 2015-09-06 19:27:08 +0200 |
commit | 167383c7bff40cc3bc6371808291307e08997b03 (patch) | |
tree | f83cbfe25f03ce4dd714ab7bb865b91bedcc37f7 /pkgs/tools | |
parent | 092a5eea285ea5eb142b1a4c41f1ca0f2cd28d65 (diff) | |
download | nixpkgs-167383c7bff40cc3bc6371808291307e08997b03.tar nixpkgs-167383c7bff40cc3bc6371808291307e08997b03.tar.gz nixpkgs-167383c7bff40cc3bc6371808291307e08997b03.tar.bz2 nixpkgs-167383c7bff40cc3bc6371808291307e08997b03.tar.lz nixpkgs-167383c7bff40cc3bc6371808291307e08997b03.tar.xz nixpkgs-167383c7bff40cc3bc6371808291307e08997b03.tar.zst nixpkgs-167383c7bff40cc3bc6371808291307e08997b03.zip |
vpnc: patch to not set a default route when a netmask is given
also, fix the name attribute in the nix expression
Diffstat (limited to 'pkgs/tools')
-rw-r--r-- | pkgs/tools/networking/vpnc/default.nix | 4 | ||||
-rw-r--r-- | pkgs/tools/networking/vpnc/no_default_route_when_netmask.patch | 12 |
2 files changed, 14 insertions, 2 deletions
diff --git a/pkgs/tools/networking/vpnc/default.nix b/pkgs/tools/networking/vpnc/default.nix index 5d8971e5c6f..c62d5addb59 100644 --- a/pkgs/tools/networking/vpnc/default.nix +++ b/pkgs/tools/networking/vpnc/default.nix @@ -1,7 +1,7 @@ { stdenv, fetchsvn, nettools, libgcrypt, openssl, openresolv, perl, gawk, makeWrapper }: stdenv.mkDerivation rec { - name = "vpnc-rev550"; + name = "vpnc-0.5.3-post-r550"; src = fetchsvn { url = "http://svn.unix-ag.uni-kl.de/vpnc"; rev = "550"; @@ -13,7 +13,7 @@ stdenv.mkDerivation rec { rm -r $sourceRoot/{trunk,branches,tags} ''; - patches = [ ./makefile.patch ]; + patches = [ ./makefile.patch ./no_default_route_when_netmask.patch ]; # The `etc/vpnc/vpnc-script' script relies on `which' and on # `ifconfig' as found in net-tools (not GNU Inetutils). diff --git a/pkgs/tools/networking/vpnc/no_default_route_when_netmask.patch b/pkgs/tools/networking/vpnc/no_default_route_when_netmask.patch new file mode 100644 index 00000000000..fa12abe9b77 --- /dev/null +++ b/pkgs/tools/networking/vpnc/no_default_route_when_netmask.patch @@ -0,0 +1,12 @@ +diff -uNr a/vpnc-script b/vpnc-script +--- a/vpnc-script 2015-09-06 13:19:11.408661526 +0200 ++++ b/vpnc-script 2015-09-06 14:47:40.260871556 +0200 +@@ -647,7 +647,7 @@ + echo "$i" | grep : >/dev/null || \ + set_network_route "$i" "255.255.255.255" "32" + done +- elif [ -n "$INTERNAL_IP4_ADDRESS" ]; then ++ elif [ -n "$INTERNAL_IP4_ADDRESS" -a -z "$INTERNAL_IP4_NETMASK" ]; then + set_default_route + fi + if [ -n "$CISCO_IPV6_SPLIT_INC" ]; then |