diff options
author | itojun <itojun@pkgsrc.org> | 2000-07-01 01:16:39 +0000 |
---|---|---|
committer | itojun <itojun@pkgsrc.org> | 2000-07-01 01:16:39 +0000 |
commit | 8effd8614fa565a9a25d4b4ea3fd6917c521fdd1 (patch) | |
tree | dfeb0517761757952b1608dba92b4b9e6f172aa6 /security/openssh | |
parent | ef7d7a19a53e81d08b781fd96e55b72ad1be734a (diff) | |
download | pkgsrc-8effd8614fa565a9a25d4b4ea3fd6917c521fdd1.tar.gz |
generate dsa host key in post-install.
Diffstat (limited to 'security/openssh')
-rw-r--r-- | security/openssh/Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/security/openssh/Makefile b/security/openssh/Makefile index d6cd02ca5a8..31ec2c9b188 100644 --- a/security/openssh/Makefile +++ b/security/openssh/Makefile @@ -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" |