freebsd-ports/www/squid24/pkg-install
Peter Wemm 63a33a0692 Initial squid 1.2beta8 port. As the squid www page says:
"We are currently in a beta-test period for Squid-1.2. If you like
seeing Squid coredump frequently, please join us!"

"This is BETA software. Do not run this on your production systems.
Logfile formats are subject (and likely) to change at any time without
warning.

Here is a brief list of the major features of this version:
   HTTP/1.1 persisitent connections.
   Lower VM usage; in-transit objects are not held fully in memory.
   Totally independent swap directories.
   Customizable error texts.
   FTP supported internally; no more ftpget.
   Asynchronous disk operations (optional, requires pthreads library).
   Internal icons for FTP and gopher directories.
   snprintf() used everywhere instead of sprintf().
   ...and many more!
"
As well, there is support for using MD5 or SHA hashes of URL's in the
cache index for space (and speed?) savings, SNMP support, poll(2) is
used by default, etc.

Please see  http://squid.nlanr.net/Squid/1.2.beta/  before using.
1997-12-06 12:28:14 +00:00

44 lines
1.4 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
[ -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
[ -f ${PREFIX:-/usr/local}/etc/squid/mib.txt ] || \
cp -fp ${PREFIX:-/usr/local}/etc/squid/mib.txt.default \
${PREFIX:-/usr/local}/etc/squid/mib.txt
${EDITOR:-vi} ${PREFIX:-/usr/local}/etc/squid/squid.conf
;;
*)
echo "Unexpected Argument $2!!!"
exit 1
;;
esac
exit 0