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 BuildRequires: autoconf
79 BuildRequires: cyrus-sasl-devel >= 2.1.0
80 BuildRequires: openldap-devel
81 BuildRequires: openssl-devel >= 0.9.7a
82 BuildRequires: pam-devel
84 PreReq: rc-scripts >= 0.2.0
85 Requires(pre): /bin/id
86 Requires(pre): /usr/bin/getgid
87 Requires(pre): /usr/sbin/groupadd
88 Requires(pre): /usr/sbin/useradd
89 Requires(post,preun): /sbin/chkconfig
90 Requires(post): fileutils
91 Requires(post): findutils
93 Requires(post): /bin/hostname
94 Requires(postun): /usr/sbin/groupdel
95 Requires(postun): /usr/sbin/userdel
96 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
98 %define _libexecdir %{_libdir}/%{name}
99 %define _sysconfdir /etc/%{name}
100 %define _cgidir /home/services/httpd/cgi-bin
103 Squid is a high-performance proxy caching server for web clients,
104 supporting FTP, gopher, and HTTP data objects. Unlike traditional
105 caching software, Squid handles all requests in a single,
106 non-blocking, I/O-driven process. Squid keeps meta data and especially
107 hot objects cached in RAM, caches DNS lookups, supports non-blocking
108 DNS lookups, and implements negative caching of failed requests. If
109 you are tight on memory, check out the NOVM version of this package.
110 Squid supports SSL, extensive access controls, and full request
111 logging. By using the lightweight Internet Cache Protocol, Squid
112 caches can be arranged in a hierarchy or mesh for additional bandwidth
113 savings. Squid consists of a main server program squid, a Domain Name
114 System lookup program dnsserver, a program for retrieving FTP data
115 ftpget, and some management and client tools. When squid starts up, it
116 spawns a configurable number of dnsserver processes, each of which can
117 perform a single, blocking Domain Name System (DNS) lookup. This
118 reduces the amount of time the cache waits for DNS lookups. Squid is
119 derived from the ARPA-funded Harvest project.
122 Squid es un servidor proxy con caché de alto desempeño para clientes
123 web, soportando FTP, gopher y HTTP. Diferentemente de softwares
124 tradicionales de caché squid manipula todas las requisiciones en un
125 único proceso sin bloqueos, direccionado a E/S. Mantienen metadatos y
126 objetos frecuentemente pedidos en uno caché en memoria RAM. Hace caché
127 de resoluciones DNS, soporta resoluciones DNS sin bloqueo y implementa
128 un caché negativo de requisiciones que fallen. Si tiene poca memoria
129 da un vistazo en la versión NOVM de este paquete. También soporta SSL,
130 controles extensivos de acceso y registro (log) completo de las
131 requisiciones. Usando el ligero Protocolo de Caches Internet (ICP)
132 puede ser usado en una jerarquía de servidores para mayor ahorro de la
133 banda de comunicación. Está compuesto del programa squid (servidor
134 principal), del programa dnsserver (para resolución DNS), del programa
135 ftpget (para transmisiones ftp) y otras herramientas clientes y para
136 administración. Cuando squid se inicia, dispara un número configurable
137 de procesos dnsserver, cada uno pudiendo ejecutar solamente una
138 resolución DNS con poder de bloquear. Esto reduce el tiempo que el
139 caché espera por resoluciones DNS. Fue derivado del proyecto Harvest,
140 financiado por la ARPA.
143 Squid jest wysoce wydajnym serwerem proxy-cache dla przegl±darek WWW,
144 klientów FTP i gopher. Squid przechowuje najczê¶ciej pobierane dane w
145 pamiêci RAM i zapamiêtuje odwo³ania do DNS. Squid oferuje wsparcie dla
146 SSL, rozbudowan± kontrolê dostêpu oraz pe³ne rejestrowanie pobieranych
147 danych. Dziêki u¿yciu protoko³u ICP (Internet Cache Protocol), serwer
148 squid mo¿na ³±czyæ w hierarchiê, zwiêkszaj±c ich efektywno¶æ. Pakiet
149 squid obejmuje: g³ówny program serwera squid, program dostarczaj±cy
150 informacji z DNS dnsserver, program odbieraj±cy dane FTP ftpget, oraz
151 pomocnicze programy do zarz±dzania. Squid wywodzi siê ze
152 sponsorowanego przez ARPA projektu Harvest.
154 %description -l pt_BR
155 O Squid é um servidor proxy com cache de alta performance para
156 clientes web, suportando FTP, gopher e HTTP. Diferentemente de
157 softwares tradicionais de cache o squid manipula todas as requisições
158 em um único processo sem bloqueios, direcionado a E/S.
160 Mantém meta dados e objetos freqüentemente pedidos num cache em
161 memória RAM. Faz cache de resoluções DNS, suporta resoluções DNS sem
162 bloqueio e implementa um cache negativo de requisições que falharem.
163 Se você tem pouca memória dê uma olhada na versão NOVM deste pacote.
165 Também suporta SSL, controles extensivos de acesso e registro (log)
166 completo das requisições. Usando o leve Protocolo de Caches Internet
167 (ICP) ele pode ser usado em uma hierarquia de servidores para maior
168 economia de banda de comunicação.
170 Ele consiste do programa squid (servidor principal), do programa
171 dnsserver (para resolução DNS), do programa ftpget (para transmissões
172 ftp) e outras ferramentas clientes e para gerenciamento. Quando o
173 squid é inicializado ele dispara um número configurável de processos
174 dnsserver, cada um podendo executar somente uma resolução DNS
175 bloqueante. Isto reduz o tempo que o cache espera por resoluções DNS.
177 Foi derivado do projeto Harvest, financiado pela ARPA.
180 Squid - ÜÔÏ ×ÙÓÏËÏÐÒÏÉÚ×ÏÄÉÔÅÌØÎÙÊ ËÜÛÉÒÕÀÝÉÊ ÐÒÏËÓÉ-ÓÅÒ×ÅÒ ÄÌÑ
181 ËÌÉÅÎÔÏ× web, ÐÏÄÄÅÒÖÉ×ÁÀÝÉÊ ÏÂßÅËÔÙ ÄÁÎÎÙÈ ÔÉÐÁ FTP, gopher É HTTP. ÷
182 ÏÔÌÉÞÉÅ ÏÔ ÔÒÁÄÉÃÉÏÎÎÙÈ ËÜÛÉÒÕÀÝÉÈ ÐÒÏÇÒÁÍÍ, Squid ÏÂÒÁÂÁÔÙ×ÁÅÔ ×ÓÅ
183 ÚÁÐÒÏÓÙ ÐÒÉ ÐÏÍÏÝÉ ÏÄÎÏÇÏ ÎÅÂÌÏËÉÒÕÀÝÅÇÏÓÑ, ÕÐÒÁ×ÌÑÅÍÏÇÏ
184 ××ÏÄÏÍ-×Ù×ÏÄÏÍ ÐÒÏÃÅÓÓÁ.
186 üÔÏÔ ÐÁËÅÔ ÉÍÅÅÔ ×ÓÔÒÏÅÎÎÕÀ ÐÏÄÄÅÒÖËÕ ÂÁÚÙ ÄÁÎÎÙÈ ÓÅÔÅ×ÙÈ ICMP-ÐÒÏÂ
190 Squid - ÃÅ ËÅÛÕÀÞÉÊ ÐÒÏËÓ¦-ÓÅÒ×ÅÒ ÄÌÑ web-Ë̦¤ÎÔ¦×, ÝÏ Ð¦ÄÔÒÉÍÕ¤
191 ÏÂ'¤ËÔÉ ÄÁÎÉÈ ÔÉÐÕ FTP, gopher ÔÁ HTTP. îÁ צÄͦÎÕ ×¦Ä ÔÒÁÄÉæÊÎÉÈ
192 ËÅÛÕÀÞÉÈ ÐÒÏÇÒÁÍ, Squid ÏÂÒÏÂÌѤ ×Ó¦ ÚÁÐÉÔÉ ÚÁ ÄÏÐÏÍÏÇÏÀ ÏÄÎÏÇÏ
193 ÎÅÂÌÏËÕÀÞÏÇÏ, ËÅÒÏ×ÁÎÏÇÏ ××ÏÄÏÍ-×É×ÏÄÏÍ ÐÒÏÃÅÓÕ.
195 ãÅÊ ÐÁËÅÔ ÍÁ¤ ×ÂÕÄÏ×ÁÎÕ Ð¦ÄÔÒÉÍËÕ ÂÁÚÉ ÄÁÎÉÈ ÍÅÒÅÖÅ×ÉÈ ICMP-ÐÒÏÂ
199 Summary: CGI script for Squid management
200 Summary(pl): Skrypt CGI do zarz±dzania Squidem przez WWW
201 Group: Networking/Admin
202 Requires: %{name} = %{epoch}:%{version}
205 %description cachemgr
206 Cachemgr.cgi is a CGI script that allows administrator to chceck
207 various informations about Squid via WWW.
209 %description cachemgr -l pl
210 Cachemgr.cgi jest skryptem CGI, który pozwala administratorowi
211 zapoznaæ siê z informacjami o pracy Squida poprzez WWW.
214 Summary: LDAP authentication helper for Squid
215 Summary(pl): Wsparcie autentykacji LDAP dla squida
216 Group: Networking/Admin
219 %description ldap_auth
220 This Squid helper allows authentication against LDAP directories using
221 the "simple authentication" (plain-text).
223 %description ldap_auth -l pl
224 Pakiet ten pozwala na autentykacjê LDAP za pomoc± prostej autentykacji
228 Summary: PAM authentication helper for Squid
229 Summary(pl): Wsparcie autentykacji PAM dla squida
230 Group: Networking/Admin
233 %description pam_auth
234 This program authenticates users against a PAM configured
235 authentication service "squid". This allows you to authenticate Squid
236 users to any authentication source for which you have a PAM module.
238 %description pam_auth -l pl
239 Program ten pozwala na autentykacjê u¿ytkowników squida w dowolnym
240 ¼ródle posiadaj±cym modu³ PAM.
243 Summary: SMB authentication helper for Squid
244 Summary(pl): Wsparcie autentykacji SMB dla squida
245 Group: Networking/Admin
248 %description smb_auth
249 This is a proxy authentication module. With smb_auth you can
250 authenticate proxy users against an SMB server like Windows NT or
253 %description smb_auth -l pl
254 To jest modu³ autentykacji proxy. Z smb_auth mo¿esz autentyfikowaæ
255 u¿ytkowników proxy na serwerach SMB, jak Windows NT czy Samba.
258 Summary: MSNT domain authentication helper for Squid
259 Summary(pl): Wsparcie autentykacji domen MSNT dla squida
260 Group: Networking/Admin
263 %description msnt_auth
264 This is an authentication module for the Squid proxy server to
265 authenticate users on an NT domain.
267 %description msnt_auth -l pl
268 Jest to modu³ autentykacji proxy, który pozwala na autentyfikowanie
269 u¿ytkowników proxy w domenie NT.
272 Summary: YP authentication helper for Squid
273 Summary(pl): Wsparcie autentykacji YP dla squida
274 Group: Networking/Admin
278 This is an authentication module for the Squid proxy server to
279 authenticate users on YP.
281 %description yp_auth -l pl
282 Jest to modu³ autentykacji proxy, który pozwala na autentyfikowanie
283 u¿ytkowników proxy poprzez YP.
286 Summary: NCSA httpd style authentication helper for Squid
287 Summary(pl): Wsparcie autentykacji NCSA httpd dla squida
288 Group: Networking/Admin
291 %description ncsa_auth
292 This module uses a NCSA httpd style password file for authentication.
294 %description ncsa_auth -l pl
295 Modu³ autentykacji proxy u¿ywaj±cy pliku hase³ jak w NCSA httpd.
298 Summary: SASL authentication helper for Squid
299 Summary(pl): Wsparcie autentykacji SASL dla squida
300 Group: Networking/Admin
303 %description sasl_auth
304 This is an authentication module for the Squid proxy server to
305 authenticate users via SASL.
307 %description sasl_auth -l pl
308 Jest to modu³ autentykacji proxy, który pozwala na autentyfikowanie
309 u¿ytkowników proxy poprzez SASL.
311 %package winbind_auth
312 Summary: WINBIND authentication helper for Squid
313 Summary(pl): Wsparcie autentykacji WINBIND dla squida
314 Group: Networking/Admin
317 %description winbind_auth
318 This is an authentication module for the Squid proxy server to
319 authenticate users via WINBIND.
321 %description winbind_auth -l pl
322 Jest to modu³ autentykacji proxy, który pozwala na autentyfikowanie
323 u¿ytkowników proxy poprzez WINBIND.
325 %package getpwname_auth
326 Summary: getpwname authentication helper for Squid
327 Summary(pl): Wsparcie autentykacji getpwname dla squida
328 Group: Networking/Admin
331 %description getpwname_auth
332 This is an authentication module for the Squid proxy server to
333 authenticate users using getpwname.
335 %description getpwname_auth -l pl
336 Jest to modu³ autentykacji proxy, który pozwala na autentyfikowanie
337 u¿ytkowników proxy poprzez getpwname.
340 Summary: passwd authentication helper for Squid
341 Summary(pl): Wsparcie autentykacji passwd dla squida
342 Group: Networking/Admin
345 %description passwd_auth
346 This is an authentication module for the Squid proxy server to
347 authenticate users with separate passwd file.
349 %description passwd_auth -l pl
350 Jest to modu³ autentykacji proxy, który pozwala na autentyfikowanie
351 u¿ytkowników proxy poprzez oddzielny plik passwd.
354 Summary: NTLM authentication helper for Squid
355 Summary(pl): Wsparcie autentykacji NTLM dla squida
356 Group: Networking/Admin
359 %description ntlm_auth
360 This is an authentication module for the Squid proxy server to
361 authenticate users on NTLM.
363 %description ntlm_auth -l pl
364 Jest to modu³ autentykacji proxy, który pozwala na autentyfikowanie
365 u¿ytkowników proxy poprzez NTLM.
368 Summary: IP external ACL helper for Squid
369 Summary(pl): Wsparcie kontroli dostêpu przez IP dla squida
370 Group: Networking/Admin
374 This is an external ACL module for the Squid proxy server to
375 limit acces for users based on IP address.
377 %description ip_acl -l pl
378 Jest to modu³ kontroli dostêpu (ACL) do proxy, który pozwala na
379 ograniczenie dostêpu u¿ytkowników proxy na podstawie ich adresu IP.
382 Summary: LDAP group external ACL helper for Squid
383 Summary(pl): Wsparcie kontroli dostêpu przez grupy LDAP dla squida
384 Group: Networking/Admin
387 %description ldap_acl
388 This is an external ACL module for the Squid proxy server to
389 limit acces for users based on LDAP group membership.
391 %description ldap_acl -l pl
392 Jest to modu³ kontroli dostêpu (ACL) do proxy, który pozwala na
393 ograniczenie dostêpu u¿ytkowników proxy na podstawie ich
394 przynale¿no¶ci do grup LDAP.
397 Summary: UNIX group external ACL helper for Squid
398 Summary(pl): Wsparcie kontroli dostêpu przez grupy UNIX dla squida
399 Group: Networking/Admin
402 %description unix_acl
403 This is an external ACL module for the Squid proxy server to
404 limit acces for users based on UNIX group membership.
406 %description unix_acl -l pl
407 Jest to modu³ kontroli dostêpu (ACL) do proxy, który pozwala na
408 ograniczenie dostêpu u¿ytkowników proxy na podstawie ich
409 przynale¿no¶ci do grup UNIX.
412 Summary: NT domain group external ACL helper for Squid
413 Summary(pl): Wsparcie kontroli dostêpu przez grupy w domenie NT dla squida
414 Group: Networking/Admin
417 %description wbinfo_acl
418 This is an external ACL module for the Squid proxy server to
419 limit acces for users based on NT domain group membership using wbinfo.
422 %description wbinfo_acl -l pl
423 Jest to modu³ kontroli dostêpu (ACL) do proxy, który pozwala na
424 ograniczenie dostêpu u¿ytkowników proxy na podstawie ich
425 przynale¿no¶ci do grup w domenie NT przy u¿yciu wbinfo.
428 Summary: NT domain group external ACL helper for Squid
429 Summary(pl): Wsparcie kontroli dostêpu przez grupy w domenie NT dla squida
430 Group: Networking/Admin
433 %description winbind_acl
434 This is an external ACL module for the Squid proxy server to
435 limit acces for users based on NT domain group membership
436 based on Samba Winbindd from Samba 2.2.4 or greater.
438 %description winbind_acl -l pl
439 Jest to modu³ kontroli dostêpu (ACL) do proxy, który pozwala na
440 ograniczenie dostêpu u¿ytkowników proxy na podstawie ich
441 przynale¿no¶ci do grup w domenie NT oparty na Samba Winbindd
442 z pakietu Samba 2.2.4 lub wy¿szego.
447 # Bug fixes from Squid home page:
505 --localstatedir=/var \
506 --sysconfdir=%{_sysconfdir} \
507 --datadir=%{_datadir}/squid \
509 --enable-useragent-log \
512 --enable-err-language=English \
516 --enable-forw-via-db \
517 --enable-cache-digests \
518 --enable-storeio="aufs,coss,diskd,null,ufs" \
519 --enable-removal-policies="lru heap" \
520 --enable-referer-log \
521 --disable-ipf-transparent \
522 --enable-delay-pools \
525 --enable-basic-auth-helpers=yes \
526 --enable-ntlm-auth-helpers=yes \
527 --enable-digest-auth-helpers=yes \
528 --enable-external-acl-helpers=yes \
529 --enable-x-accelerator-vary \
530 --enable-linux-netfilter
535 perl -pi -e 's#/usr/.*bin/perl#/usr/bin/perl#g' contrib/*
536 perl -pi -e 's#/usr/.*bin/perl#/usr/bin/perl#g' scripts/*
537 find helpers/ -type f | xargs perl -pi -e 's#/usr/.*bin/perl#/usr/bin/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}/{man1,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*
574 rm -rf $RPM_BUILD_ROOT
577 if [ -n "`getgid squid`" ]; then
578 if [ "`getgid squid`" != "91" ]; then
579 echo "Error: group squid doesn't have gid=91. Correct this before installing squid." 1>&2
583 /usr/sbin/groupadd -g 91 -r -f squid 1>&2 || :
585 if [ -n "`id -u squid 2>/dev/null`" ]; then
586 if [ "`id -u squid`" != "91" ]; then
587 echo "Error: user squid doesn't have uid=91. Correct this before installing squid." 1>&2
591 /usr/sbin/useradd -M -o -r -u 91 -s /bin/false \
592 -g squid -c "SQUID http caching daemon" -d /var/cache/squid squid 1>&2 || :
594 [ -L %{_datadir}/squid/errors ] && rm -rf %{_datadir}/squid/errors || :
597 if ! grep -q "^visible_hostname" /etc/squid/squid.conf; then
598 echo visible_hostname `/bin/hostname -f` >> /etc/squid/squid.conf
601 if [ "$1" = "1" ]; then
602 /sbin/chkconfig --add squid
603 echo "Run \"/etc/rc.d/init.d/squid start\" to start squid." >&2
605 if [ -f /var/lock/subsys/squid ]; then
606 /etc/rc.d/init.d/squid restart >&2
611 if [ "$1" = "0" ]; then
612 if [ -f /var/lock/subsys/squid ]; then
613 /etc/rc.d/init.d/squid stop >&2
615 /sbin/chkconfig --del squid
619 if [ "$1" = "0" ]; then
620 /usr/sbin/userdel squid
621 /usr/sbin/groupdel squid
625 %defattr(644,root,root,755)
626 %doc faq CONTRIBUTORS COPYRIGHT CREDITS README ChangeLog QUICKSTART
627 %doc RELEASENOTES.html SPONSORS doc/*
628 %attr(755,root,root) %{_bindir}/squidclient
629 %attr(755,root,root) %{_libexecdir}/diskd
630 # YES, it has to be suid root, it sends ICMP packets.
631 %attr(4754,root,squid) %{_libexecdir}/pinger
632 %attr(755,root,root) %{_libexecdir}/unlinkd
633 %attr(755,root,root) %{_sbindir}/*
635 %attr(755,root,root) %dir %{_sysconfdir}
637 %attr(754,root,root) /etc/rc.d/init.d/squid
638 %attr(640,root,root) %config(noreplace) /etc/logrotate.d/squid
639 %attr(640,root,squid) %config(noreplace) /etc/sysconfig/squid
640 %attr(640,root,squid) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/squid.conf
641 %attr(640,root,squid) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mime.conf
642 %attr(640,root,root) %{_sysconfdir}/mime.conf.default
643 %attr(640,root,root) %{_sysconfdir}/squid.conf.default
645 %dir %{_datadir}/squid
646 %dir %{_datadir}/squid/errors
647 %{_datadir}/squid/icons
648 %{_datadir}/squid/mib.txt
649 %lang(bg) %{_datadir}/squid/errors/Bulgarian
650 %lang(ca) %{_datadir}/squid/errors/Catalan
651 %lang(cs) %{_datadir}/squid/errors/Czech
652 %lang(da) %{_datadir}/squid/errors/Danish
653 %lang(nl) %{_datadir}/squid/errors/Dutch
654 %{_datadir}/squid/errors/English
655 %lang(et) %{_datadir}/squid/errors/Estonian
656 %lang(fi) %{_datadir}/squid/errors/Finnish
657 %lang(fr) %{_datadir}/squid/errors/French
658 %lang(de) %{_datadir}/squid/errors/German
659 %lang(he) %{_datadir}/squid/errors/Hebrew
660 %lang(hu) %{_datadir}/squid/errors/Hungarian
661 %lang(it) %{_datadir}/squid/errors/Italian
662 %lang(ja) %{_datadir}/squid/errors/Japanese
663 %lang(ko) %{_datadir}/squid/errors/Korean
664 %lang(lt) %{_datadir}/squid/errors/Lithuanian
665 %lang(pl) %{_datadir}/squid/errors/Polish
666 %lang(pt) %{_datadir}/squid/errors/Portuguese
667 %lang(ro) %{_datadir}/squid/errors/Romanian
668 %lang(ru) %{_datadir}/squid/errors/Russian-1251
669 %lang(ru) %{_datadir}/squid/errors/Russian-koi8-r
670 %lang(zh_CN) %{_datadir}/squid/errors/Simplify_Chinese
671 %lang(sk) %{_datadir}/squid/errors/Slovak
672 %lang(es) %{_datadir}/squid/errors/Spanish
673 %lang(sr) %{_datadir}/squid/errors/Serbian
674 %lang(sv) %{_datadir}/squid/errors/Swedish
675 %lang(zh_TW) %{_datadir}/squid/errors/Traditional_Chinese
676 %lang(tr) %{_datadir}/squid/errors/Turkish
678 %attr(755,root,root) %dir %{_libexecdir}
679 %attr(755,root,root) %{_libexecdir}/*.pl
680 %attr(755,root,root) %{_libexecdir}/contrib
682 %attr(770,root,squid) %dir /var/log/archiv/squid
683 %attr(770,root,squid) %dir /var/log/squid
684 %attr(660,root,squid) %ghost /var/log/squid/*
686 %attr(770,root,squid) %dir /var/cache/squid
689 %defattr(644,root,root,755)
690 %attr(755,root,root) %{_cgidir}/*
693 %defattr(644,root,root,755)
694 %doc helpers/basic_auth/LDAP/README
695 %attr(755,root,root) %{_libexecdir}/%{name}_ldap_auth
696 %attr(644,root,root) %{_mandir}/man8/%{name}_ldap_auth.*
699 %defattr(644,root,root,755)
700 %doc helpers/basic_auth/PAM/pam_auth.c
701 %config(noreplace) /etc/pam.d/squid
702 %config(noreplace) /etc/security/blacklist.squid
703 %attr(755,root,root) %{_libexecdir}/pam_auth
706 %defattr(644,root,root,755)
707 %doc helpers/basic_auth/SMB/{README,ChangeLog,smb_auth.sh}
708 %doc helpers/basic_auth/multi-domain-NTLM/*
709 %attr(755,root,root) %{_libexecdir}/smb_auth*
712 %defattr(644,root,root,755)
713 %doc helpers/basic_auth/MSNT/README*
714 %attr(755,root,root) %{_libexecdir}/msnt_auth
715 %attr(640,root,squid) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/msntauth.conf
718 %defattr(644,root,root,755)
719 %attr(755,root,root) %{_libexecdir}/yp_auth
722 %defattr(644,root,root,755)
723 %attr(755,root,root) %{_libexecdir}/ncsa_auth
726 %defattr(644,root,root,755)
727 %doc helpers/basic_auth/SASL/{README,squid_sasl*}
728 %attr(755,root,root) %{_libexecdir}/sasl_auth
731 %defattr(644,root,root,755)
732 %attr(755,root,root) %{_libexecdir}/wb_auth
734 %files getpwname_auth
735 %defattr(644,root,root,755)
736 %attr(755,root,root) %{_libexecdir}/getpwname_auth
739 %defattr(644,root,root,755)
740 %attr(755,root,root) %{_libexecdir}/digest_pw_auth
743 %defattr(644,root,root,755)
744 %doc helpers/ntlm_auth/no_check/{README*,no_check.pl}
745 %attr(755,root,root) %{_libexecdir}/wb_ntlmauth
746 %attr(755,root,root) %{_libexecdir}/ntlm_auth
749 %defattr(644,root,root,755)
750 %doc helpers/external_acl/ip_user/{README,example*}
751 %attr(755,root,root) %{_libexecdir}/ip_user_check
754 %defattr(644,root,root,755)
755 %attr(755,root,root) %{_libexecdir}/squid_ldap_group
756 %attr(644,root,root) %{_mandir}/man8/%{name}_ldap_group.*
759 %defattr(644,root,root,755)
760 %doc helpers/external_acl/unix_group/README
761 %attr(755,root,root) %{_libexecdir}/squid_unix_group
762 %attr(644,root,root) %{_mandir}/man8/%{name}_unix_group.*
765 %defattr(644,root,root,755)
766 %attr(755,root,root) %{_libexecdir}/wbinfo_group.pl
769 %defattr(644,root,root,755)
770 %doc helpers/external_acl/winbind_group/readme.txt
771 %attr(755,root,root) %{_libexecdir}/wb_group