freebsd-ports/www/squid24/pkg-install
Peter Wemm a6d6133eb7 Update from squid-1.0.0 to 1.0.20. There are a large number of bug fixes
and stability measures.

This port installs in a "FreeBSD-native" tree (like apache) rather than
with a mini hierarchy under /usr/local/squid/{bin,etc,cache,logs,...}

(the default behavior seems to have changed between 1.0.0 and 1.0.20)

Also, build a rc.d/squid.sh script.
1996-11-06 16:37:26 +00:00

38 lines
1.1 KiB
Bash

#!/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 ""
echo "==> Press Enter to edit the ${PKGNAME} config file."
echo " (The defaults are reasonable; and the file is well commented)"
tput md
echo " You'd certainly like to pay attention to the"
echo " ACTUAL locations of cache \"spool\", logfiles, pidfile!"
tput me
read skip
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
${EDITOR:-vi} ${PREFIX:-/usr/local}/etc/squid/squid.conf
;;
*)
echo "Unexpected Argument $2!!!"
exit 1
;;
esac
exit 0