]>
Commit | Line | Data |
---|---|---|
4f9dda45 BS |
1 | ############################################################################### |
2 | # # | |
3 | # IPFire.org - A linux based firewall # | |
4 | # Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt # | |
5 | # # | |
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. # | |
10 | # # | |
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. # | |
15 | # # | |
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/>. # | |
18 | # # | |
19 | ############################################################################### | |
20 | ||
21 | ############################################################################### | |
22 | # Definitions | |
23 | ############################################################################### | |
24 | ||
25 | include $(PKGROOT)/Include | |
26 | ||
27 | PKG_NAME = squid | |
93d8354a | 28 | PKG_VER = 3.1.12 |
321c867a | 29 | PKG_REL = 1 |
4f9dda45 | 30 | |
d629ce07 | 31 | PKG_MAINTAINER = Christian Schmidt <christian.schmidt@ipfire.org> |
bb7d617c | 32 | PKG_GROUPS = Networking/Daemons |
4f9dda45 BS |
33 | PKG_URL = http://www.squid-cache.org/ |
34 | PKG_LICENSE = GPLv2+ | |
35 | PKG_SUMMARY = The Squid proxy caching server. | |
36 | ||
d629ce07 | 37 | PKG_BUILD_DEPS+= gcc-c++ libxml2-devel openssl-devel openldap-devel samba-devel \ |
321c867a | 38 | iptables-devel $(PKG_DEPS) pam-devel libcap-devel |
d629ce07 | 39 | PKG_DEPS += /usr/bin/smbclient |
4f9dda45 | 40 | |
321c867a CS |
41 | PKG_REQUIRES_FILTER = perl\(Authen::Smb\) |
42 | ||
4f9dda45 BS |
43 | define PKG_DESCRIPTION |
44 | Squid is a high-performance proxy caching server for Web clients, \ | |
45 | supporting FTP, gopher, and HTTP data objects. Unlike traditional \ | |
46 | caching software, Squid handles all requests in a single, \ | |
47 | non-blocking, I/O-driven process. Squid keeps meta data and especially \ | |
48 | hot objects cached in RAM, caches DNS lookups, supports non-blocking \ | |
49 | DNS lookups, and implements negative caching of failed requests. | |
50 | ||
51 | endef | |
52 | ||
321c867a | 53 | PKG_TARBALL = $(THISAPP).tar.gz |
4f9dda45 | 54 | |
f464ef1e MT |
55 | CONFIGURE_OPTIONS += \ |
56 | --datadir=/usr/lib/squid \ | |
57 | --libexecdir=/usr/lib/squid \ | |
58 | --localstatedir=/var \ | |
59 | --sysconfdir=/etc/squid \ | |
d629ce07 | 60 | --enable-storeio="aufs,diskd,ufs" \ |
f464ef1e MT |
61 | --enable-removal-policies="heap,lru" \ |
62 | --enable-icmp \ | |
63 | --enable-delay-pools \ | |
64 | --disable-esi \ | |
65 | --disable-icap-client \ | |
66 | --enable-useragent-log \ | |
67 | --enable-referrer-log \ | |
68 | --disable-wccp \ | |
69 | --disable-wccpv2 \ | |
70 | --enable-kill-parent-hack \ | |
71 | --enable-snmp \ | |
72 | --enable-arp-acl \ | |
d629ce07 | 73 | --enable-ipf-transparent \ |
f464ef1e MT |
74 | --enable-htcp \ |
75 | --enable-ssl \ | |
76 | --enable-forw-via-db \ | |
77 | --disable-cache-digests \ | |
78 | --enable-poll \ | |
79 | --enable-select \ | |
80 | --disable-kqueue \ | |
81 | --enable-epoll \ | |
82 | --enable-http-violations \ | |
83 | --enable-linux-netfilter \ | |
84 | --disable-ident-lookups \ | |
85 | --enable-internal-dns \ | |
86 | --enable-auth=basic,ntlm \ | |
87 | --enable-basic-auth-helpers="LDAP,MSNT,multi-domain-NTLM,PAM,NCSA,SMB,squid_radius_auth" \ | |
d629ce07 | 88 | --enable-ntlm-auth-helpers="smb_lm,no_check,fakeauth" \ |
f464ef1e | 89 | --enable-ntlm-fail-open \ |
d629ce07 | 90 | --with-filedescriptors=16384 \ |
f464ef1e MT |
91 | --enable-unlinkd \ |
92 | --with-pthreads \ | |
93 | --with-aio \ | |
94 | --with-dl \ | |
95 | --with-large-files | |
96 | ||
97 | define STAGE_INSTALL_CMDS | |
4f9dda45 | 98 | rm -vf $(BUILDROOT)/etc/squid/errors |
daafecf5 | 99 | rmdir $(BUILDROOT)/var/logs |
4f9dda45 BS |
100 | |
101 | -mkdir -pv $(BUILDROOT)/var/log/cache $(BUILDROOT)/var/log/squid | |
102 | touch $(BUILDROOT)/var/log/squid/access.log | |
103 | -mkdir -pv $(BUILDROOT)/var/cache/squid | |
4f9dda45 | 104 | |
f464ef1e MT |
105 | # What is this????? |
106 | #groupadd -r squid && useradd -r -g squid -d $(BUILDROOT)/var/cache/squid -s /bin/false -p '*' squid | |
107 | #chown -Rv squid:squid $(BUILDROOT)/var/log/squid $(BUILDROOT)/var/log/cache $(BUILDROOT)/var/cache/squid | |
108 | #chmod 600 $(BUILDROOT)/var/cache/squid | |
109 | #chown squid:squid $(BUILDROOT)/var/log/squid | |
4f9dda45 | 110 | endef |