summaryrefslogtreecommitdiff
path: root/security/openssh/INSTALL
diff options
context:
space:
mode:
authorgrant <grant@pkgsrc.org>2002-06-27 02:15:11 +0000
committergrant <grant@pkgsrc.org>2002-06-27 02:15:11 +0000
commit6deeff7bff713fcac96679aeadf1906b5b5d4ec2 (patch)
treecbcede81a957233b00e1bf989aee33807a1985ec /security/openssh/INSTALL
parentb3dbf2fad1dbc2e8917c12c1476974ea1437aa71 (diff)
downloadpkgsrc-6deeff7bff713fcac96679aeadf1906b5b5d4ec2.tar.gz
add POST-INSTALL warning if sshd configuration file is found in a
previous configuration directory. format MESSAGE consistently.
Diffstat (limited to 'security/openssh/INSTALL')
-rw-r--r--security/openssh/INSTALL37
1 files changed, 37 insertions, 0 deletions
diff --git a/security/openssh/INSTALL b/security/openssh/INSTALL
new file mode 100644
index 00000000000..7abf68b5269
--- /dev/null
+++ b/security/openssh/INSTALL
@@ -0,0 +1,37 @@
+# $NetBSD: INSTALL,v 1.3 2002/06/27 02:15:11 grant Exp $
+
+DIRS="/etc /etc/ssh /usr/pkg/etc"
+FILES="sshd.conf sshd_config"
+
+if [ "${STAGE}" != "POST-INSTALL" ]; then
+ exit 0
+fi
+
+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
+