Squid on Debian
Contents
Pre-Built Binary Packages
Packages available for Squid on multiple architectures.
Maintainer: Luigi Gangitano
Squid-3.1 / Squid-3.0
Bug Reports: http://bugs.debian.org/cgi-bin/pkgreport.cgi?pkg=squid3
Install Procedure:
aptitude install squid3
Squid-2.7
Bug Reports: http://bugs.debian.org/cgi-bin/pkgreport.cgi?pkg=squid
Install Procedure:
aptitude install squid
Compiling
From 2.6.STABLE14 Squid should compile easily on this platform.
There is just one known problem. The Linux system layout differs markedly from the Squid defaults. The following ./configure options are needed to install Squid into the Linux structure properly:
--prefix=/usr
--localstatedir=/var
--libexecdir=${prefix}/lib/squid
--srcdir=.
--datadir=${prefix}/share/squid
--sysconfdir=/etc/squidFrom Squid 3.0 the default user can also be set. The Debian package default is:
--with-default-user=proxy
From Squid 3.1 the log directory and PID file location are also configurable. The Debian package defaults are:
--with-logdir=/var/log --with-pidfile=/var/run/squid.pid
older Squid have problems with the default log directory. Remember they are only defaults. Altering squid.conf you can point the logs at the right path anyway without either the workaround or the patching.
As always, additional libraries may be required to support the features you want to build. The default package dependencies can be installed using:
aptitude build-dep squid3
This requires only that your sources.list contain the deb-src repository to pull the source package information. Features which are not supported by the distribution package will need investigation to discover the dependency package and install it.
The usual one requested is libssl-dev for SSL support.
Older Squid needs the following patch to be applied since the /var/logs/ directory for logs has no configure option. This exact patch requires ./bootstrap.sh to be run again. If that is not possible the same line change can be manually made in src/Makefile.in as well.
--- src/Makefile.am 2007-09-17 14:22:33.000000000 +1200 +++ src/Makefile.am-new 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
A workaround if you are unable to patch and forced to build an ancient Squid release, is to symlink the /var/logs directory to /var/log before installing your new Squid.
Troubleshooting
The squid3-dbg packages provides debug symbols needed for bug reporting if the bug is crash related. See the Bug Reporting FAQ for what details to include in a report.
aptitude install squid3-dbg
