diff options
author | tron <tron> | 2001-07-12 06:17:02 +0000 |
---|---|---|
committer | tron <tron> | 2001-07-12 06:17:02 +0000 |
commit | 0e64cf91015fc19e721cc5d3601ee88d60c78426 (patch) | |
tree | 1976350da82237c95cf4fe2bdce6cb5bddf7ae75 /security | |
parent | 6965357cb34939627c7a7d93c26b3de612064a0d (diff) | |
download | pkgsrc-0e64cf91015fc19e721cc5d3601ee88d60c78426.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.SunOS | 7 |
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 |