2920a32c71
VIEW-DEINSTALL to the INSTALL/DEINSTALL scripts don't cause errors.
36 lines
833 B
Text
36 lines
833 B
Text
# $NetBSD: INSTALL,v 1.10 2003/08/30 20:23:06 jlam Exp $
|
|
|
|
DIRS="/etc /etc/ssh ${PKG_PREFIX}/etc ${PKG_PREFIX}/etc/ssh"
|
|
FILES="sshd.conf sshd_config"
|
|
|
|
case ${STAGE} in
|
|
POST-INSTALL)
|
|
for dir in $DIRS; do
|
|
if [ "@PKG_SYSCONFDIR@" != "$dir" ]; then
|
|
for file in $FILES; do
|
|
path=$dir/$file
|
|
if [ -f $path ]; then
|
|
${CAT} <<EOF
|
|
===========================================================================
|
|
|
|
*===* NOTICE *===*
|
|
|
|
WARNING: previous configuration file $path found.
|
|
|
|
The config files for ${PKGNAME} must be located in:
|
|
|
|
@PKG_SYSCONFDIR@
|
|
|
|
You will need to ensure your configuration files and/or keys are
|
|
placed in the correct directory before using ${PKGNAME}.
|
|
|
|
===========================================================================
|
|
EOF
|
|
|
|
exit
|
|
fi
|
|
done
|
|
fi
|
|
done
|
|
;;
|
|
esac
|