gnu: openssh: Enable kerberos features.

* gnu/packages/ssh.scm (openssh) [arguments]: Add flag --with-kerberos5.
[inputs]: Add mit-krb5.
This commit is contained in:
John Darrington 2016-10-16 08:31:55 +02:00
parent cd829fe306
commit 040b6299d5
No known key found for this signature in database
GPG Key ID: 8A67719C2DE827B3
1 changed files with 9 additions and 2 deletions

View File

@ -37,6 +37,7 @@
#:use-module (gnu packages multiprecision) #:use-module (gnu packages multiprecision)
#:use-module (gnu packages ncurses) #:use-module (gnu packages ncurses)
#:use-module (gnu packages nettle) #:use-module (gnu packages nettle)
#:use-module (gnu packages mit-krb5)
#:use-module (gnu packages perl) #:use-module (gnu packages perl)
#:use-module (gnu packages pkg-config) #:use-module (gnu packages pkg-config)
#:autoload (gnu packages protobuf) (protobuf) #:autoload (gnu packages protobuf) (protobuf)
@ -126,15 +127,21 @@ a server that supports the SSH-2 protocol.")
(inputs `(("groff" ,groff) (inputs `(("groff" ,groff)
("openssl" ,openssl) ("openssl" ,openssl)
("pam" ,linux-pam) ("pam" ,linux-pam)
("mit-krb5" ,mit-krb5)
("zlib" ,zlib) ("zlib" ,zlib)
("xauth" ,xauth))) ;for 'ssh -X' and 'ssh -Y' ("xauth" ,xauth))) ;for 'ssh -X' and 'ssh -Y'
(arguments (arguments
`(#:test-target "tests" `(#:test-target "tests"
#:configure-flags '("--sysconfdir=/etc/ssh" #:configure-flags `("--sysconfdir=/etc/ssh"
;; Default value of 'PATH' used by sshd. ;; Default value of 'PATH' used by sshd.
"--with-default-path=/run/current-system/profile/bin" "--with-default-path=/run/current-system/profile/bin"
;; configure needs to find krb5-config
,(string-append "--with-kerberos5="
(assoc-ref %build-inputs "mit-krb5")
"/bin")
;; Enable PAM support in sshd. ;; Enable PAM support in sshd.
"--with-pam") "--with-pam")