xref: /dragonfly/usr.sbin/sshd/Makefile.etc (revision 73b5ca6b)
1*73b5ca6bSzrj.PATH: ${.CURDIR}/../../crypto/openssh
2*73b5ca6bSzrj
30fe46dc6SMatthew DillonFILES=		sshd_config
40fe46dc6SMatthew DillonFILESDIR=	/etc/ssh
50fe46dc6SMatthew DillonFILESMODE=	644
60fe46dc6SMatthew DillonFILESOWN=	${BINOWN}
70fe46dc6SMatthew DillonFILESGRP=	${BINGRP}
80fe46dc6SMatthew Dillon
94652e16aSMatthew Dillon# Make sure sshd_config disables PasswordAuthentication
104652e16aSMatthew Dillon#
114652e16aSMatthew Dillonbeforeinstall:
124652e16aSMatthew Dillon	@if [ "`(cat ${.CURDIR}/../../crypto/openssh/sshd_config | sort | uniq; cat ${.CURDIR}/sshd_config_expect) | sort | uniq -d | wc -l`" != "`cat ${.CURDIR}/sshd_config_expect | wc -l`" ]; then \
134652e16aSMatthew Dillon		echo "crypto sshd_config missing expected directives"; \
144652e16aSMatthew Dillon		exit 1;	\
154652e16aSMatthew Dillon	fi
164652e16aSMatthew Dillon
170fe46dc6SMatthew Dillon.include <bsd.prog.mk>
18