> Gang, > > I'm getting ready to build squid from the command line (until now > I've just relied on the .deb packages but they are sooo outdated) for > Ubuntu 6.06 and Debian 4.0r1. The most recent squid are packaged nicely with a few debian specific fixes in the unstable repositories if you want to skip the whole building step. > I would like to know what command line > options I should use when I "make" it, ie, options that will put the > conf file in /etc/squid/, log files in /var/log/squid, etc. My cache is > for an ISP that connects via satellite, so bandwidth savings is > paramount. Also, it is done transparently via iptables (which works > mostly...). Any command line options that add performance (coss?) would > be appreciated too. > > Jason Wallace > For COSS: --enable-store-io=aufs,coss For transparency: --enable-linux-netfilter The basic commands I use on top of the defaultes are below. Not so much emphasis on bandwidth, but some. Also note this is squid3. Some may have diferent names for squid2. --prefix=/usr --localstatedir=/var --libexecdir=${prefix}/lib/squid3 --srcdir=. --datadir=/usr/share/squid3 --sysconfdir=/etc/squid3 --with-default-user=proxy --with-large-files You will also need to apply the following so squid places its logs in the correct position for Debian/Ubuntu. --- src/Makefile.am 2007-09-17 14:22:33.000000000 +1200 +++ src/Makefile.am-2 2007-09-12 19:31:53.000000000 +1200 @@ -985,7 +985,7 @@ DEFAULT_CONFIG_FILE = $(sysconfdir)/squid.conf DEFAULT_MIME_TABLE = $(sysconfdir)/mime.conf DEFAULT_DNSSERVER = $(libexecdir)/`echo dnsserver | sed '$(transform);s/$ $/$(EXEEXT)/'` -DEFAULT_LOG_PREFIX = $(localstatedir)/logs +DEFAULT_LOG_PREFIX = $(localstatedir)/log DEFAULT_CACHE_LOG = $(DEFAULT_LOG_PREFIX)/cache.log DEFAULT_ACCESS_LOG = $(DEFAULT_LOG_PREFIX)/access.log DEFAULT_STORE_LOG = $(DEFAULT_LOG_PREFIX)/store.log Amos