mount_msdos: Oops, really sort.
[dragonfly.git] / usr.sbin / sshd / Makefile.etc
1 .PATH: ${.CURDIR}/../../crypto/openssh
2
3 FILES=          sshd_config
4 FILESDIR=       /etc/ssh
5 FILESMODE=      644
6 FILESOWN=       ${BINOWN}
7 FILESGRP=       ${BINGRP}
8
9 # Make sure sshd_config disables PasswordAuthentication
10 #
11 beforeinstall:
12         @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 \
13                 echo "crypto sshd_config missing expected directives"; \
14                 exit 1; \
15         fi
16
17 .include <bsd.prog.mk>