2023-07-25 17:36:57 +02:00
|
|
|
{ callPackage, lib, fetchurl, fetchpatch, autoreconfHook }:
|
2010-02-01 17:56:10 +01:00
|
|
|
let
|
2021-09-19 19:10:58 +02:00
|
|
|
common = opts: callPackage (import ./common.nix opts) { };
|
|
|
|
in
|
|
|
|
{
|
2021-03-03 20:33:21 +01:00
|
|
|
openssh = common rec {
|
|
|
|
pname = "openssh";
|
2024-03-11 22:55:15 +01:00
|
|
|
version = "9.7p1";
|
2016-01-02 01:35:43 +01:00
|
|
|
|
2021-03-03 20:33:21 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://openbsd/OpenSSH/portable/openssh-${version}.tar.gz";
|
2024-03-11 22:55:15 +01:00
|
|
|
hash = "sha256-SQQm92bYKidj/KzY2D6j1weYdQx70q/y5X3FZg93P/0=";
|
2021-03-03 20:33:21 +01:00
|
|
|
};
|
2006-12-11 04:24:35 +01:00
|
|
|
|
2021-03-03 20:33:21 +01:00
|
|
|
extraPatches = [ ./ssh-keysign-8.5.patch ];
|
2023-11-17 13:35:31 +01:00
|
|
|
extraMeta.maintainers = lib.teams.helsinki-systems.members;
|
2021-03-03 20:33:21 +01:00
|
|
|
};
|
2013-02-19 11:02:20 +01:00
|
|
|
|
2021-03-03 20:33:21 +01:00
|
|
|
openssh_hpn = common rec {
|
|
|
|
pname = "openssh-with-hpn";
|
2024-03-11 22:39:46 +01:00
|
|
|
version = "9.7p1";
|
2021-03-03 20:33:21 +01:00
|
|
|
extraDesc = " with high performance networking patches";
|
2016-07-16 10:08:29 +02:00
|
|
|
|
2022-01-04 14:37:16 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://openbsd/OpenSSH/portable/openssh-${version}.tar.gz";
|
2024-03-11 22:39:46 +01:00
|
|
|
hash = "sha256-SQQm92bYKidj/KzY2D6j1weYdQx70q/y5X3FZg93P/0=";
|
2021-03-03 20:33:21 +01:00
|
|
|
};
|
2019-01-13 21:26:05 +01:00
|
|
|
|
2024-03-11 22:39:46 +01:00
|
|
|
extraPatches = let url = "https://raw.githubusercontent.com/freebsd/freebsd-ports/b3f86656fc67aa397f60747c85f7f7b967c3279d/security/openssh-portable/files/extra-patch-hpn"; in
|
2023-05-24 10:18:14 +02:00
|
|
|
[
|
2022-01-04 14:37:16 +01:00
|
|
|
./ssh-keysign-8.5.patch
|
2020-11-19 09:15:23 +01:00
|
|
|
|
2022-01-04 14:37:16 +01:00
|
|
|
# HPN Patch from FreeBSD ports
|
|
|
|
(fetchpatch {
|
2023-02-18 12:24:44 +01:00
|
|
|
name = "ssh-hpn-wo-channels.patch";
|
2023-05-24 10:18:14 +02:00
|
|
|
inherit url;
|
2022-01-04 14:37:16 +01:00
|
|
|
stripLen = 1;
|
2023-02-18 12:24:44 +01:00
|
|
|
excludes = [ "channels.c" ];
|
2024-03-11 22:39:46 +01:00
|
|
|
hash = "sha256-MydulQvz8sDVQ6Up9U1yrsiyI5EGmyKl/stUk7DvVOU=";
|
2022-01-04 14:37:16 +01:00
|
|
|
})
|
2023-02-02 16:18:12 +01:00
|
|
|
|
|
|
|
(fetchpatch {
|
2023-02-18 12:24:44 +01:00
|
|
|
name = "ssh-hpn-channels.patch";
|
2023-05-24 10:18:14 +02:00
|
|
|
inherit url;
|
2023-02-18 12:24:44 +01:00
|
|
|
extraPrefix = "";
|
|
|
|
includes = [ "channels.c" ];
|
2023-05-24 10:18:14 +02:00
|
|
|
hash = "sha256-pDLUbjv5XIyByEbiRAXC3WMUPKmn15af1stVmcvr7fE=";
|
2023-02-02 16:18:12 +01:00
|
|
|
})
|
2021-03-03 20:33:21 +01:00
|
|
|
];
|
2017-06-07 09:33:26 +02:00
|
|
|
|
2021-03-03 20:33:21 +01:00
|
|
|
extraNativeBuildInputs = [ autoreconfHook ];
|
2021-03-11 11:57:14 +01:00
|
|
|
|
2022-01-04 14:37:16 +01:00
|
|
|
extraConfigureFlags = [ "--with-hpn" ];
|
2023-03-21 09:22:28 +01:00
|
|
|
extraMeta = {
|
|
|
|
maintainers = with lib.maintainers; [ abbe ];
|
|
|
|
};
|
2021-03-03 20:33:21 +01:00
|
|
|
};
|
2015-07-07 04:29:45 +02:00
|
|
|
|
2021-03-03 20:33:21 +01:00
|
|
|
openssh_gssapi = common rec {
|
|
|
|
pname = "openssh-with-gssapi";
|
2024-04-01 14:07:17 +02:00
|
|
|
version = "9.7p1";
|
2021-03-03 20:33:21 +01:00
|
|
|
extraDesc = " with GSSAPI support";
|
2019-06-20 19:15:33 +02:00
|
|
|
|
2021-03-03 20:33:21 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://openbsd/OpenSSH/portable/openssh-${version}.tar.gz";
|
2024-04-01 14:07:17 +02:00
|
|
|
hash = "sha256-SQQm92bYKidj/KzY2D6j1weYdQx70q/y5X3FZg93P/0=";
|
2021-03-03 20:33:21 +01:00
|
|
|
};
|
2014-11-20 12:12:33 +01:00
|
|
|
|
2021-03-03 20:33:21 +01:00
|
|
|
extraPatches = [
|
2022-07-06 11:34:30 +02:00
|
|
|
./ssh-keysign-8.5.patch
|
2007-05-15 15:10:41 +02:00
|
|
|
|
2021-03-03 20:33:21 +01:00
|
|
|
(fetchpatch {
|
|
|
|
name = "openssh-gssapi.patch";
|
2024-04-01 14:07:17 +02:00
|
|
|
url = "https://salsa.debian.org/ssh-team/openssh/raw/debian/1%25${version}-3/debian/patches/gssapi.patch";
|
|
|
|
hash = "sha256-/lEbH5sIS+o+DStEDAghFy43nZlvcIXSFJrnvp+fDdY=";
|
2021-03-03 20:33:21 +01:00
|
|
|
})
|
|
|
|
];
|
2010-02-01 17:56:10 +01:00
|
|
|
|
2021-03-03 20:33:21 +01:00
|
|
|
extraNativeBuildInputs = [ autoreconfHook ];
|
2010-02-01 17:56:10 +01:00
|
|
|
};
|
2004-08-02 13:55:31 +02:00
|
|
|
}
|