summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2001-07-12 06:17:02 +0000
committertron <tron@pkgsrc.org>2001-07-12 06:17:02 +0000
commitafa96efbb8cd5a3ee18412b5858ffd674e79a4db (patch)
tree1976350da82237c95cf4fe2bdce6cb5bddf7ae75 /security
parent07a00d05ad802b21ebdd9b415d2a3172eed8560b (diff)
downloadpkgsrc-afa96efbb8cd5a3ee18412b5858ffd674e79a4db.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