Fixing openssh hpn support for 6.1p1
I had to write a weird download derivation to overcome their download procedure.
This commit is contained in:
parent
e7f1aeb2c5
commit
cde20d6951
@ -1,13 +1,30 @@
|
|||||||
{ stdenv, fetchurl, zlib, openssl, perl, libedit, pkgconfig, pam
|
{ stdenv, fetchurl, zlib, openssl, perl, libedit, pkgconfig, pam, curl
|
||||||
, etcDir ? null
|
, etcDir ? null
|
||||||
, hpnSupport ? false
|
, hpnSupport ? false
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
|
||||||
hpnSrc = fetchurl {
|
# Ugly download
|
||||||
url = http://www.psc.edu/networking/projects/hpn-ssh/openssh-5.9p1-hpn13v12.diff.gz;
|
hpnSrc = stdenv.mkDerivation {
|
||||||
sha256 = "0h1h45vic4zks5bc5mvkc50rlgy2c219vn3rmpmalgm5hws9qjbl";
|
name = "openssh-6.1p1-hpn13v14.diff.gz";
|
||||||
|
|
||||||
|
buildInputs = [ curl ];
|
||||||
|
|
||||||
|
url = "http://www.psc.edu/index.php/component/remository/HPN-SSH/OpenSSH-6.1-Patches/HPN-SSH-Kitchen-Sink-Patch-for-OpenSSH-6.1/";
|
||||||
|
|
||||||
|
phases = [ "installPhase" ];
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
URL2=$(curl -c cookies.jar "$url" | grep "window.location" |
|
||||||
|
sed 's,.*\(http:/.*\)'"'"'},\1,')
|
||||||
|
URL3=$(curl -b cookies.jar -c cookies.jar "$URL2" | grep "window.location" |
|
||||||
|
sed 's,.*\(http:/.*\)'"'"'},\1,')
|
||||||
|
curl -b cookies.jar "$URL3" > $out
|
||||||
|
'';
|
||||||
|
|
||||||
|
outputHashAlgo = "sha256";
|
||||||
|
outputHash = "14das6lim6fxxnx887ssw76ywsbvx3s4q3n43afgh5rgvs4xmnnq";
|
||||||
};
|
};
|
||||||
|
|
||||||
in
|
in
|
||||||
|
Loading…
x
Reference in New Issue
Block a user