1# $FreeBSD$ 2 3.include <src.opts.mk> 4 5CONFS= moduli sshd_config 6CONFSDIR= /etc/ssh 7PROG= sshd 8SRCS= sshd.c auth-rhosts.c auth-passwd.c \ 9 audit.c audit-bsm.c audit-linux.c platform.c \ 10 sshpty.c sshlogin.c servconf.c serverloop.c \ 11 auth.c auth2.c auth-options.c session.c \ 12 auth2-chall.c groupaccess.c \ 13 auth-skey.c auth-bsdauth.c auth2-hostbased.c auth2-kbdint.c \ 14 auth2-none.c auth2-passwd.c auth2-pubkey.c \ 15 monitor.c monitor_wrap.c auth-krb5.c \ 16 auth2-gss.c gss-serv.c gss-serv-krb5.c \ 17 loginrec.c auth-pam.c auth-shadow.c auth-sia.c md5crypt.c \ 18 sftp-server.c sftp-common.c \ 19 sandbox-null.c sandbox-rlimit.c sandbox-systrace.c sandbox-darwin.c \ 20 sandbox-seccomp-filter.c sandbox-capsicum.c sandbox-pledge.c \ 21 sandbox-solaris.c 22PACKAGE= ssh 23 24# gss-genr.c really belongs in libssh; see src/secure/lib/libssh/Makefile 25SRCS+= gss-genr.c 26 27MAN= sshd.8 sshd_config.5 28CFLAGS+=-I${SSHDIR} -include ssh_namespace.h 29SRCS+= ssh_namespace.h 30 31# Don't rebuild based on moduli.c 32moduli: .MADE 33 34# pam should always happen before ssh here for static linking 35LIBADD= pam ssh util 36 37.if ${MK_LDNS} != "no" 38CFLAGS+= -DHAVE_LDNS=1 39#DPADD+= ${LIBLDNS} 40#LDADD+= -lldns 41.endif 42 43.if ${MK_AUDIT} != "no" 44CFLAGS+= -DUSE_BSM_AUDIT=1 -DHAVE_GETAUDIT_ADDR=1 45LIBADD+= bsm 46.endif 47 48.if ${MK_BLACKLIST_SUPPORT} != "no" 49CFLAGS+= -DUSE_BLACKLIST=1 -I${SRCTOP}/contrib/blacklist/include 50SRCS+= blacklist.c 51LIBADD+= blacklist 52LDFLAGS+=-L${LIBBLACKLISTDIR} 53.endif 54 55.if ${MK_GSSAPI} != "no" && ${MK_KERBEROS_SUPPORT} != "no" 56CFLAGS+= -include krb5_config.h 57SRCS+= krb5_config.h 58LIBADD+= gssapi_krb5 gssapi krb5 59.endif 60 61.if ${MK_TCP_WRAPPERS} != "no" 62CFLAGS+= -DLIBWRAP=1 63LIBADD+= wrap 64.endif 65 66LIBADD+= crypto 67 68.if defined(LOCALBASE) 69CFLAGS+= -DXAUTH_PATH=\"${LOCALBASE}/bin/xauth\" 70.endif 71 72.include <bsd.prog.mk> 73 74.PATH: ${SSHDIR} 75