1PROG= sshd 2SRCS= sshd.c 3 4.PATH: ${.CURDIR}/../../crypto/openssh 5SRCS+= auth.c auth-options.c auth-pam.c auth-passwd.c auth-rhosts.c \ 6 auth2.c auth2-chall.c auth2-hostbased.c auth2-kbdint.c auth2-none.c \ 7 auth2-passwd.c auth2-pubkey.c groupaccess.c loginrec.c \ 8 monitor.c monitor_wrap.c platform.c \ 9 sandbox-rlimit.c servconf.c serverloop.c session.c \ 10 sftp-common.c sftp-server.c sshlogin.c sshpty.c uidswap.c 11 12# not needed: 13# audit-bsm.c audit-linux.c audit.c auth-bsdauth.c auth-krb5.c auth-shadow.c auth-sia.c 14# auth2-gss.c gss-serv-krb5.c gss-serv.c md5crypt.c 15# sandbox-capsicum.c sandbox-darwin.c sandbox-null.c sandbox-pledge.c 16# sandbox-seccomp-filter.c sandbox-solaris.c sandbox-systrace.c 17 18# Custom password routine 19SRCS+= auth-passwd-custom.c 20CFLAGS+= -DCUSTOM_SYS_AUTH_PASSWD 21 22WARNS?= 3 23 24MAN= sshd.8 sshd_config.5 25 26CFLAGS+= -DUSE_PAM 27#CFLAGS+= -DHAVE_SECURITY_PAM_APPL_H -DHAVE_PAM_GETENVLIST -DHAVE_PAM_PUTENV 28 29.if defined(XAUTH_PATH) 30CFLAGS+= -DXAUTH_PATH=\"${XAUTH_PATH}\" 31.endif 32 33LDADD+= -lcrypt ${MINUSLPAM} 34DPADD+= ${LIBCRYPT} ${LIBPAM} 35 36CFLAGS+= -I${.CURDIR}/../../lib/libssh -I${.CURDIR}/../../crypto/openssh 37CFLAGS+= -I${.CURDIR}/../../crypto/libressl/include 38DPADD+= ${LIBSSH} ${LIBCRYPTO} ${LIBUTIL} ${LIBZ} 39LDADD+= -lprivate_ssh -lprivate_crypto -lutil -lz 40LDFLAGS+= -rpath /usr/lib/priv ${PRIVATELIB_LDFLAGS} 41 42.include <bsd.prog.mk> 43