generate dsa host key in post-install.
This commit is contained in:
parent
ef7d7a19a5
commit
8effd8614f
1 changed files with 6 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.13 2000/06/15 04:56:50 itojun Exp $
|
||||
# $NetBSD: Makefile,v 1.14 2000/07/01 01:16:39 itojun Exp $
|
||||
#
|
||||
|
||||
DISTNAME= openssh-2.1.1p1
|
||||
|
@ -67,6 +67,11 @@ post-install:
|
|||
${PREFIX}/bin/ssh-keygen \
|
||||
-f ${SSH_CONF_DIR}/ssh_host_key -N ""; \
|
||||
fi
|
||||
if [ ! -f ${SSH_CONF_DIR}/ssh_host_dsa_key ]; then \
|
||||
${ECHO} "Generating a DSA secret host key..."; \
|
||||
${PREFIX}/bin/ssh-keygen \
|
||||
-d -f ${SSH_CONF_DIR}/ssh_host_dsa_key -N ""; \
|
||||
fi
|
||||
${INSTALL_SCRIPT} ${WRKDIR}/sshd.sh ${PREFIX}/etc/rc.d/sshd.sh
|
||||
|
||||
.include "../../mk/bsd.pkg.mk"
|
||||
|
|
Loading…
Reference in a new issue