pkgsrc/www/squid/INSTALL
tron f4354210d0 Fix problems caused by recent changes: the example configuration files get
installed into "etc/squid" (and are not moved arround after installation).
The message of the install script matches the actual layout again and is
adapted to changes to "SQUID_SYSCONFDIR".
2001-11-23 10:22:53 +00:00

40 lines
1.1 KiB
Text

#!/bin/sh
#
# $NetBSD: INSTALL,v 1.3 2001/11/23 10:22:53 tron Exp $
#
PKGNAME=$1
EXCONFDIR=${PKG_PREFIX}/etc/squid/
SYSCONFDIR=@SYSCONFDIR@/
SQUIDCONF=squid.conf
MIMECONF=mime.conf
case $2 in
PRE-INSTALL)
;;
POST-INSTALL)
echo ""
echo " o You DO need running nameservice to start and run ${PKGNAME}".
echo ""
echo " o Use the ${PKGNAME} proxy and caching WWW Server by"
echo " configuring your WWW Navigator (Netscape, Mosaic,...)"
echo " to use it as a proxy server."
echo ""
if [ "${EXCONFDIR}" = "${SYSCONFDIR}" ]
then
echo " o Copy \"${EXCONFDIR}${SQUIDCONF}.default\" to \"${SQUIDCONF}\""
echo " and \"${EXCONFDIR}${MIMECONF}.default\" to \"${MIMECONF}\""
else
echo " o Copy \"${EXCONFDIR}${SQUIDCONF}.default\" to \"${SYSCONFDIR}${SQUIDCONF}\""
echo " and \"${EXCONFDIR}${MIMECONF}.default\" to \"${SYSCONFDIR}${MIMECONF}\""
fi
echo " and edit them as required. You should pay attention to the"
echo " ACTUAL locations of the cache \"spool\" logfiles and pidfile."
echo ""
;;
*)
echo "Unexpected Argument ${2}."
exit 1
;;
esac
exit 0