gnu: openssh: Enable kerberos features.
authorJohn Darrington <jmd@gnu.org>
Sun, 16 Oct 2016 06:31:55 +0000 (08:31 +0200)
committerJohn Darrington <jmd@gnu.org>
Mon, 17 Oct 2016 19:52:53 +0000 (21:52 +0200)
* gnu/packages/ssh.scm (openssh) [arguments]: Add flag --with-kerberos5.
[inputs]: Add mit-krb5.

gnu/packages/ssh.scm

index c551f18..9fd1506 100644 (file)
@@ -37,6 +37,7 @@
   #:use-module (gnu packages multiprecision)
   #:use-module (gnu packages ncurses)
   #:use-module (gnu packages nettle)
+  #:use-module (gnu packages mit-krb5)
   #:use-module (gnu packages perl)
   #:use-module (gnu packages pkg-config)
   #:autoload   (gnu packages protobuf) (protobuf)
@@ -126,15 +127,21 @@ a server that supports the SSH-2 protocol.")
    (inputs `(("groff" ,groff)
              ("openssl" ,openssl)
              ("pam" ,linux-pam)
+             ("mit-krb5" ,mit-krb5)
              ("zlib" ,zlib)
              ("xauth" ,xauth)))                   ;for 'ssh -X' and 'ssh -Y'
    (arguments
     `(#: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"
 
+                          ;; configure needs to find krb5-config
+                          ,(string-append "--with-kerberos5="
+                                          (assoc-ref %build-inputs "mit-krb5")
+                                          "/bin")
+
                           ;; Enable PAM support in sshd.
                           "--with-pam")