1 ###############################################################################
3 # IPFire.org - A linux based firewall #
4 # Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt #
6 # This program is free software: you can redistribute it and/or modify #
7 # it under the terms of the GNU General Public License as published by #
8 # the Free Software Foundation, either version 3 of the License, or #
9 # (at your option) any later version. #
11 # This program is distributed in the hope that it will be useful, #
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
14 # GNU General Public License for more details. #
16 # You should have received a copy of the GNU General Public License #
17 # along with this program. If not, see <http://www.gnu.org/licenses/>. #
19 ###############################################################################
21 ###############################################################################
23 ###############################################################################
25 include $(PKGROOT)/Include
31 PKG_MAINTAINER = Christian Schmidt <christian.schmidt@ipfire.org>
32 PKG_GROUP = Networking/Daemons
33 PKG_URL = http://www.squid-cache.org/
35 PKG_SUMMARY = The Squid proxy caching server.
37 PKG_BUILD_DEPS+= gcc-c++ libxml2-devel openssl-devel openldap-devel samba-devel \
38 iptables-devel $(PKG_DEPS) pam-devel
39 PKG_DEPS += /usr/bin/smbclient
41 define PKG_DESCRIPTION
42 Squid is a high-performance proxy caching server for Web clients, \
43 supporting FTP, gopher, and HTTP data objects. Unlike traditional \
44 caching software, Squid handles all requests in a single, \
45 non-blocking, I/O-driven process. Squid keeps meta data and especially \
46 hot objects cached in RAM, caches DNS lookups, supports non-blocking \
47 DNS lookups, and implements negative caching of failed requests.
51 PKG_TARBALL = $(THISAPP).tar.bz2
53 CONFIGURE_OPTIONS += \
54 --datadir=/usr/lib/squid \
55 --libexecdir=/usr/lib/squid \
56 --localstatedir=/var \
57 --sysconfdir=/etc/squid \
58 --enable-storeio="aufs,diskd,ufs" \
59 --enable-removal-policies="heap,lru" \
61 --enable-delay-pools \
63 --disable-icap-client \
64 --enable-useragent-log \
65 --enable-referrer-log \
68 --enable-kill-parent-hack \
71 --enable-ipf-transparent \
74 --enable-forw-via-db \
75 --disable-cache-digests \
80 --enable-http-violations \
81 --enable-linux-netfilter \
82 --disable-ident-lookups \
83 --enable-internal-dns \
84 --enable-auth=basic,ntlm \
85 --enable-basic-auth-helpers="LDAP,MSNT,multi-domain-NTLM,PAM,NCSA,SMB,squid_radius_auth" \
86 --enable-ntlm-auth-helpers="smb_lm,no_check,fakeauth" \
87 --enable-ntlm-fail-open \
88 --with-filedescriptors=16384 \
95 define STAGE_INSTALL_CMDS
96 rm -vf $(BUILDROOT)/etc/squid/errors
97 rmdir $(BUILDROOT)/var/logs
99 -mkdir -pv $(BUILDROOT)/var/log/cache $(BUILDROOT)/var/log/squid
100 touch $(BUILDROOT)/var/log/squid/access.log
101 -mkdir -pv $(BUILDROOT)/var/cache/squid
104 #groupadd -r squid && useradd -r -g squid -d $(BUILDROOT)/var/cache/squid -s /bin/false -p '*' squid
105 #chown -Rv squid:squid $(BUILDROOT)/var/log/squid $(BUILDROOT)/var/log/cache $(BUILDROOT)/var/cache/squid
106 #chmod 600 $(BUILDROOT)/var/cache/squid
107 #chown squid:squid $(BUILDROOT)/var/log/squid