freebsd-ports/www/squid23/pkg-install
Satoshi Asami 8b81bdf083 Upgrade from 1.0 beta11 to 1.0 release.
Submitted by:	Andrew Stesin <stesin@elvisti.kiev.ua>
1996-07-10 21:50:18 +00:00

42 lines
1.2 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 " o add the following line to /etc/rc.local to start"
echo " ${PKGNAME} automatically:"
echo ""
echo " (cd /tmp; exec ${PREFIX:-/usr/local}/bin/RunCache) &"
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.conf*
chmod 644 ${PREFIX:-/usr/local}/etc/squid.conf*
[ -f ${PREFIX:-/usr/local}/etc/squid.conf ] || \
cp -fp ${PREFIX:-/usr/local}/etc/squid.conf.default \
${PREFIX:-/usr/local}/etc/squid.conf
${EDITOR:-vi} ${PREFIX:-/usr/local}/etc/squid.conf
;;
*)
echo "Unexpected Argument $2!!!"
exit 1
;;
esac
exit 0