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