aboutsummaryrefslogtreecommitdiff
path: root/secure/libexec/sshd-auth
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2025-08-26 19:04:16 +0000
committerEd Maste <emaste@FreeBSD.org>2025-08-26 19:04:16 +0000
commit8e28d84935f2f0ee081d44f9803f3052b960e50b (patch)
tree94429fd27871fbcfc060d93071e8faade9e2733b /secure/libexec/sshd-auth
parentc553872b778ebd094156cf87bb553de23bfc4399 (diff)
parent9792a032f0a99557271d6b7f7b0a955386c1fdbe (diff)
Diffstat (limited to 'secure/libexec/sshd-auth')
-rw-r--r--secure/libexec/sshd-auth/Makefile58
1 files changed, 58 insertions, 0 deletions
diff --git a/secure/libexec/sshd-auth/Makefile b/secure/libexec/sshd-auth/Makefile
new file mode 100644
index 000000000000..6fc0626982db
--- /dev/null
+++ b/secure/libexec/sshd-auth/Makefile
@@ -0,0 +1,58 @@
+.include <src.opts.mk>
+.include "${SRCTOP}/secure/ssh.mk"
+
+PROG= sshd-auth
+SRCS= sshd-auth.c \
+ auth2-methods.c \
+ auth-rhosts.c auth-passwd.c sshpty.c sshlogin.c servconf.c \
+ serverloop.c auth.c auth2.c auth-options.c session.c auth2-chall.c \
+ groupaccess.c auth-bsdauth.c auth2-hostbased.c auth2-kbdint.c \
+ auth2-none.c auth2-passwd.c auth2-pubkey.c auth2-pubkeyfile.c \
+ auth2-gss.c gss-serv.c gss-serv-krb5.c \
+ monitor_wrap.c auth-krb5.c \
+ audit.c audit-bsm.c audit-linux.c platform.c \
+ loginrec.c auth-pam.c auth-shadow.c auth-sia.c \
+ sandbox-null.c sandbox-rlimit.c sandbox-darwin.c \
+ sandbox-seccomp-filter.c sandbox-capsicum.c sandbox-solaris.c \
+ sftp-server.c sftp-common.c \
+ uidswap.c $(SKSRCS)
+PACKAGE= ssh
+
+# gss-genr.c really belongs in libssh; see src/secure/lib/libssh/Makefile
+SRCS+= gss-genr.c
+
+MAN=
+
+# pam should always happen before ssh here for static linking
+LIBADD= pam ssh util
+
+.if ${MK_AUDIT} != "no"
+CFLAGS+= -DUSE_BSM_AUDIT=1 -DHAVE_GETAUDIT_ADDR=1
+LIBADD+= bsm
+.endif
+
+.if ${MK_BLACKLIST_SUPPORT} != "no"
+CFLAGS+= -DUSE_BLACKLIST=1 -I${SRCTOP}/contrib/blocklist/include
+SRCS+= blacklist.c
+LIBADD+= blacklist
+LDFLAGS+=-L${LIBBLACKLISTDIR}
+.endif
+
+.if ${MK_GSSAPI} != "no" && ${MK_KERBEROS_SUPPORT} != "no"
+LIBADD+= gssapi_krb5 gssapi krb5
+.if ${MK_MITKRB5} != "no"
+.include "../../krb5/Makefile.inc"
+CFLAGS+= -I${KRB5_DIR}/include \
+ -I${KRB5_SRCTOP}/include \
+ -I${KRB5_OBJTOP}/lib \
+ -I${KRB5_DIR}/lib/gssapi/generic \
+ -I${KRB5_DIR}/lib/gssapi/krb5 \
+ -I${KRB5_DIR}/lib/gssapi/mechglue
+.endif
+.endif
+
+LIBADD+= crypto
+
+.include <bsd.prog.mk>
+
+.PATH: ${SSHDIR}