3 # _with_combined_log - enables apache-like combined log format
5 Summary: SQUID Internet Object Cache
6 Summary(es): proxy/cache para www/ftp/gopher
7 Summary(pl): Uniwersalny proxy-cache server
8 Summary(pt_BR): Cache Squid de objetos Internet
9 Summary(ru): Squid - ËÜÛ ÏÂßÅËÔÏ× Internet
10 Summary(uk): Squid - ËÅÛ ÏÂ'¤ËÔ¦× Internet
11 Summary(zh_CN): SQUID ¸ßËÙ»º³å´úÀí·þÎñÆ÷
17 Group: Networking/Daemons
18 Source0: http://www.squid-cache.org/Versions/v2/2.5/%{name}-%{version}.tar.bz2
19 # Source0-md5: ed5eb7835d00fdecc7dd7c1837542df2
20 Source1: %{name}-1.1.19-faq.tar.gz
21 # Source1-md5: 77d04ae621d19548797e3a0deb540df6
23 Source3: %{name}.sysconfig
24 Source4: http://cache.is.co.za/%{name}-docs.tar.gz
25 # Source4-md5: 0cfee556bf6394a0bd3c438c89dd2e63
26 Source5: %{name}.conf.patch
27 Source6: %{name}.logrotate
29 # Bug fixes from Squid home page:
30 Patch0: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE3-ncsa_auth_passwdfile.patch
31 Patch1: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE3-multicast-ICP-timeout.patch
32 Patch2: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE3-407_user_name.patch
33 Patch3: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE3-digest_compile.patch
34 Patch4: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE3-aufs_threads.patch
35 Patch5: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE3-aufs_open_fail.patch
36 Patch6: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE3-mem_cfd.patch
37 Patch7: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE3-blank-username-log.patch
38 Patch8: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE3-coss-improvements.patch
39 Patch9: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE3-syscalls.disk-counters.patch
40 Patch10: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE3-round_robin_max_size.patch
41 Patch11: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE3-peer_digest_not_found_assertion.patch
42 Patch12: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE3-SENT_PASV.patch
43 Patch13: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE3-ie_refresh.patch
44 Patch14: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE3-reply_body_max_size.patch
45 Patch15: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE3-hostheader.patch
46 Patch16: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE3-tcp_reset_leak.patch
47 Patch17: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE3-ERR_TOO_BIG_Spanish.patch
48 Patch18: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE3-minimum_retry_timeout.patch
49 Patch19: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE3-cachePeerPingsSentsnmp.patch
50 Patch20: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE3-store_check_cachable_stats.patch
51 Patch21: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE3-hostscomments.patch
52 Patch22: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE3-memwarnsbrk.patch
53 Patch23: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE3-header_access_peer.patch
54 Patch24: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE3-neighbor_type_domain.patch
55 Patch25: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE3-carpfactor.patch
56 Patch26: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE3-gcc-3_3.patch
57 Patch27: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE3-aufs-openingfds.patch
58 Patch28: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE3-external_acl_ident.patch
59 Patch29: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE3-icmpRecv.patch
60 Patch30: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE3-rfc_reference.patch
61 Patch31: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE3-log_quote.patch
62 Patch32: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE3-devnull.patch
63 Patch33: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE3-cache_dir_doc.patch
64 Patch34: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE3-deny_info.patch
65 Patch35: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE3-HttpHeaderTools.patch
66 Patch36: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE3-Lithuanian.patch
67 Patch37: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE3-forwarded_for.patch
68 Patch38: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE3-coss-improvements-2.patch
69 Patch39: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE3-http_reply_access-denied.patch
72 Patch110: http://www.sed.pl/~mrk/qos/squid_hit_miss_mark.patch
73 Patch120: %{name}-fhs.patch
74 Patch130: %{name}-location.patch
75 Patch140: %{name}-domainmatch.patch
76 Patch150: %{name}-libnsl_fixes.patch
77 Patch170: %{name}-ac_fix.patch
78 Patch180: %{name}-crash-on-ENOSPC.patch
79 Patch190: %{name}-newssl.patch
80 Patch200: %{name}-sasl.patch
81 Patch210: http://piorun.ds.pg.gda.pl/~blues/patches/squid-more_FD-new.patch
82 Patch220: %{name}-empty-referer.patch
83 Patch230: %{name}-apache-like-combined-log.patch
84 BuildRequires: autoconf
85 BuildRequires: cyrus-sasl-devel >= 2.1.0
86 BuildRequires: openldap-devel
87 BuildRequires: openssl-devel >= 0.9.7a
88 BuildRequires: pam-devel
90 PreReq: rc-scripts >= 0.2.0
91 Requires(pre): /bin/id
92 Requires(pre): /usr/bin/getgid
93 Requires(pre): /usr/sbin/groupadd
94 Requires(pre): /usr/sbin/useradd
95 Requires(post,preun): /sbin/chkconfig
96 Requires(post): fileutils
97 Requires(post): findutils
99 Requires(post): /bin/hostname
100 Requires(postun): /usr/sbin/groupdel
101 Requires(postun): /usr/sbin/userdel
102 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
104 %define _libexecdir %{_libdir}/%{name}
105 %define _sysconfdir /etc/%{name}
106 %define _cgidir /home/services/httpd/cgi-bin
109 Squid is a high-performance proxy caching server for web clients,
110 supporting FTP, gopher, and HTTP data objects. Unlike traditional
111 caching software, Squid handles all requests in a single,
112 non-blocking, I/O-driven process. Squid keeps meta data and especially
113 hot objects cached in RAM, caches DNS lookups, supports non-blocking
114 DNS lookups, and implements negative caching of failed requests. If
115 you are tight on memory, check out the NOVM version of this package.
116 Squid supports SSL, extensive access controls, and full request
117 logging. By using the lightweight Internet Cache Protocol, Squid
118 caches can be arranged in a hierarchy or mesh for additional bandwidth
119 savings. Squid consists of a main server program squid, a Domain Name
120 System lookup program dnsserver, a program for retrieving FTP data
121 ftpget, and some management and client tools. When squid starts up, it
122 spawns a configurable number of dnsserver processes, each of which can
123 perform a single, blocking Domain Name System (DNS) lookup. This
124 reduces the amount of time the cache waits for DNS lookups. Squid is
125 derived from the ARPA-funded Harvest project.
128 Squid es un servidor proxy con caché de alto desempeño para clientes
129 web, soportando FTP, gopher y HTTP. Diferentemente de softwares
130 tradicionales de caché squid manipula todas las requisiciones en un
131 único proceso sin bloqueos, direccionado a E/S. Mantienen metadatos y
132 objetos frecuentemente pedidos en uno caché en memoria RAM. Hace caché
133 de resoluciones DNS, soporta resoluciones DNS sin bloqueo y implementa
134 un caché negativo de requisiciones que fallen. Si tiene poca memoria
135 da un vistazo en la versión NOVM de este paquete. También soporta SSL,
136 controles extensivos de acceso y registro (log) completo de las
137 requisiciones. Usando el ligero Protocolo de Caches Internet (ICP)
138 puede ser usado en una jerarquía de servidores para mayor ahorro de la
139 banda de comunicación. Está compuesto del programa squid (servidor
140 principal), del programa dnsserver (para resolución DNS), del programa
141 ftpget (para transmisiones ftp) y otras herramientas clientes y para
142 administración. Cuando squid se inicia, dispara un número configurable
143 de procesos dnsserver, cada uno pudiendo ejecutar solamente una
144 resolución DNS con poder de bloquear. Esto reduce el tiempo que el
145 caché espera por resoluciones DNS. Fue derivado del proyecto Harvest,
146 financiado por la ARPA.
149 Squid jest wysoce wydajnym serwerem proxy-cache dla przegl±darek WWW,
150 klientów FTP i gopher. Squid przechowuje najczê¶ciej pobierane dane w
151 pamiêci RAM i zapamiêtuje odwo³ania do DNS. Squid oferuje wsparcie dla
152 SSL, rozbudowan± kontrolê dostêpu oraz pe³ne rejestrowanie pobieranych
153 danych. Dziêki u¿yciu protoko³u ICP (Internet Cache Protocol), serwer
154 squid mo¿na ³±czyæ w hierarchiê, zwiêkszaj±c ich efektywno¶æ. Pakiet
155 squid obejmuje: g³ówny program serwera squid, program dostarczaj±cy
156 informacji z DNS dnsserver, program odbieraj±cy dane FTP ftpget, oraz
157 pomocnicze programy do zarz±dzania. Squid wywodzi siê ze
158 sponsorowanego przez ARPA projektu Harvest.
160 %description -l pt_BR
161 O Squid é um servidor proxy com cache de alta performance para
162 clientes web, suportando FTP, gopher e HTTP. Diferentemente de
163 softwares tradicionais de cache o squid manipula todas as requisições
164 em um único processo sem bloqueios, direcionado a E/S.
166 Mantém meta dados e objetos freqüentemente pedidos num cache em
167 memória RAM. Faz cache de resoluções DNS, suporta resoluções DNS sem
168 bloqueio e implementa um cache negativo de requisições que falharem.
169 Se você tem pouca memória dê uma olhada na versão NOVM deste pacote.
171 Também suporta SSL, controles extensivos de acesso e registro (log)
172 completo das requisições. Usando o leve Protocolo de Caches Internet
173 (ICP) ele pode ser usado em uma hierarquia de servidores para maior
174 economia de banda de comunicação.
176 Ele consiste do programa squid (servidor principal), do programa
177 dnsserver (para resolução DNS), do programa ftpget (para transmissões
178 ftp) e outras ferramentas clientes e para gerenciamento. Quando o
179 squid é inicializado ele dispara um número configurável de processos
180 dnsserver, cada um podendo executar somente uma resolução DNS
181 bloqueante. Isto reduz o tempo que o cache espera por resoluções DNS.
183 Foi derivado do projeto Harvest, financiado pela ARPA.
186 Squid - ÜÔÏ ×ÙÓÏËÏÐÒÏÉÚ×ÏÄÉÔÅÌØÎÙÊ ËÜÛÉÒÕÀÝÉÊ ÐÒÏËÓÉ-ÓÅÒ×ÅÒ ÄÌÑ
187 ËÌÉÅÎÔÏ× web, ÐÏÄÄÅÒÖÉ×ÁÀÝÉÊ ÏÂßÅËÔÙ ÄÁÎÎÙÈ ÔÉÐÁ FTP, gopher É HTTP. ÷
188 ÏÔÌÉÞÉÅ ÏÔ ÔÒÁÄÉÃÉÏÎÎÙÈ ËÜÛÉÒÕÀÝÉÈ ÐÒÏÇÒÁÍÍ, Squid ÏÂÒÁÂÁÔÙ×ÁÅÔ ×ÓÅ
189 ÚÁÐÒÏÓÙ ÐÒÉ ÐÏÍÏÝÉ ÏÄÎÏÇÏ ÎÅÂÌÏËÉÒÕÀÝÅÇÏÓÑ, ÕÐÒÁ×ÌÑÅÍÏÇÏ
190 ××ÏÄÏÍ-×Ù×ÏÄÏÍ ÐÒÏÃÅÓÓÁ.
192 üÔÏÔ ÐÁËÅÔ ÉÍÅÅÔ ×ÓÔÒÏÅÎÎÕÀ ÐÏÄÄÅÒÖËÕ ÂÁÚÙ ÄÁÎÎÙÈ ÓÅÔÅ×ÙÈ ICMP-ÐÒÏÂ
196 Squid - ÃÅ ËÅÛÕÀÞÉÊ ÐÒÏËÓ¦-ÓÅÒ×ÅÒ ÄÌÑ web-Ë̦¤ÎÔ¦×, ÝÏ Ð¦ÄÔÒÉÍÕ¤
197 ÏÂ'¤ËÔÉ ÄÁÎÉÈ ÔÉÐÕ FTP, gopher ÔÁ HTTP. îÁ צÄͦÎÕ ×¦Ä ÔÒÁÄÉæÊÎÉÈ
198 ËÅÛÕÀÞÉÈ ÐÒÏÇÒÁÍ, Squid ÏÂÒÏÂÌѤ ×Ó¦ ÚÁÐÉÔÉ ÚÁ ÄÏÐÏÍÏÇÏÀ ÏÄÎÏÇÏ
199 ÎÅÂÌÏËÕÀÞÏÇÏ, ËÅÒÏ×ÁÎÏÇÏ ××ÏÄÏÍ-×É×ÏÄÏÍ ÐÒÏÃÅÓÕ.
201 ãÅÊ ÐÁËÅÔ ÍÁ¤ ×ÂÕÄÏ×ÁÎÕ Ð¦ÄÔÒÉÍËÕ ÂÁÚÉ ÄÁÎÉÈ ÍÅÒÅÖÅ×ÉÈ ICMP-ÐÒÏÂ
205 Summary: CGI script for Squid management
206 Summary(pl): Skrypt CGI do zarz±dzania Squidem przez WWW
207 Group: Networking/Admin
208 Requires: %{name} = %{epoch}:%{version}
211 %description cachemgr
212 Cachemgr.cgi is a CGI script that allows administrator to chceck
213 various informations about Squid via WWW.
215 %description cachemgr -l pl
216 Cachemgr.cgi jest skryptem CGI, który pozwala administratorowi
217 zapoznaæ siê z informacjami o pracy Squida poprzez WWW.
220 Summary: LDAP authentication helper for Squid
221 Summary(pl): Wsparcie autentykacji LDAP dla squida
222 Group: Networking/Admin
225 %description ldap_auth
226 This Squid helper allows authentication against LDAP directories using
227 the "simple authentication" (plain-text).
229 %description ldap_auth -l pl
230 Pakiet ten pozwala na autentykacjê LDAP za pomoc± prostej autentykacji
234 Summary: PAM authentication helper for Squid
235 Summary(pl): Wsparcie autentykacji PAM dla squida
236 Group: Networking/Admin
239 %description pam_auth
240 This program authenticates users against a PAM configured
241 authentication service "squid". This allows you to authenticate Squid
242 users to any authentication source for which you have a PAM module.
244 %description pam_auth -l pl
245 Program ten pozwala na autentykacjê u¿ytkowników squida w dowolnym
246 ¼ródle posiadaj±cym modu³ PAM.
249 Summary: SMB authentication helper for Squid
250 Summary(pl): Wsparcie autentykacji SMB dla squida
251 Group: Networking/Admin
254 %description smb_auth
255 This is a proxy authentication module. With smb_auth you can
256 authenticate proxy users against an SMB server like Windows NT or
259 %description smb_auth -l pl
260 To jest modu³ autentykacji proxy. Z smb_auth mo¿esz autentyfikowaæ
261 u¿ytkowników proxy na serwerach SMB, jak Windows NT czy Samba.
264 Summary: MSNT domain authentication helper for Squid
265 Summary(pl): Wsparcie autentykacji domen MSNT dla squida
266 Group: Networking/Admin
269 %description msnt_auth
270 This is an authentication module for the Squid proxy server to
271 authenticate users on an NT domain.
273 %description msnt_auth -l pl
274 Jest to modu³ autentykacji proxy, który pozwala na autentyfikowanie
275 u¿ytkowników proxy w domenie NT.
278 Summary: YP authentication helper for Squid
279 Summary(pl): Wsparcie autentykacji YP dla squida
280 Group: Networking/Admin
284 This is an authentication module for the Squid proxy server to
285 authenticate users on YP.
287 %description yp_auth -l pl
288 Jest to modu³ autentykacji proxy, który pozwala na autentyfikowanie
289 u¿ytkowników proxy poprzez YP.
292 Summary: NCSA httpd style authentication helper for Squid
293 Summary(pl): Wsparcie autentykacji NCSA httpd dla squida
294 Group: Networking/Admin
297 %description ncsa_auth
298 This module uses a NCSA httpd style password file for authentication.
300 %description ncsa_auth -l pl
301 Modu³ autentykacji proxy u¿ywaj±cy pliku hase³ jak w NCSA httpd.
304 Summary: SASL authentication helper for Squid
305 Summary(pl): Wsparcie autentykacji SASL dla squida
306 Group: Networking/Admin
309 %description sasl_auth
310 This is an authentication module for the Squid proxy server to
311 authenticate users via SASL.
313 %description sasl_auth -l pl
314 Jest to modu³ autentykacji proxy, który pozwala na autentyfikowanie
315 u¿ytkowników proxy poprzez SASL.
317 %package winbind_auth
318 Summary: WINBIND authentication helper for Squid
319 Summary(pl): Wsparcie autentykacji WINBIND dla squida
320 Group: Networking/Admin
323 %description winbind_auth
324 This is an authentication module for the Squid proxy server to
325 authenticate users via WINBIND.
327 %description winbind_auth -l pl
328 Jest to modu³ autentykacji proxy, który pozwala na autentyfikowanie
329 u¿ytkowników proxy poprzez WINBIND.
331 %package getpwname_auth
332 Summary: getpwname authentication helper for Squid
333 Summary(pl): Wsparcie autentykacji getpwname dla squida
334 Group: Networking/Admin
337 %description getpwname_auth
338 This is an authentication module for the Squid proxy server to
339 authenticate users using getpwname.
341 %description getpwname_auth -l pl
342 Jest to modu³ autentykacji proxy, który pozwala na autentyfikowanie
343 u¿ytkowników proxy poprzez getpwname.
346 Summary: passwd authentication helper for Squid
347 Summary(pl): Wsparcie autentykacji passwd dla squida
348 Group: Networking/Admin
351 %description passwd_auth
352 This is an authentication module for the Squid proxy server to
353 authenticate users with separate passwd file.
355 %description passwd_auth -l pl
356 Jest to modu³ autentykacji proxy, który pozwala na autentyfikowanie
357 u¿ytkowników proxy poprzez oddzielny plik passwd.
360 Summary: NTLM authentication helper for Squid
361 Summary(pl): Wsparcie autentykacji NTLM dla squida
362 Group: Networking/Admin
365 %description ntlm_auth
366 This is an authentication module for the Squid proxy server to
367 authenticate users on NTLM.
369 %description ntlm_auth -l pl
370 Jest to modu³ autentykacji proxy, który pozwala na autentyfikowanie
371 u¿ytkowników proxy poprzez NTLM.
374 Summary: IP external ACL helper for Squid
375 Summary(pl): Wsparcie kontroli dostêpu przez IP dla squida
376 Group: Networking/Admin
380 This is an external ACL module for the Squid proxy server to
381 limit acces for users based on IP address.
383 %description ip_acl -l pl
384 Jest to modu³ kontroli dostêpu (ACL) do proxy, który pozwala na
385 ograniczenie dostêpu u¿ytkowników proxy na podstawie ich adresu IP.
388 Summary: LDAP group external ACL helper for Squid
389 Summary(pl): Wsparcie kontroli dostêpu przez grupy LDAP dla squida
390 Group: Networking/Admin
393 %description ldap_acl
394 This is an external ACL module for the Squid proxy server to
395 limit acces for users based on LDAP group membership.
397 %description ldap_acl -l pl
398 Jest to modu³ kontroli dostêpu (ACL) do proxy, który pozwala na
399 ograniczenie dostêpu u¿ytkowników proxy na podstawie ich
400 przynale¿no¶ci do grup LDAP.
403 Summary: UNIX group external ACL helper for Squid
404 Summary(pl): Wsparcie kontroli dostêpu przez grupy UNIX dla squida
405 Group: Networking/Admin
408 %description unix_acl
409 This is an external ACL module for the Squid proxy server to
410 limit acces for users based on UNIX group membership.
412 %description unix_acl -l pl
413 Jest to modu³ kontroli dostêpu (ACL) do proxy, który pozwala na
414 ograniczenie dostêpu u¿ytkowników proxy na podstawie ich
415 przynale¿no¶ci do grup UNIX.
418 Summary: NT domain group external ACL helper for Squid
419 Summary(pl): Wsparcie kontroli dostêpu przez grupy w domenie NT dla squida
420 Group: Networking/Admin
423 %description wbinfo_acl
424 This is an external ACL module for the Squid proxy server to
425 limit acces for users based on NT domain group membership using wbinfo.
428 %description wbinfo_acl -l pl
429 Jest to modu³ kontroli dostêpu (ACL) do proxy, który pozwala na
430 ograniczenie dostêpu u¿ytkowników proxy na podstawie ich
431 przynale¿no¶ci do grup w domenie NT przy u¿yciu wbinfo.
434 Summary: NT domain group external ACL helper for Squid
435 Summary(pl): Wsparcie kontroli dostêpu przez grupy w domenie NT dla squida
436 Group: Networking/Admin
439 %description winbind_acl
440 This is an external ACL module for the Squid proxy server to
441 limit acces for users based on NT domain group membership
442 based on Samba Winbindd from Samba 2.2.4 or greater.
444 %description winbind_acl -l pl
445 Jest to modu³ kontroli dostêpu (ACL) do proxy, który pozwala na
446 ograniczenie dostêpu u¿ytkowników proxy na podstawie ich
447 przynale¿no¶ci do grup w domenie NT oparty na Samba Winbindd
448 z pakietu Samba 2.2.4 lub wy¿szego.
453 # Bug fixes from Squid home page:
506 %{?_with_combined_log:%patch230 -p1}
513 --datadir=%{_datadir}/squid \
514 --disable-ipf-transparent \
517 --enable-basic-auth-helpers=yes \
518 --enable-cache-digests \
520 --enable-delay-pools \
521 --enable-digest-auth-helpers=yes \
522 --enable-err-language=English \
523 --enable-external-acl-helpers=yes \
524 --enable-forw-via-db \
527 --enable-linux-netfilter \
528 --enable-ntlm-auth-helpers=yes \
529 --enable-referer-log \
530 --enable-removal-policies="lru heap" \
533 --enable-storeio="aufs,coss,diskd,null,ufs" \
534 --enable-underscores \
535 --enable-useragent-log \
536 --enable-x-accelerator-vary \
537 --localstatedir=/var \
538 --sysconfdir=%{_sysconfdir} \
544 perl -pi -e 's#/usr/.*bin/perl#/usr/bin/perl#g' contrib/*
545 perl -pi -e 's#/usr/.*bin/perl#/usr/bin/perl#g' scripts/*
546 find helpers/ -type f | xargs perl -pi -e 's#/usr/.*bin/perl#/usr/bin/perl#g'
549 rm -rf $RPM_BUILD_ROOT
550 install -d $RPM_BUILD_ROOT%{_cgidir} \
551 $RPM_BUILD_ROOT/etc/{pam.d,rc.d/init.d,security,sysconfig,logrotate.d} \
552 $RPM_BUILD_ROOT{%{_sbindir},%{_bindir},%{_libexecdir}/contrib} \
553 $RPM_BUILD_ROOT%{_mandir}/{man1,man8} \
554 $RPM_BUILD_ROOT%{_datadir}/squid \
555 $RPM_BUILD_ROOT/var/{cache,log{,/archiv}}/squid
558 DESTDIR=$RPM_BUILD_ROOT
560 cp -a contrib/*.pl $RPM_BUILD_ROOT%{_libexecdir}/contrib
561 install scripts/*.pl $RPM_BUILD_ROOT%{_libexecdir}
563 install %{SOURCE7} $RPM_BUILD_ROOT/etc/pam.d/squid
564 touch $RPM_BUILD_ROOT/etc/security/blacklist.squid
566 mv -f $RPM_BUILD_ROOT%{_libdir}/squid/cachemgr.cgi $RPM_BUILD_ROOT%{_cgidir}
568 cd $RPM_BUILD_ROOT/etc/squid
569 cp -f squid.conf{,.default}
570 patch -p0 < %{SOURCE5}
573 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/squid
574 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/squid
575 install %{SOURCE6} $RPM_BUILD_ROOT/etc/logrotate.d/squid
577 touch $RPM_BUILD_ROOT/var/log/squid/{access,cache,store}.log
579 # These two files start squid. They are replaced by /etc/rc.d/init.d script.
580 rm -f $RPM_BUILD_ROOT%{_bindir}/R*
582 # dunno why, but manual is not installed
583 mv doc/squid.8 $RPM_BUILD_ROOT%{_mandir}/man8
585 # We don't want Makefiles as docs...
589 rm -rf $RPM_BUILD_ROOT
592 if [ -n "`getgid squid`" ]; then
593 if [ "`getgid squid`" != "91" ]; then
594 echo "Error: group squid doesn't have gid=91. Correct this before installing squid." 1>&2
598 /usr/sbin/groupadd -g 91 -r -f squid 1>&2 || :
600 if [ -n "`id -u squid 2>/dev/null`" ]; then
601 if [ "`id -u squid`" != "91" ]; then
602 echo "Error: user squid doesn't have uid=91. Correct this before installing squid." 1>&2
606 /usr/sbin/useradd -M -o -r -u 91 -s /bin/false \
607 -g squid -c "SQUID http caching daemon" -d /var/cache/squid squid 1>&2 || :
609 [ -L %{_datadir}/squid/errors ] && rm -rf %{_datadir}/squid/errors || :
612 if ! grep -q "^visible_hostname" /etc/squid/squid.conf; then
613 echo visible_hostname `/bin/hostname -f` >> /etc/squid/squid.conf
616 if [ "$1" = "1" ]; then
617 /sbin/chkconfig --add squid
618 echo "Run \"/etc/rc.d/init.d/squid start\" to start squid." >&2
620 if [ -f /var/lock/subsys/squid ]; then
621 /etc/rc.d/init.d/squid restart >&2
626 if [ "$1" = "0" ]; then
627 if [ -f /var/lock/subsys/squid ]; then
628 /etc/rc.d/init.d/squid stop >&2
630 /sbin/chkconfig --del squid
634 if [ "$1" = "0" ]; then
635 /usr/sbin/userdel squid
636 /usr/sbin/groupdel squid
640 %defattr(644,root,root,755)
641 %doc faq CONTRIBUTORS COPYRIGHT CREDITS README ChangeLog QUICKSTART
642 %doc RELEASENOTES.html SPONSORS doc/*
643 %attr(755,root,root) %{_bindir}/squidclient
644 %attr(755,root,root) %{_libexecdir}/diskd
645 # YES, it has to be suid root, it sends ICMP packets.
646 %attr(4754,root,squid) %{_libexecdir}/pinger
647 %attr(755,root,root) %{_libexecdir}/unlinkd
648 %attr(755,root,root) %{_sbindir}/*
650 %attr(755,root,root) %dir %{_sysconfdir}
652 %attr(754,root,root) /etc/rc.d/init.d/squid
653 %attr(640,root,root) %config(noreplace) /etc/logrotate.d/squid
654 %attr(640,root,squid) %config(noreplace) /etc/sysconfig/squid
655 %attr(640,root,squid) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/squid.conf
656 %attr(640,root,squid) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mime.conf
657 %attr(640,root,root) %{_sysconfdir}/mime.conf.default
658 %attr(640,root,root) %{_sysconfdir}/squid.conf.default
660 %dir %{_datadir}/squid
661 %dir %{_datadir}/squid/errors
662 %{_datadir}/squid/icons
663 %{_datadir}/squid/mib.txt
664 %lang(bg) %{_datadir}/squid/errors/Bulgarian
665 %lang(ca) %{_datadir}/squid/errors/Catalan
666 %lang(cs) %{_datadir}/squid/errors/Czech
667 %lang(da) %{_datadir}/squid/errors/Danish
668 %lang(nl) %{_datadir}/squid/errors/Dutch
669 %{_datadir}/squid/errors/English
670 %lang(et) %{_datadir}/squid/errors/Estonian
671 %lang(fi) %{_datadir}/squid/errors/Finnish
672 %lang(fr) %{_datadir}/squid/errors/French
673 %lang(de) %{_datadir}/squid/errors/German
674 %lang(he) %{_datadir}/squid/errors/Hebrew
675 %lang(hu) %{_datadir}/squid/errors/Hungarian
676 %lang(it) %{_datadir}/squid/errors/Italian
677 %lang(ja) %{_datadir}/squid/errors/Japanese
678 %lang(ko) %{_datadir}/squid/errors/Korean
679 %lang(lt) %{_datadir}/squid/errors/Lithuanian
680 %lang(pl) %{_datadir}/squid/errors/Polish
681 %lang(pt) %{_datadir}/squid/errors/Portuguese
682 %lang(ro) %{_datadir}/squid/errors/Romanian
683 %lang(ru) %{_datadir}/squid/errors/Russian-1251
684 %lang(ru) %{_datadir}/squid/errors/Russian-koi8-r
685 %lang(zh_CN) %{_datadir}/squid/errors/Simplify_Chinese
686 %lang(sk) %{_datadir}/squid/errors/Slovak
687 %lang(es) %{_datadir}/squid/errors/Spanish
688 %lang(sr) %{_datadir}/squid/errors/Serbian
689 %lang(sv) %{_datadir}/squid/errors/Swedish
690 %lang(zh_TW) %{_datadir}/squid/errors/Traditional_Chinese
691 %lang(tr) %{_datadir}/squid/errors/Turkish
693 %attr(755,root,root) %dir %{_libexecdir}
694 %attr(755,root,root) %{_libexecdir}/*.pl
695 %attr(755,root,root) %{_libexecdir}/contrib
697 %attr(770,root,squid) %dir /var/log/archiv/squid
698 %attr(770,root,squid) %dir /var/log/squid
699 %attr(660,root,squid) %ghost /var/log/squid/*
701 %attr(770,root,squid) %dir /var/cache/squid
702 %{_mandir}/man8/squid.8*
705 %defattr(644,root,root,755)
706 %attr(755,root,root) %{_cgidir}/*
709 %defattr(644,root,root,755)
710 %doc helpers/basic_auth/LDAP/README
711 %attr(755,root,root) %{_libexecdir}/%{name}_ldap_auth
712 %attr(644,root,root) %{_mandir}/man8/%{name}_ldap_auth.*
715 %defattr(644,root,root,755)
716 %doc helpers/basic_auth/PAM/pam_auth.c
717 %config(noreplace) /etc/pam.d/squid
718 %config(noreplace) /etc/security/blacklist.squid
719 %attr(755,root,root) %{_libexecdir}/pam_auth
722 %defattr(644,root,root,755)
723 %doc helpers/basic_auth/SMB/{README,ChangeLog,smb_auth.sh}
724 %doc helpers/basic_auth/multi-domain-NTLM/*
725 %attr(755,root,root) %{_libexecdir}/smb_auth*
728 %defattr(644,root,root,755)
729 %doc helpers/basic_auth/MSNT/README*
730 %attr(755,root,root) %{_libexecdir}/msnt_auth
731 %attr(640,root,squid) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/msntauth.conf
734 %defattr(644,root,root,755)
735 %attr(755,root,root) %{_libexecdir}/yp_auth
738 %defattr(644,root,root,755)
739 %attr(755,root,root) %{_libexecdir}/ncsa_auth
742 %defattr(644,root,root,755)
743 %doc helpers/basic_auth/SASL/{README,squid_sasl*}
744 %attr(755,root,root) %{_libexecdir}/sasl_auth
747 %defattr(644,root,root,755)
748 %attr(755,root,root) %{_libexecdir}/wb_auth
750 %files getpwname_auth
751 %defattr(644,root,root,755)
752 %attr(755,root,root) %{_libexecdir}/getpwname_auth
755 %defattr(644,root,root,755)
756 %attr(755,root,root) %{_libexecdir}/digest_pw_auth
759 %defattr(644,root,root,755)
760 %doc helpers/ntlm_auth/no_check/{README*,no_check.pl}
761 %attr(755,root,root) %{_libexecdir}/wb_ntlmauth
762 %attr(755,root,root) %{_libexecdir}/ntlm_auth
765 %defattr(644,root,root,755)
766 %doc helpers/external_acl/ip_user/{README,example*}
767 %attr(755,root,root) %{_libexecdir}/ip_user_check
770 %defattr(644,root,root,755)
771 %attr(755,root,root) %{_libexecdir}/squid_ldap_group
772 %attr(644,root,root) %{_mandir}/man8/%{name}_ldap_group.*
775 %defattr(644,root,root,755)
776 %doc helpers/external_acl/unix_group/README
777 %attr(755,root,root) %{_libexecdir}/squid_unix_group
778 %attr(644,root,root) %{_mandir}/man8/%{name}_unix_group.*
781 %defattr(644,root,root,755)
782 %attr(755,root,root) %{_libexecdir}/wbinfo_group.pl
785 %defattr(644,root,root,755)
786 %doc helpers/external_acl/winbind_group/readme.txt
787 %attr(755,root,root) %{_libexecdir}/wb_group