mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-27 05:10:36 +00:00
63a33a0692
"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.
44 lines
1.4 KiB
Bash
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
|
|
|