openssh: 8.2p1 -> 8.3p1
compile openssh_hpn with recent openssl
This commit is contained in:
parent
650b652732
commit
f034637a5b
2 changed files with 20 additions and 12 deletions
|
@ -1,4 +1,12 @@
|
|||
{ stdenv, fetchurl, fetchpatch, zlib, openssl, libedit, pkgconfig, pam, autoreconfHook
|
||||
{ stdenv
|
||||
, fetchurl
|
||||
, fetchpatch
|
||||
, zlib
|
||||
, openssl
|
||||
, libedit
|
||||
, pkgconfig
|
||||
, pam
|
||||
, autoreconfHook
|
||||
, etcDir ? null
|
||||
, hpnSupport ? false
|
||||
, withKerberos ? true
|
||||
|
@ -6,33 +14,35 @@
|
|||
, kerberos
|
||||
, libfido2
|
||||
, withFIDO ? stdenv.hostPlatform.isUnix && !stdenv.hostPlatform.isMusl
|
||||
, linkOpenssl? true
|
||||
, linkOpenssl ? true
|
||||
}:
|
||||
|
||||
let
|
||||
|
||||
version = "8.3p1";
|
||||
|
||||
# **please** update this patch when you update to a new openssh release.
|
||||
gssapiPatch = fetchpatch {
|
||||
name = "openssh-gssapi.patch";
|
||||
url = "https://salsa.debian.org/ssh-team/openssh/raw/debian/1%258.2p1-1/debian/patches/gssapi.patch";
|
||||
sha256 = "081gryqkfr5zr4f5m4v0piq1sxz06sb38z5lqxccgpivql7pa8d8";
|
||||
url = "https://salsa.debian.org/ssh-team/openssh/raw/debian/1%25${version}-1/debian/patches/gssapi.patch";
|
||||
sha256 = "0j22ccg6msyi88mpsb6x0il5cg8v2b7qdah57ninbwx5isyld80l";
|
||||
};
|
||||
|
||||
in
|
||||
with stdenv.lib;
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "openssh";
|
||||
version = if hpnSupport then "8.1p1" else "8.2p1";
|
||||
inherit version;
|
||||
|
||||
src = if hpnSupport then
|
||||
fetchurl {
|
||||
url = "https://github.com/rapier1/openssh-portable/archive/hpn-KitchenSink-8_1_P1.tar.gz";
|
||||
sha256 = "1xiv28df9c15h44fv1i93fq8rvkyapjj9vj985ndnw3xk1nvqjyd";
|
||||
url = "https://github.com/rapier1/openssh-portable/archive/hpn-KitchenSink-${replaceStrings [ "." "p" ] [ "_" "_P" ] version}.tar.gz";
|
||||
sha256 = "0lwr7xzhy8m4y0vzi1a78ddhag3qp6cba0c37mnhivbhb67dkywp";
|
||||
}
|
||||
else
|
||||
fetchurl {
|
||||
url = "mirror://openbsd/OpenSSH/portable/${pname}-${version}.tar.gz";
|
||||
sha256 = "0wg6ckzvvklbzznijxkk28fb8dnwyjd0w30ra0afwv6gwr8m34j3";
|
||||
sha256 = "1cl74ghi9y21dc3f4xa0qamb7dhwacbynh1ks9syprrg8zhgpgpj";
|
||||
};
|
||||
|
||||
patches =
|
||||
|
@ -99,8 +109,9 @@ stdenv.mkDerivation rec {
|
|||
];
|
||||
|
||||
meta = {
|
||||
homepage = "http://www.openssh.com/";
|
||||
description = "An implementation of the SSH protocol";
|
||||
homepage = "https://www.openssh.com/";
|
||||
changelog = "https://www.openssh.com/releasenotes.html";
|
||||
license = stdenv.lib.licenses.bsd2;
|
||||
platforms = platforms.unix ++ platforms.windows;
|
||||
maintainers = with maintainers; [ eelco aneeshusa ];
|
||||
|
|
|
@ -5786,9 +5786,6 @@ in
|
|||
|
||||
openssh_hpn = pkgs.appendToName "with-hpn" (openssh.override {
|
||||
hpnSupport = true;
|
||||
# the hpn patchset does not yet support openssl>1.0.2
|
||||
# https://github.com/rapier1/openssh-portable/issues/14
|
||||
openssl = openssl_1_0_2;
|
||||
});
|
||||
|
||||
openssh_gssapi = pkgs.appendToName "with-gssapi" (openssh.override {
|
||||
|
|
Loading…
Reference in a new issue