OpenSSH: add Kerberos support
This commit is contained in:
committed by
Evgeny Egorochkin
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 =
|
||||
|
||||
Reference in New Issue
Block a user