summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorveego <veego>2001-10-19 09:42:29 +0000
committerveego <veego>2001-10-19 09:42:29 +0000
commit6aa705ba552009e79485e7b09bb9acbac3affeb8 (patch)
tree9dae046deeca2ac301f264cedd8fb855d45c606e /security
parentf1fa9ec9f6fe86d5e097c2c183870f79e1984396 (diff)
downloadpkgsrc-6aa705ba552009e79485e7b09bb9acbac3affeb8.tar.gz
Use @MKDIR@.
Generate ssh_host_rsa_key and use a newer syntax of ssh-keygen to create ssh_host_key and ssh_host_dsa_key.
Diffstat (limited to 'security')
-rw-r--r--security/openssh/pkg/INSTALL16
-rw-r--r--security/openssh/pkg/INSTALL.SunOS16
2 files changed, 22 insertions, 10 deletions
diff --git a/security/openssh/pkg/INSTALL b/security/openssh/pkg/INSTALL
index 93fa63c3bc1..0c41f620b08 100644
--- a/security/openssh/pkg/INSTALL
+++ b/security/openssh/pkg/INSTALL
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: INSTALL,v 1.5 2001/04/04 23:40:53 hubertf Exp $
+# $NetBSD: INSTALL,v 1.6 2001/10/19 09:42:29 veego Exp $
PKGNAME=$1
STAGE=$2
@@ -30,7 +30,7 @@ POST-INSTALL)
if [ ! -d ${SSH_CONF_DIR} ]
then
echo "Creating directory ${SSH_CONF_DIR} for ssh config files.."
- mkdir -p ${SSH_CONF_DIR}
+ @MKDIR@ ${SSH_CONF_DIR}
fi
for file in ssh_config sshd_config
do
@@ -43,14 +43,20 @@ POST-INSTALL)
done
if [ ! -f ${SSH_CONF_DIR}/ssh_host_key ]
then
- echo "Generating an RSA secret host key in ${SSH_CONF_DIR}.."
- ${PKG_PREFIX}/bin/ssh-keygen -b 1024 -N "" \
+ echo "Generating an RSA1 secret host key in ${SSH_CONF_DIR}.."
+ ${PKG_PREFIX}/bin/ssh-keygen -t rsa1 -N "" \
-f ${SSH_CONF_DIR}/ssh_host_key
fi
+ if [ ! -f ${SSH_CONF_DIR}/ssh_host_rsa_key ]
+ then
+ echo "Generating an RSA secret host key in ${SSH_CONF_DIR}.."
+ ${PKG_PREFIX}/bin/ssh-keygen -t rsa -N "" \
+ -f ${SSH_CONF_DIR}/ssh_host_rsa_key
+ fi
if [ ! -f ${SSH_CONF_DIR}/ssh_host_dsa_key ]
then
echo "Generating a DSA secret host key in ${SSH_CONF_DIR}.."
- ${PKG_PREFIX}/bin/ssh-keygen -d -N "" \
+ ${PKG_PREFIX}/bin/ssh-keygen -t dsa -N "" \
-f ${SSH_CONF_DIR}/ssh_host_dsa_key
fi
;;
diff --git a/security/openssh/pkg/INSTALL.SunOS b/security/openssh/pkg/INSTALL.SunOS
index ca45708f943..9f1bfda9375 100644
--- a/security/openssh/pkg/INSTALL.SunOS
+++ b/security/openssh/pkg/INSTALL.SunOS
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: INSTALL.SunOS,v 1.3 2001/07/12 06:17:02 tron Exp $
+# $NetBSD: INSTALL.SunOS,v 1.4 2001/10/19 09:42:30 veego Exp $
PKGNAME=$1
STAGE=$2
@@ -16,7 +16,7 @@ POST-INSTALL)
if [ ! -d ${SSH_CONF_DIR} ]
then
echo "Creating directory ${SSH_CONF_DIR} for ssh config files.."
- mkdir -p ${SSH_CONF_DIR}
+ @MKDIR@ ${SSH_CONF_DIR}
fi
cd ${SSH_EXAMPLE_DIR}
for file in ssh_config ssh_prng_cmds sshd_config
@@ -30,14 +30,20 @@ POST-INSTALL)
done
if [ ! -f ${SSH_CONF_DIR}/ssh_host_key ]
then
- echo "Generating an RSA secret host key in ${SSH_CONF_DIR}.."
- ${PKG_PREFIX}/bin/ssh-keygen -b 1024 -N "" \
+ echo "Generating an RSA1 secret host key in ${SSH_CONF_DIR}.."
+ ${PKG_PREFIX}/bin/ssh-keygen -t rsa1 -N ""
-f ${SSH_CONF_DIR}/ssh_host_key
fi
+ if [ ! -f ${SSH_CONF_DIR}/ssh_host_rsa_key ]
+ then
+ echo "Generating a RSA secret host key in ${SSH_CONF_DIR}.."
+ ${PKG_PREFIX}/bin/ssh-keygen -t rsa -N "" \
+ -f ${SSH_CONF_DIR}/ssh_host_rsa_key
+ fi
if [ ! -f ${SSH_CONF_DIR}/ssh_host_dsa_key ]
then
echo "Generating a DSA secret host key in ${SSH_CONF_DIR}.."
- ${PKG_PREFIX}/bin/ssh-keygen -d -N "" \
+ ${PKG_PREFIX}/bin/ssh-keygen -t dsa -N "" \
-f ${SSH_CONF_DIR}/ssh_host_dsa_key
fi
;;