summary refs log tree commit diff
path: root/pkgs/tools
diff options
context:
space:
mode:
authorLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2009-11-02 21:49:06 +0000
committerLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2009-11-02 21:49:06 +0000
commit3cc62cefa853fab4784d4a0444ea508cdde51237 (patch)
treeeb7e5dbc5f9a526b7a22424e45ae9fd0b390d8c1 /pkgs/tools
parentee18789ca41156e7074c77b7ecf02e00e8f625ed (diff)
Finally I decided to add High Performance SSH.
http://www.psc.edu/networking/projects/hpn-ssh/

I tried to keep the openssh hash not changing, unless the user sets hpn in getConfig
style. I think that does not look as good as a patch changing the hash, but it may
annoy less. Let me know if it is not ok.

I don't think hpn should be the default, because it may have some insecurity implications
I don't know of. But I used to enable it in all my machines, and I hope to do so unless
advised otherwise.

svn path=/nixpkgs/trunk/; revision=18073
Diffstat (limited to 'pkgs/tools')
-rw-r--r--pkgs/tools/networking/openssh/default.nix15
1 files changed, 14 insertions, 1 deletions
diff --git a/pkgs/tools/networking/openssh/default.nix b/pkgs/tools/networking/openssh/default.nix
index b91c6a89c03d0..8a1d466634235 100644
--- a/pkgs/tools/networking/openssh/default.nix
+++ b/pkgs/tools/networking/openssh/default.nix
@@ -1,11 +1,12 @@
 { stdenv, fetchurl, zlib, openssl, perl
 , pamSupport ? false, pam ? null
 , etcDir ? null
+, hpnSupport ? false
 }:
 
 assert pamSupport -> pam != null;
 
-stdenv.mkDerivation rec {
+stdenv.mkDerivation (rec {
   name = "openssh-5.2p1";
 
   src = fetchurl {
@@ -36,4 +37,16 @@ stdenv.mkDerivation rec {
   ";
 
   installTargets = "install-nosysconf";
+} //
+(if hpnSupport then
+rec {
+   hpnSrc = fetchurl {
+     url = http://www.psc.edu/networking/projects/hpn-ssh/openssh-5.2p1-hpn13v6.diff.gz;
+     sha256 = "1g91xl1vfg772072qcbcfzyqj7yfvm38xgk8zyy8wsl2g81rb8wh";
+   };
+
+   patchPhase = ''
+     gunzip -c ${hpnSrc} | patch -p1
+   '';
 }
+else {}))