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: 9894a1fe855b0cccdc14fbf014060990
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.STABLE4-reconfigure_message.patch
31 Patch1: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE4-digest_auth_pwchange.patch
32 Patch2: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE4-redirect_login_space.patch
33 Patch3: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE4-fqdnnegcache.patch
34 Patch4: http://www.squid-cache.org/Versions/v2/2.5/bugs/pam_auth-2.2.patch
35 Patch5: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE4_auth_param_doc.patch
36 Patch6: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE4-errorpages.patch
37 Patch7: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE4-error_load_text.patch
38 Patch8: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE4-xpi_mime.patch
39 Patch9: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE4-size_overflow.patch
40 Patch10: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE4-extacl_auth_loop.patch
41 Patch11: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE4-squid_ldap_group.patch
42 Patch12: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE4-positive_dns_ttl.patch
43 Patch13: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE4-gopherhtml.patch
44 Patch14: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE4-netroute.patch
45 Patch15: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE4-synflood.patch
46 Patch16: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE4-fqdn.patch
47 Patch17: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE4-connect_cleanup.patch
48 Patch18: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE4-pconn_post.patch
49 Patch19: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE4-ftp_put.patch
50 Patch20: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE4-pconn-load.patch
51 Patch21: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE4-icon_urls.patch
52 Patch22: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE4-redirector_access.patch
53 Patch23: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE4-pconn-lifo.patch
54 Patch24: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE4-cache_peer_maxconn.patch
55 Patch25: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE4-pid_filename_none.patch
56 Patch26: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE4-dns_namelength.patch
57 Patch27: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE4-urllogin_acl.patch
58 Patch28: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE4-russian.patch
59 Patch29: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE4-redirlog.patch
60 Patch30: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE4-pinger.patch
61 Patch31: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE4-partial_reload.patch
62 Patch32: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE4-ldap_tls.patch
63 Patch33: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE4-ldap_group_bufsize.patch
66 Patch110: http://www.sed.pl/~mrk/qos/%{name}_hit_miss_mark.patch
67 Patch120: %{name}-fhs.patch
68 Patch130: %{name}-location.patch
69 Patch140: %{name}-domainmatch.patch
70 Patch150: %{name}-libnsl_fixes.patch
71 Patch170: %{name}-ac_fix.patch
72 Patch180: %{name}-crash-on-ENOSPC.patch
73 Patch190: %{name}-newssl.patch
74 Patch200: %{name}-sasl.patch
75 Patch210: http://piorun.ds.pg.gda.pl/~blues/patches/%{name}-more_FD-new.patch
76 Patch220: %{name}-empty-referer.patch
77 Patch230: %{name}-%{version}-apache-like-combined-log.patch
78 URL: http://www.squid-cache.org/
79 BuildRequires: autoconf
80 BuildRequires: automake
81 BuildRequires: cyrus-sasl-devel >= 2.1.0
82 BuildRequires: openldap-devel
83 BuildRequires: openssl-devel >= 0.9.7d
84 BuildRequires: pam-devel
86 PreReq: rc-scripts >= 0.2.0
87 Requires(pre): /bin/id
88 Requires(pre): /usr/bin/getgid
89 Requires(pre): /usr/sbin/groupadd
90 Requires(pre): /usr/sbin/useradd
91 Requires(post,preun): /sbin/chkconfig
92 Requires(post): fileutils
93 Requires(post): findutils
95 Requires(post): /bin/hostname
96 Requires(postun): /usr/sbin/groupdel
97 Requires(postun): /usr/sbin/userdel
98 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
100 %define _libexecdir %{_libdir}/%{name}
101 %define _sysconfdir /etc/%{name}
102 %define _cgidir /home/services/httpd/cgi-bin
105 Squid is a high-performance proxy caching server for web clients,
106 supporting FTP, gopher, and HTTP data objects. Unlike traditional
107 caching software, Squid handles all requests in a single,
108 non-blocking, I/O-driven process. Squid keeps meta data and especially
109 hot objects cached in RAM, caches DNS lookups, supports non-blocking
110 DNS lookups, and implements negative caching of failed requests. If
111 you are tight on memory, check out the NOVM version of this package.
112 Squid supports SSL, extensive access controls, and full request
113 logging. By using the lightweight Internet Cache Protocol, Squid
114 caches can be arranged in a hierarchy or mesh for additional bandwidth
115 savings. Squid consists of a main server program squid, a Domain Name
116 System lookup program dnsserver, a program for retrieving FTP data
117 ftpget, and some management and client tools. When squid starts up, it
118 spawns a configurable number of dnsserver processes, each of which can
119 perform a single, blocking Domain Name System (DNS) lookup. This
120 reduces the amount of time the cache waits for DNS lookups. Squid is
121 derived from the ARPA-funded Harvest project.
124 Squid es un servidor proxy con caché de alto desempeño para clientes
125 web, soportando FTP, gopher y HTTP. Diferentemente de softwares
126 tradicionales de caché squid manipula todas las requisiciones en un
127 único proceso sin bloqueos, direccionado a E/S. Mantienen metadatos y
128 objetos frecuentemente pedidos en uno caché en memoria RAM. Hace caché
129 de resoluciones DNS, soporta resoluciones DNS sin bloqueo y implementa
130 un caché negativo de requisiciones que fallen. Si tiene poca memoria
131 da un vistazo en la versión NOVM de este paquete. También soporta SSL,
132 controles extensivos de acceso y registro (log) completo de las
133 requisiciones. Usando el ligero Protocolo de Caches Internet (ICP)
134 puede ser usado en una jerarquía de servidores para mayor ahorro de la
135 banda de comunicación. Está compuesto del programa squid (servidor
136 principal), del programa dnsserver (para resolución DNS), del programa
137 ftpget (para transmisiones ftp) y otras herramientas clientes y para
138 administración. Cuando squid se inicia, dispara un número configurable
139 de procesos dnsserver, cada uno pudiendo ejecutar solamente una
140 resolución DNS con poder de bloquear. Esto reduce el tiempo que el
141 caché espera por resoluciones DNS. Fue derivado del proyecto Harvest,
142 financiado por la ARPA.
145 Squid jest wysoce wydajnym serwerem proxy-cache dla przegl±darek WWW,
146 klientów FTP i gopher. Squid przechowuje najczê¶ciej pobierane dane w
147 pamiêci RAM i zapamiêtuje odwo³ania do DNS. Squid oferuje wsparcie dla
148 SSL, rozbudowan± kontrolê dostêpu oraz pe³ne rejestrowanie pobieranych
149 danych. Dziêki u¿yciu protoko³u ICP (Internet Cache Protocol), serwer
150 squid mo¿na ³±czyæ w hierarchiê, zwiêkszaj±c ich efektywno¶æ. Pakiet
151 squid obejmuje: g³ówny program serwera squid, program dostarczaj±cy
152 informacji z DNS dnsserver, program odbieraj±cy dane FTP ftpget, oraz
153 pomocnicze programy do zarz±dzania. Squid wywodzi siê ze
154 sponsorowanego przez ARPA projektu Harvest.
156 %description -l pt_BR
157 O Squid é um servidor proxy com cache de alta performance para
158 clientes web, suportando FTP, gopher e HTTP. Diferentemente de
159 softwares tradicionais de cache o squid manipula todas as requisições
160 em um único processo sem bloqueios, direcionado a E/S.
162 Mantém meta dados e objetos freqüentemente pedidos num cache em
163 memória RAM. Faz cache de resoluções DNS, suporta resoluções DNS sem
164 bloqueio e implementa um cache negativo de requisições que falharem.
165 Se você tem pouca memória dê uma olhada na versão NOVM deste pacote.
167 Também suporta SSL, controles extensivos de acesso e registro (log)
168 completo das requisições. Usando o leve Protocolo de Caches Internet
169 (ICP) ele pode ser usado em uma hierarquia de servidores para maior
170 economia de banda de comunicação.
172 Ele consiste do programa squid (servidor principal), do programa
173 dnsserver (para resolução DNS), do programa ftpget (para transmissões
174 ftp) e outras ferramentas clientes e para gerenciamento. Quando o
175 squid é inicializado ele dispara um número configurável de processos
176 dnsserver, cada um podendo executar somente uma resolução DNS
177 bloqueante. Isto reduz o tempo que o cache espera por resoluções DNS.
179 Foi derivado do projeto Harvest, financiado pela ARPA.
182 Squid - ÜÔÏ ×ÙÓÏËÏÐÒÏÉÚ×ÏÄÉÔÅÌØÎÙÊ ËÜÛÉÒÕÀÝÉÊ ÐÒÏËÓÉ-ÓÅÒ×ÅÒ ÄÌÑ
183 ËÌÉÅÎÔÏ× web, ÐÏÄÄÅÒÖÉ×ÁÀÝÉÊ ÏÂßÅËÔÙ ÄÁÎÎÙÈ ÔÉÐÁ FTP, gopher É HTTP. ÷
184 ÏÔÌÉÞÉÅ ÏÔ ÔÒÁÄÉÃÉÏÎÎÙÈ ËÜÛÉÒÕÀÝÉÈ ÐÒÏÇÒÁÍÍ, Squid ÏÂÒÁÂÁÔÙ×ÁÅÔ ×ÓÅ
185 ÚÁÐÒÏÓÙ ÐÒÉ ÐÏÍÏÝÉ ÏÄÎÏÇÏ ÎÅÂÌÏËÉÒÕÀÝÅÇÏÓÑ, ÕÐÒÁ×ÌÑÅÍÏÇÏ
186 ××ÏÄÏÍ-×Ù×ÏÄÏÍ ÐÒÏÃÅÓÓÁ.
188 üÔÏÔ ÐÁËÅÔ ÉÍÅÅÔ ×ÓÔÒÏÅÎÎÕÀ ÐÏÄÄÅÒÖËÕ ÂÁÚÙ ÄÁÎÎÙÈ ÓÅÔÅ×ÙÈ ICMP-ÐÒÏÂ
192 Squid - ÃÅ ËÅÛÕÀÞÉÊ ÐÒÏËÓ¦-ÓÅÒ×ÅÒ ÄÌÑ web-Ë̦¤ÎÔ¦×, ÝÏ Ð¦ÄÔÒÉÍÕ¤
193 ÏÂ'¤ËÔÉ ÄÁÎÉÈ ÔÉÐÕ FTP, gopher ÔÁ HTTP. îÁ צÄͦÎÕ ×¦Ä ÔÒÁÄÉæÊÎÉÈ
194 ËÅÛÕÀÞÉÈ ÐÒÏÇÒÁÍ, Squid ÏÂÒÏÂÌѤ ×Ó¦ ÚÁÐÉÔÉ ÚÁ ÄÏÐÏÍÏÇÏÀ ÏÄÎÏÇÏ
195 ÎÅÂÌÏËÕÀÞÏÇÏ, ËÅÒÏ×ÁÎÏÇÏ ××ÏÄÏÍ-×É×ÏÄÏÍ ÐÒÏÃÅÓÕ.
197 ãÅÊ ÐÁËÅÔ ÍÁ¤ ×ÂÕÄÏ×ÁÎÕ Ð¦ÄÔÒÉÍËÕ ÂÁÚÉ ÄÁÎÉÈ ÍÅÒÅÖÅ×ÉÈ ICMP-ÐÒÏÂ
201 Summary: CGI script for Squid management
202 Summary(pl): Skrypt CGI do zarz±dzania Squidem przez WWW
203 Group: Networking/Admin
204 Requires: %{name} = %{epoch}:%{version}-%{release}
207 %description cachemgr
208 Cachemgr.cgi is a CGI script that allows administrator to chceck
209 various informations about Squid via WWW.
211 %description cachemgr -l pl
212 Cachemgr.cgi jest skryptem CGI, który pozwala administratorowi
213 zapoznaæ siê z informacjami o pracy Squida poprzez WWW.
216 Summary: LDAP authentication helper for Squid
217 Summary(pl): Wsparcie autentykacji LDAP dla squida
218 Group: Networking/Admin
219 Requires: %{name} = %{epoch}:%{version}-%{release}
221 %description ldap_auth
222 This Squid helper allows authentication against LDAP directories using
223 the "simple authentication" (plain-text).
225 %description ldap_auth -l pl
226 Pakiet ten pozwala na autentykacjê LDAP za pomoc± prostej autentykacji
230 Summary: PAM authentication helper for Squid
231 Summary(pl): Wsparcie autentykacji PAM dla squida
232 Group: Networking/Admin
233 Requires: %{name} = %{epoch}:%{version}-%{release}
234 Requires: pam >= 0.77.3
236 %description pam_auth
237 This program authenticates users against a PAM configured
238 authentication service "squid". This allows you to authenticate Squid
239 users to any authentication source for which you have a PAM module.
241 %description pam_auth -l pl
242 Program ten pozwala na autentykacjê u¿ytkowników squida w dowolnym
243 ¼ródle posiadaj±cym modu³ PAM.
246 Summary: SMB authentication helper for Squid
247 Summary(pl): Wsparcie autentykacji SMB dla squida
248 Group: Networking/Admin
249 Requires: %{name} = %{epoch}:%{version}-%{release}
251 %description smb_auth
252 This is a proxy authentication module. With smb_auth you can
253 authenticate proxy users against an SMB server like Windows NT or
256 %description smb_auth -l pl
257 To jest modu³ autentykacji proxy. Z smb_auth mo¿esz autentyfikowaæ
258 u¿ytkowników proxy na serwerach SMB, jak Windows NT czy Samba.
261 Summary: MSNT domain authentication helper for Squid
262 Summary(pl): Wsparcie autentykacji domen MSNT dla squida
263 Group: Networking/Admin
264 Requires: %{name} = %{epoch}:%{version}-%{release}
266 %description msnt_auth
267 This is an authentication module for the Squid proxy server to
268 authenticate users on an NT domain.
270 %description msnt_auth -l pl
271 Jest to modu³ autentykacji proxy, który pozwala na autentyfikowanie
272 u¿ytkowników proxy w domenie NT.
275 Summary: YP authentication helper for Squid
276 Summary(pl): Wsparcie autentykacji YP dla squida
277 Group: Networking/Admin
278 Requires: %{name} = %{epoch}:%{version}-%{release}
281 This is an authentication module for the Squid proxy server to
282 authenticate users on YP.
284 %description yp_auth -l pl
285 Jest to modu³ autentykacji proxy, który pozwala na autentyfikowanie
286 u¿ytkowników proxy poprzez YP.
289 Summary: NCSA httpd style authentication helper for Squid
290 Summary(pl): Wsparcie autentykacji NCSA httpd dla squida
291 Group: Networking/Admin
292 Requires: %{name} = %{epoch}:%{version}-%{release}
294 %description ncsa_auth
295 This module uses a NCSA httpd style password file for authentication.
297 %description ncsa_auth -l pl
298 Modu³ autentykacji proxy u¿ywaj±cy pliku hase³ jak w NCSA httpd.
301 Summary: SASL authentication helper for Squid
302 Summary(pl): Wsparcie autentykacji SASL dla squida
303 Group: Networking/Admin
304 Requires: %{name} = %{epoch}:%{version}-%{release}
306 %description sasl_auth
307 This is an authentication module for the Squid proxy server to
308 authenticate users via SASL.
310 %description sasl_auth -l pl
311 Jest to modu³ autentykacji proxy, który pozwala na autentyfikowanie
312 u¿ytkowników proxy poprzez SASL.
314 %package winbind_auth
315 Summary: WINBIND authentication helper for Squid
316 Summary(pl): Wsparcie autentykacji WINBIND dla squida
317 Group: Networking/Admin
318 Requires: %{name} = %{epoch}:%{version}-%{release}
320 %description winbind_auth
321 This is an authentication module for the Squid proxy server to
322 authenticate users via WINBIND.
324 %description winbind_auth -l pl
325 Jest to modu³ autentykacji proxy, który pozwala na autentyfikowanie
326 u¿ytkowników proxy poprzez WINBIND.
328 %package getpwname_auth
329 Summary: getpwname authentication helper for Squid
330 Summary(pl): Wsparcie autentykacji getpwname dla squida
331 Group: Networking/Admin
332 Requires: %{name} = %{epoch}:%{version}-%{release}
334 %description getpwname_auth
335 This is an authentication module for the Squid proxy server to
336 authenticate users using getpwname.
338 %description getpwname_auth -l pl
339 Jest to modu³ autentykacji proxy, który pozwala na autentyfikowanie
340 u¿ytkowników proxy poprzez getpwname.
343 Summary: passwd authentication helper for Squid
344 Summary(pl): Wsparcie autentykacji passwd dla squida
345 Group: Networking/Admin
346 Requires: %{name} = %{epoch}:%{version}-%{release}
348 %description passwd_auth
349 This is an authentication module for the Squid proxy server to
350 authenticate users with separate passwd file.
352 %description passwd_auth -l pl
353 Jest to modu³ autentykacji proxy, który pozwala na autentyfikowanie
354 u¿ytkowników proxy poprzez oddzielny plik passwd.
357 Summary: NTLM authentication helper for Squid
358 Summary(pl): Wsparcie autentykacji NTLM dla squida
359 Group: Networking/Admin
360 Requires: %{name} = %{epoch}:%{version}-%{release}
362 %description ntlm_auth
363 This is an authentication module for the Squid proxy server to
364 authenticate users on NTLM.
366 %description ntlm_auth -l pl
367 Jest to modu³ autentykacji proxy, który pozwala na autentyfikowanie
368 u¿ytkowników proxy poprzez NTLM.
371 Summary: IP external ACL helper for Squid
372 Summary(pl): Wsparcie kontroli dostêpu przez IP dla squida
373 Group: Networking/Admin
374 Requires: %{name} = %{epoch}:%{version}-%{release}
377 This is an external ACL module for the Squid proxy server to limit
378 acces for users based on IP address.
380 %description ip_acl -l pl
381 Jest to modu³ kontroli dostêpu (ACL) do proxy, który pozwala na
382 ograniczenie dostêpu u¿ytkowników proxy na podstawie ich adresu IP.
385 Summary: LDAP group external ACL helper for Squid
386 Summary(pl): Wsparcie kontroli dostêpu przez grupy LDAP dla squida
387 Group: Networking/Admin
388 Requires: %{name} = %{epoch}:%{version}-%{release}
390 %description ldap_acl
391 This is an external ACL module for the Squid proxy server to limit
392 acces for users based on LDAP group membership.
394 %description ldap_acl -l pl
395 Jest to modu³ kontroli dostêpu (ACL) do proxy, który pozwala na
396 ograniczenie dostêpu u¿ytkowników proxy na podstawie ich
397 przynale¿no¶ci do grup LDAP.
400 Summary: UNIX group external ACL helper for Squid
401 Summary(pl): Wsparcie kontroli dostêpu przez grupy UNIX dla squida
402 Group: Networking/Admin
403 Requires: %{name} = %{epoch}:%{version}-%{release}
405 %description unix_acl
406 This is an external ACL module for the Squid proxy server to limit
407 acces for users based on UNIX group membership.
409 %description unix_acl -l pl
410 Jest to modu³ kontroli dostêpu (ACL) do proxy, który pozwala na
411 ograniczenie dostêpu u¿ytkowników proxy na podstawie ich
412 przynale¿no¶ci do grup UNIX.
415 Summary: NT domain group external ACL helper for Squid
416 Summary(pl): Wsparcie kontroli dostêpu przez grupy w domenie NT dla squida
417 Group: Networking/Admin
418 Requires: %{name} = %{epoch}:%{version}-%{release}
420 %description wbinfo_acl
421 This is an external ACL module for the Squid proxy server to limit
422 acces for users based on NT domain group membership using wbinfo.
425 %description wbinfo_acl -l pl
426 Jest to modu³ kontroli dostêpu (ACL) do proxy, który pozwala na
427 ograniczenie dostêpu u¿ytkowników proxy na podstawie ich
428 przynale¿no¶ci do grup w domenie NT przy u¿yciu wbinfo.
431 Summary: NT domain group external ACL helper for Squid
432 Summary(pl): Wsparcie kontroli dostêpu przez grupy w domenie NT dla squida
433 Group: Networking/Admin
434 Requires: %{name} = %{epoch}:%{version}-%{release}
436 %description winbind_acl
437 This is an external ACL module for the Squid proxy server to limit
438 acces for users based on NT domain group membership based on Samba
439 Winbindd from Samba 2.2.4 or greater.
441 %description winbind_acl -l pl
442 Jest to modu³ kontroli dostêpu (ACL) do proxy, który pozwala na
443 ograniczenie dostêpu u¿ytkowników proxy na podstawie ich
444 przynale¿no¶ci do grup w domenie NT oparty na Samba Winbindd z pakietu
445 Samba 2.2.4 lub wy¿szego.
450 # Bug fixes from Squid home page:
497 %{?_with_combined_log:%patch230 -p1}
504 --datadir=%{_datadir}/squid \
505 --disable-ipf-transparent \
508 --enable-basic-auth-helpers=yes \
509 --enable-cache-digests \
511 --enable-delay-pools \
512 --enable-digest-auth-helpers=yes \
513 --enable-err-language=English \
514 --enable-external-acl-helpers=yes \
515 --enable-forw-via-db \
518 --enable-linux-netfilter \
519 --enable-ntlm-auth-helpers=yes \
520 --enable-referer-log \
521 --enable-removal-policies="lru heap" \
524 --enable-storeio="aufs,coss,diskd,null,ufs" \
525 --enable-underscores \
526 --enable-useragent-log \
527 --enable-x-accelerator-vary \
528 --localstatedir=/var \
529 --sysconfdir=%{_sysconfdir} \
535 perl -pi -e 's#%{_prefix}/.*bin/perl#%{_bindir}/perl#g' contrib/*
536 perl -pi -e 's#%{_prefix}/.*bin/perl#%{_bindir}/perl#g' scripts/*
537 find helpers/ -type f | xargs perl -pi -e 's#%{_prefix}/.*bin/perl#%{_bindir}/perl#g'
540 rm -rf $RPM_BUILD_ROOT
541 install -d $RPM_BUILD_ROOT%{_cgidir} \
542 $RPM_BUILD_ROOT/etc/{pam.d,rc.d/init.d,security,sysconfig,logrotate.d} \
543 $RPM_BUILD_ROOT{%{_sbindir},%{_bindir},%{_libexecdir}/contrib} \
544 $RPM_BUILD_ROOT%{_mandir}/man8 \
545 $RPM_BUILD_ROOT%{_datadir}/squid \
546 $RPM_BUILD_ROOT/var/{cache,log{,/archiv}}/squid
549 DESTDIR=$RPM_BUILD_ROOT
551 cp -a contrib/*.pl $RPM_BUILD_ROOT%{_libexecdir}/contrib
552 install scripts/*.pl $RPM_BUILD_ROOT%{_libexecdir}
554 install %{SOURCE7} $RPM_BUILD_ROOT/etc/pam.d/squid
555 touch $RPM_BUILD_ROOT/etc/security/blacklist.squid
557 mv -f $RPM_BUILD_ROOT%{_libdir}/squid/cachemgr.cgi $RPM_BUILD_ROOT%{_cgidir}
559 cd $RPM_BUILD_ROOT/etc/squid
560 cp -f squid.conf{,.default}
561 patch -p0 < %{SOURCE5}
564 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/squid
565 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/squid
566 install %{SOURCE6} $RPM_BUILD_ROOT/etc/logrotate.d/squid
568 touch $RPM_BUILD_ROOT/var/log/squid/{access,cache,store}.log
570 # These two files start squid. They are replaced by /etc/rc.d/init.d script.
571 rm -f $RPM_BUILD_ROOT%{_bindir}/R*
573 # dunno why, but manual is not installed
574 mv doc/squid.8 $RPM_BUILD_ROOT%{_mandir}/man8
576 # We don't want Makefiles as docs...
579 # We don't like message: rpm found unpackaged files ...
580 rm -f $RPM_BUILD_ROOT/etc/squid/msntauth.conf.default \
581 $RPM_BUILD_ROOT/etc/squid/squid.conf.orig
584 rm -rf $RPM_BUILD_ROOT
587 if [ -n "`getgid squid`" ]; then
588 if [ "`getgid squid`" != "91" ]; then
589 echo "Error: group squid doesn't have gid=91. Correct this before installing squid." 1>&2
593 /usr/sbin/groupadd -g 91 -r -f squid 1>&2 || :
595 if [ -n "`id -u squid 2>/dev/null`" ]; then
596 if [ "`id -u squid`" != "91" ]; then
597 echo "Error: user squid doesn't have uid=91. Correct this before installing squid." 1>&2
601 /usr/sbin/useradd -M -o -r -u 91 -s /bin/false \
602 -g squid -c "SQUID http caching daemon" -d /var/cache/squid squid 1>&2 || :
604 [ -L %{_datadir}/squid/errors ] && rm -rf %{_datadir}/squid/errors || :
607 if ! grep -q "^visible_hostname" /etc/squid/squid.conf; then
608 echo visible_hostname `/bin/hostname -f` >> /etc/squid/squid.conf
611 if [ "$1" = "1" ]; then
612 /sbin/chkconfig --add squid
613 echo "Run \"/etc/rc.d/init.d/squid start\" to start squid." >&2
615 if [ -f /var/lock/subsys/squid ]; then
616 /etc/rc.d/init.d/squid restart >&2
621 if [ "$1" = "0" ]; then
622 if [ -f /var/lock/subsys/squid ]; then
623 /etc/rc.d/init.d/squid stop >&2
625 /sbin/chkconfig --del squid
629 if [ "$1" = "0" ]; then
630 /usr/sbin/userdel squid
631 /usr/sbin/groupdel squid
635 %defattr(644,root,root,755)
636 %doc faq CONTRIBUTORS COPYRIGHT CREDITS README ChangeLog QUICKSTART
637 %doc RELEASENOTES.html SPONSORS doc/* src/mib.txt
638 %attr(755,root,root) %{_bindir}/squidclient
639 %attr(755,root,root) %{_libexecdir}/diskd
640 # YES, it has to be suid root, it sends ICMP packets.
641 %attr(4754,root,squid) %{_libexecdir}/pinger
642 %attr(755,root,root) %{_libexecdir}/unlinkd
643 %attr(755,root,root) %{_libexecdir}/fakeauth_auth
644 %attr(755,root,root) %{_sbindir}/*
646 %attr(755,root,root) %dir %{_sysconfdir}
648 %attr(754,root,root) /etc/rc.d/init.d/squid
649 %attr(640,root,root) %config(noreplace) /etc/logrotate.d/squid
650 %attr(640,root,squid) %config(noreplace) /etc/sysconfig/squid
651 %attr(640,root,squid) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/squid.conf
652 %attr(640,root,squid) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mime.conf
653 %attr(640,root,root) %{_sysconfdir}/mime.conf.default
654 %attr(640,root,root) %{_sysconfdir}/squid.conf.default
656 %dir %{_datadir}/squid
657 %dir %{_datadir}/squid/errors
658 %{_datadir}/squid/icons
659 %{_datadir}/squid/mib.txt
660 %lang(bg) %{_datadir}/squid/errors/Bulgarian
661 %lang(ca) %{_datadir}/squid/errors/Catalan
662 %lang(cs) %{_datadir}/squid/errors/Czech
663 %lang(da) %{_datadir}/squid/errors/Danish
664 %lang(nl) %{_datadir}/squid/errors/Dutch
665 %{_datadir}/squid/errors/English
666 %lang(et) %{_datadir}/squid/errors/Estonian
667 %lang(fi) %{_datadir}/squid/errors/Finnish
668 %lang(fr) %{_datadir}/squid/errors/French
669 %lang(de) %{_datadir}/squid/errors/German
670 %lang(he) %{_datadir}/squid/errors/Hebrew
671 %lang(hu) %{_datadir}/squid/errors/Hungarian
672 %lang(it) %{_datadir}/squid/errors/Italian
673 %lang(ja) %{_datadir}/squid/errors/Japanese
674 %lang(ko) %{_datadir}/squid/errors/Korean
675 %lang(lt) %{_datadir}/squid/errors/Lithuanian
676 %lang(pl) %{_datadir}/squid/errors/Polish
677 %lang(pt) %{_datadir}/squid/errors/Portuguese
678 %lang(ro) %{_datadir}/squid/errors/Romanian
679 %lang(ru) %{_datadir}/squid/errors/Russian-1251
680 %lang(ru) %{_datadir}/squid/errors/Russian-koi8-r
681 %lang(zh_CN) %{_datadir}/squid/errors/Simplify_Chinese
682 %lang(sk) %{_datadir}/squid/errors/Slovak
683 %lang(es) %{_datadir}/squid/errors/Spanish
684 %lang(sr) %{_datadir}/squid/errors/Serbian
685 %lang(sv) %{_datadir}/squid/errors/Swedish
686 %lang(zh_TW) %{_datadir}/squid/errors/Traditional_Chinese
687 %lang(tr) %{_datadir}/squid/errors/Turkish
689 %attr(755,root,root) %dir %{_libexecdir}
690 %attr(755,root,root) %{_libexecdir}/*.pl
691 %attr(755,root,root) %{_libexecdir}/contrib
693 %attr(770,root,squid) %dir /var/log/archiv/squid
694 %attr(770,root,squid) %dir /var/log/squid
695 %attr(660,root,squid) %ghost /var/log/squid/*
697 %attr(770,root,squid) %dir /var/cache/squid
698 %{_mandir}/man8/squid.8*
701 %defattr(644,root,root,755)
702 %attr(755,root,root) %{_cgidir}/*
705 %defattr(644,root,root,755)
706 %doc helpers/basic_auth/LDAP/README
707 %attr(755,root,root) %{_libexecdir}/%{name}_ldap_auth
708 %attr(644,root,root) %{_mandir}/man8/%{name}_ldap_auth.*
711 %defattr(644,root,root,755)
712 %doc helpers/basic_auth/PAM/pam_auth.c
713 %config(noreplace) /etc/pam.d/squid
714 %config(noreplace) /etc/security/blacklist.squid
715 %attr(755,root,root) %{_libexecdir}/pam_auth
716 %{_mandir}/man8/pam_auth.8*
719 %defattr(644,root,root,755)
720 %doc helpers/basic_auth/SMB/{README,ChangeLog,smb_auth.sh}
721 %doc helpers/basic_auth/multi-domain-NTLM/*
722 %attr(755,root,root) %{_libexecdir}/smb_auth*
725 %defattr(644,root,root,755)
726 %doc helpers/basic_auth/MSNT/README*
727 %attr(755,root,root) %{_libexecdir}/msnt_auth
728 %attr(640,root,squid) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/msntauth.conf
731 %defattr(644,root,root,755)
732 %attr(755,root,root) %{_libexecdir}/yp_auth
735 %defattr(644,root,root,755)
736 %attr(755,root,root) %{_libexecdir}/ncsa_auth
739 %defattr(644,root,root,755)
740 %doc helpers/basic_auth/SASL/{README,squid_sasl*}
741 %attr(755,root,root) %{_libexecdir}/sasl_auth
744 %defattr(644,root,root,755)
745 %attr(755,root,root) %{_libexecdir}/wb_auth
747 %files getpwname_auth
748 %defattr(644,root,root,755)
749 %attr(755,root,root) %{_libexecdir}/getpwname_auth
752 %defattr(644,root,root,755)
753 %attr(755,root,root) %{_libexecdir}/digest_pw_auth
756 %defattr(644,root,root,755)
757 %doc helpers/ntlm_auth/no_check/{README*,no_check.pl}
758 %attr(755,root,root) %{_libexecdir}/wb_ntlmauth
759 %attr(755,root,root) %{_libexecdir}/ntlm_auth
762 %defattr(644,root,root,755)
763 %doc helpers/external_acl/ip_user/{README,example*}
764 %attr(755,root,root) %{_libexecdir}/ip_user_check
767 %defattr(644,root,root,755)
768 %attr(755,root,root) %{_libexecdir}/squid_ldap_group
769 %attr(644,root,root) %{_mandir}/man8/%{name}_ldap_group.*
772 %defattr(644,root,root,755)
773 %doc helpers/external_acl/unix_group/README
774 %attr(755,root,root) %{_libexecdir}/squid_unix_group
775 %attr(644,root,root) %{_mandir}/man8/%{name}_unix_group.*
778 %defattr(644,root,root,755)
779 %attr(755,root,root) %{_libexecdir}/wbinfo_group.pl
782 %defattr(644,root,root,755)
783 %doc helpers/external_acl/winbind_group/readme.txt
784 %attr(755,root,root) %{_libexecdir}/wb_group