summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authortron <tron>2001-07-12 06:17:02 +0000
committertron <tron>2001-07-12 06:17:02 +0000
commit7a7cf2ccce28450382a15410b6d99849875cbe5c (patch)
tree1976350da82237c95cf4fe2bdce6cb5bddf7ae75 /security
parenta861182ddbcffad25b10c7103477a9da7ce56394 (diff)
downloadpkgsrc-7a7cf2ccce28450382a15410b6d99849875cbe5c.tar.gz
Properly handle the case that precompile package doesn't include a
"ssh_prng_cmds".
Diffstat (limited to 'security')
-rw-r--r--security/openssh/pkg/INSTALL.SunOS7
1 files changed, 4 insertions, 3 deletions
diff --git a/security/openssh/pkg/INSTALL.SunOS b/security/openssh/pkg/INSTALL.SunOS
index c2365cd25e0..ca45708f943 100644
--- a/security/openssh/pkg/INSTALL.SunOS
+++ b/security/openssh/pkg/INSTALL.SunOS
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: INSTALL.SunOS,v 1.2 2001/02/21 18:55:37 tron Exp $
+# $NetBSD: INSTALL.SunOS,v 1.3 2001/07/12 06:17:02 tron Exp $
PKGNAME=$1
STAGE=$2
@@ -18,12 +18,13 @@ POST-INSTALL)
echo "Creating directory ${SSH_CONF_DIR} for ssh config files.."
mkdir -p ${SSH_CONF_DIR}
fi
+ cd ${SSH_EXAMPLE_DIR}
for file in ssh_config ssh_prng_cmds sshd_config
do
- if [ ! -f ${SSH_CONF_DIR}/${file} ]
+ if [ -f ${file} ] && [ ! -f ${SSH_CONF_DIR}/${file} ]
then
echo "Installing example ${file} in ${SSH_CONF_DIR}.."
- ${INSTALL_DATA} ${SSH_EXAMPLE_DIR}/${file} \
+ ${INSTALL_DATA} ${file} \
${SSH_CONF_DIR}/${file}
fi
done