summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authoritojun <itojun@pkgsrc.org>2000-07-01 01:16:39 +0000
committeritojun <itojun@pkgsrc.org>2000-07-01 01:16:39 +0000
commit8effd8614fa565a9a25d4b4ea3fd6917c521fdd1 (patch)
treedfeb0517761757952b1608dba92b4b9e6f172aa6 /security
parentef7d7a19a53e81d08b781fd96e55b72ad1be734a (diff)
downloadpkgsrc-8effd8614fa565a9a25d4b4ea3fd6917c521fdd1.tar.gz
generate dsa host key in post-install.
Diffstat (limited to 'security')
-rw-r--r--security/openssh/Makefile7
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"