1996-06-03 02:21:13 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
PKGNAME=$1
|
|
|
|
|
|
|
|
case $2 in
|
|
|
|
PRE-INSTALL)
|
|
|
|
;;
|
|
|
|
POST-INSTALL)
|
|
|
|
echo "==> Post-installation configuration of ${PKGNAME}"
|
|
|
|
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 ""
|
2001-03-27 12:28:47 +00:00
|
|
|
echo " o Note that before you can run ${PKGNAME} you will"
|
|
|
|
echo " need to initialise the cache directory."
|
|
|
|
echo " You can do this by typing \"squid -z\"."
|
|
|
|
echo ""
|
1996-06-03 02:21:13 +00:00
|
|
|
echo "==> Press Enter to edit the ${PKGNAME} config file."
|
|
|
|
echo " (The defaults are reasonable; and the file is well commented)"
|
1996-07-10 21:50:18 +00:00
|
|
|
tput md
|
|
|
|
echo " You'd certainly like to pay attention to the"
|
|
|
|
echo " ACTUAL locations of cache \"spool\", logfiles, pidfile!"
|
|
|
|
tput me
|
1999-06-22 17:21:59 +00:00
|
|
|
if [ -z "${PACKAGE_BUILDING}" ]; then read skip; fi
|
1996-11-06 16:37:26 +00:00
|
|
|
chown root:wheel ${PREFIX:-/usr/local}/etc/squid/squid.conf*
|
|
|
|
chmod 644 ${PREFIX:-/usr/local}/etc/squid/squid.conf*
|
|
|
|
[ -f ${PREFIX:-/usr/local}/etc/squid/squid.conf ] || \
|
|
|
|
cp -fp ${PREFIX:-/usr/local}/etc/squid/squid.conf.default \
|
|
|
|
${PREFIX:-/usr/local}/etc/squid/squid.conf
|
1997-12-06 12:28:14 +00:00
|
|
|
[ -f ${PREFIX:-/usr/local}/etc/squid/mime.conf ] || \
|
|
|
|
cp -fp ${PREFIX:-/usr/local}/etc/squid/mime.conf.default \
|
|
|
|
${PREFIX:-/usr/local}/etc/squid/mime.conf
|
1997-12-20 10:34:32 +00:00
|
|
|
${EDITOR:-vi} ${PREFIX:-/usr/local}/etc/squid/squid.conf \
|
|
|
|
${PREFIX:-/usr/local}/etc/squid/mime.conf
|
1996-06-03 02:21:13 +00:00
|
|
|
;;
|
|
|
|
*)
|
|
|
|
echo "Unexpected Argument $2!!!"
|
|
|
|
exit 1
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
exit 0
|
|
|
|
|