1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
8 version = %{major_ver}.12
11 maintainer = Christian Schmidt <christian.schmidt@ipfire.org>
12 groups = Networking/Daemons
13 url = http://www.squid-cache.org/
15 summary = The Squid proxy caching server.
18 Squid is a high-performance proxy caching server for Web clients,
19 supporting FTP, gopher, and HTTP data objects. Unlike traditional
20 caching software, Squid handles all requests in a single,
21 non-blocking, I/O-driven process. Squid keeps meta data and especially
22 hot objects cached in RAM, caches DNS lookups, supports non-blocking
23 DNS lookups, and implements negative caching of failed requests.
26 source_dl = http://www.squid-cache.org/Versions/v3/%{major_ver}/
43 configure_options += \
44 --datadir=/usr/lib/squid \
45 --libexecdir=/usr/lib/squid \
46 --localstatedir=/var \
47 --sysconfdir=/etc/squid \
48 --enable-storeio="aufs,diskd,ufs" \
49 --enable-removal-policies="heap,lru" \
51 --enable-delay-pools \
53 --disable-icap-client \
54 --enable-useragent-log \
55 --enable-referrer-log \
58 --enable-kill-parent-hack \
61 --enable-ipf-transparent \
64 --enable-forw-via-db \
65 --disable-cache-digests \
70 --enable-http-violations \
71 --enable-linux-netfilter \
72 --disable-ident-lookups \
73 --enable-internal-dns \
74 --enable-auth=basic,ntlm \
75 --enable-basic-auth-helpers="LDAP,MSNT,multi-domain-NTLM,PAM,NCSA,SMB,squid_radius_auth" \
76 --enable-ntlm-auth-helpers="smb_lm,no_check,fakeauth" \
77 --enable-ntlm-fail-open \
78 --with-filedescriptors=16384 \
86 rm -vf %{BUILDROOT}/etc/squid/errors
87 rmdir %{BUILDROOT}/var/logs
89 mkdir -pv %{BUILDROOT}/var/log/cache %{BUILDROOT}/var/log/squid
90 touch %{BUILDROOT}/var/log/squid/access.log
91 mkdir -pv %{BUILDROOT}/var/cache/squid
94 #groupadd -r squid && useradd -r -g squid -d %{BUILDROOT}/var/cache/squid -s /bin/false -p '*' squid
95 #chown -Rv squid:squid %{BUILDROOT}/var/log/squid %{BUILDROOT}/var/log/cache %{BUILDROOT}/var/cache/squid
96 #chmod 600 %{BUILDROOT}/var/cache/squid
97 #chown squid:squid %{BUILDROOT}/var/log/squid
103 requires = /usr/bin/smbclient
105 filter_requires = perl\(Authen::Smb\)