summaryrefslogtreecommitdiff
path: root/security/openssh/INSTALL
blob: 6a11c36d072a33b9d604860e6c3c96af7bdaa842 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# $NetBSD: INSTALL,v 1.4 2002/06/27 02:30:18 itojun Exp $

DIRS="/etc /etc/ssh /usr/pkg/etc /usr/pkg/etc/ssh"
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