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