the Fink project is an effort to port
popular Unix programs to Mac OS X
Info4: <<
Package: squid-unified
Version: 3.1.8
Revision: 2
Epoch: 1
Description: Proxy caching server
License: GPL
Maintainer: Benjamin Reed
Depends: daemonic
BuildDepends: <<
fink (>= 0.29.7-1),
system-openssl-dev
<<
Replaces: <<
squid (<< %v-%r),
squid-ssl (<< %v-%r)
<<
Source: http://www.squid-cache.org/Versions/v3/3.1/squid-%v.tar.bz2
Source-MD5: a8160dfba55ab7c400c622b72d39fc13
SetCPPFLAGS: -I%p/lib/system-openssl/include -I%p/include
SetLDFLAGS: -L%p/lib/system-openssl/lib -L%p/lib
SetLIBS: -L%p/lib
NoSetCPPFLAGS: true
NoSetLDFLAGS: true
NoSetLIBS: true
UseMaxBuildJobs: true
ConfigureParams: <<
--disable-dependency-tracking \
--disable-shared \
--enable-static \
\
--enable-async-io \
--enable-auth \
--enable-basic-auth-helpers \
--enable-disk-io \
--enable-carp \
--enable-delay-pools \
--enable-digest-auth-helpers \
--enable-external-acl-helpers \
--enable-htcp \
--enable-icap-client \
--enable-icmp \
--enable-ipfw-transparent \
--enable-kqueue \
--enable-negotiate-auth-helpers \
--enable-ntlm-auth-helpers \
--enable-referer-log \
--enable-removal-policies \
--enable-snmp \
--enable-ssl \
--enable-useragent-log \
--enable-x-accelerator-vary \
\
--disable-poll \
--disable-arp-acl \
\
--with-aio \
--with-large-files \
--with-openssl=%p/lib/system-openssl \
--with-pthreads \
\
--mandir=%p/share/man \
--libexecdir=%p/sbin
<<
CompileScript: <<
#!/bin/sh -ex
export lt_cv_sys_max_cmd_len=65536
./configure %c
make DEFAULT_SWAP_DIR=%p/var/cache/squid DEFAULT_LOG_PREFIX=%p/var/log/squid DEFAULT_MIB_PATH=%p/share/doc/%n DEFAULT_PID_FILE=%p/var/run/squid.pid
<<
InstallScript: <<
make -j1 install DESTDIR=%d DEFAULT_SWAP_DIR=%p/var/cache/squid DEFAULT_LOG_PREFIX=%p/var/log/squid DEFAULT_MIB_PATH=%p/share/doc/%n DEFAULT_PID_FILE=%p/var/run/squid.pid
install -d -m 755 -o nobody %i/var/cache/squid
install -d -m 755 -o nobody %i/var/log/squid
rm -f %i/etc/squid.conf.default
rm -f %i/etc/mime.conf.default
install -d -m 755 %i/share/doc/%n
mv %i/share/mib.txt %i/share/doc/%n/mib.txt
<<
DocFiles: CO* CREDITS ChangeLog QUICKSTART README* RELEASENOTES* SPONSORS
SplitOff: <<
Package: squid
Depends: <<
%N (= %e:%v-%r),
fink-obsolete-packages
<<
Description: OBSOLETE use package 'squid-unified' instead
DocFiles: CONTRIBUTORS COPYING COPYRIGHT CREDITS ChangeLog INSTALL QUICKSTART README RELEASENOTES.html SPONSORS
<<
SplitOff2: <<
Package: squid-ssl
Depends: <<
%N (= %e:%v-%r),
fink-obsolete-packages
<<
Description: OBSOLETE use package 'squid-unified' instead
DocFiles: CONTRIBUTORS COPYING COPYRIGHT CREDITS ChangeLog INSTALL QUICKSTART README RELEASENOTES.html SPONSORS
<<
PostInstScript: <<
if [ ! -d %p/var/cache/squid/00 ]; then
chown -R nobody "%p/var/cache/squid" "%p/var/log/squid"
%p/sbin/squid -z || :
fi
<<
PreRmScript: <<
# clean up the old one
daemonic remove squid >/dev/null 2>&1 || :
if [ $1 != "upgrade" ]; then
# remove the daemonic entry if we're uninstalling
daemonic remove squid-unified
fi
<<
ConfFiles: <<
%p/etc/cachemgr.conf
%p/etc/mime.conf
%p/etc/squid.conf
<<
DaemonicFile: <<
<<
Homepage: http://www.squid-cache.org/
DescDetail: <<
Squid is a high-performance proxy caching server for Web clients,
supporting FTP, gopher, and HTTP data objects. Unlike traditional
caching software, Squid handles all requests in a single,
non-blocking, I/O-driven process. Squid keeps meta data and especially
hot objects cached in RAM, caches DNS lookups, supports non-blocking
DNS lookups, and implements negative caching of failed requests.
<<
DescPackaging: <<
The only changes made to the default configuration is to enable local
access to the squid proxy (ie, connections from localhost). By
default, squid is configured to listen on port 3128 for proxy
connections. To change this, add or change the http_port line to the
port you want squid to listen on.
<<
<<
diff -uNr squid-2.6.STABLE16/src/cf.data.pre squid-2.6.STABLE16-new/src/cf.data.pre
--- squid-2.6.STABLE16/src/cf.data.pre 2007-09-05 17:50:15.000000000 -0400
+++ squid-2.6.STABLE16-new/src/cf.data.pre 2007-09-12 11:12:39.000000000 -0400
@@ -691,6 +691,9 @@
#acl our_networks src 192.168.1.0/24 192.168.2.0/24
#http_access allow our_networks
+# Allow localhost proxying explicitly
+http_access allow localhost
+
# And finally deny all other access to this proxy
http_access deny all
NOCOMMENT_END
@@ -3412,7 +3415,7 @@
NAME: visible_hostname
TYPE: string
LOC: Config.visibleHostname
-DEFAULT: none
+DEFAULT: localhost
DOC_START
If you want to present a special hostname in error messages, etc,
define this. Otherwise, the return value of gethostname()