git: dcb4ae528d35 - main - openssh: Add GSSAPI and Kerberos support to sshd Makefile

From: Jose Luis Duran <jlduran_at_FreeBSD.org>
Date: Thu, 20 Feb 2025 04:19:49 UTC
The branch main has been updated by jlduran:

URL: https://cgit.FreeBSD.org/src/commit/?id=dcb4ae528d357f34e4a4b4882c2757c67c98e395

commit dcb4ae528d357f34e4a4b4882c2757c67c98e395
Author:     Jose Luis Duran <jlduran@FreeBSD.org>
AuthorDate: 2025-02-20 04:11:30 +0000
Commit:     Jose Luis Duran <jlduran@FreeBSD.org>
CommitDate: 2025-02-20 04:18:04 +0000

    openssh: Add GSSAPI and Kerberos support to sshd Makefile
    
    Reported by:    cy
    Reviewed by:    emaste
    Approved by:    emaste (mentor)
    Fixes:  0fdf8fae8b56 ("openssh: Update to 9.8p1")
---
 secure/usr.sbin/sshd/Makefile | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/secure/usr.sbin/sshd/Makefile b/secure/usr.sbin/sshd/Makefile
index 4e1f330076b4..d5bcf008e233 100644
--- a/secure/usr.sbin/sshd/Makefile
+++ b/secure/usr.sbin/sshd/Makefile
@@ -16,6 +16,12 @@ moduli: .MADE
 
 LIBADD=	ssh util
 
+.if ${MK_GSSAPI} != "no" && ${MK_KERBEROS_SUPPORT} != "no"
+CFLAGS+= -include krb5_config.h
+SRCS+=	krb5_config.h
+LIBADD+=	gssapi_krb5 gssapi krb5
+.endif
+
 .if ${MK_TCP_WRAPPERS} != "no"
 CFLAGS+=	-DLIBWRAP=1
 LIBADD+=	wrap