OpenSSH: add Kerberos support
This commit is contained in:
parent
77cf3c3e0c
commit
2c089337e7
@ -1,8 +1,12 @@
|
||||
{ stdenv, fetchurl, zlib, openssl, perl, libedit, pkgconfig, pam
|
||||
, etcDir ? null
|
||||
, hpnSupport ? false
|
||||
, withKerberos ? false
|
||||
, kerberos
|
||||
}:
|
||||
|
||||
assert withKerberos -> kerberos != null;
|
||||
|
||||
let
|
||||
|
||||
hpnSrc = fetchurl {
|
||||
@ -28,7 +32,9 @@ stdenv.mkDerivation rec {
|
||||
|
||||
patches = [ ./locale_archive.patch ];
|
||||
|
||||
buildInputs = [ zlib openssl libedit pkgconfig pam ];
|
||||
buildInputs = [ zlib openssl libedit pkgconfig pam ] ++
|
||||
(if withKerberos then [ kerberos ] else [])
|
||||
;
|
||||
|
||||
# I set --disable-strip because later we strip anyway. And it fails to strip
|
||||
# properly when cross building.
|
||||
@ -39,6 +45,7 @@ stdenv.mkDerivation rec {
|
||||
--disable-strip
|
||||
${if pam != null then "--with-pam" else "--without-pam"}
|
||||
${if etcDir != null then "--sysconfdir=${etcDir}" else ""}
|
||||
${if withKerberos then "--with-kerberos5=${kerberos}" else ""}
|
||||
'';
|
||||
|
||||
preConfigure =
|
||||
|
@ -1420,11 +1420,14 @@ let
|
||||
|
||||
opensc_dnie_wrapper = callPackage ../tools/security/opensc-dnie-wrapper { };
|
||||
|
||||
openssh = callPackage ../tools/networking/openssh {
|
||||
hpnSupport = false;
|
||||
etcDir = "/etc/ssh";
|
||||
pam = if stdenv.isLinux then pam else null;
|
||||
};
|
||||
openssh =
|
||||
callPackage ../tools/networking/openssh {
|
||||
hpnSupport = false;
|
||||
withKerberos = false;
|
||||
etcDir = "/etc/ssh";
|
||||
pam = if stdenv.isLinux then pam else null;
|
||||
};
|
||||
openssh_with_kerberos = lowPrio (pkgs.appendToName "with-kerberos" (openssh.override { withKerberos = true; }));
|
||||
|
||||
opensp = callPackage ../tools/text/sgml/opensp { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user