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 Source1: %{name}-1.1.19-faq.tar.gz
17 Source3: %{name}.sysconfig
18 Source4: http://cache.is.co.za/%{name}-docs.tar.gz
19 Source5: %{name}.conf.patch
20 Source6: %{name}.logrotate
22 # Bug fixes from Squid home page:
23 Patch0: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE1-ldap_group-compile.patch
24 Patch1: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE1-flags_open.patch
25 Patch2: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE1-ldap_group.patch
26 Patch3: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE1-spaces.patch
27 Patch4: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE1-dnsserver.patch
28 Patch5: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE1-auth-proxy.patch
29 Patch6: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE1-cachemgr.patch
30 Patch7: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE1-uninstall.patch
31 Patch8: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE1-ext_acl_exit.patch
32 Patch9: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE1-request_entity.patch
33 Patch10: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE1-ext_acl_comma.patch
34 Patch11: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE1-acl_leak.patch
35 Patch12: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE1-aufs.patch
36 Patch13: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE1-memstat.patch
37 Patch14: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE1-wccp.patch
38 Patch15: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE1-strwordtok.patch
39 Patch16: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE1-pthreads.patch
40 Patch17: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE1-addlang.patch
41 Patch18: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE1-ldap_auth.patch
42 Patch19: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE1-referer_log.patch
43 Patch20: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE1-load_icons.patch
44 Patch21: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE1-cache_dir_docs.patch
45 Patch22: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE1-max_user_ip.patch
46 Patch23: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE1-proxy_auth.patch
47 Patch24: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE1-disable-http-violations.patch
48 Patch25: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE1-disable-ident-lookups.patch
50 Patch100: %{name}-perl.patch
51 Patch110: %{name}-linux.patch
52 Patch120: %{name}-fhs.patch
53 Patch130: %{name}-location.patch
54 Patch140: %{name}-domainmatch.patch
55 Patch150: %{name}-libnsl_fixes.patch
56 Patch160: %{name}-more_FD.patch
57 Patch170: %{name}-ac_fix.patch
58 Patch180: %{name}-contrib.patch
59 Patch190: %{name}-crash-on-ENOSPC.patch
60 BuildRequires: autoconf
61 BuildRequires: openldap-devel
62 BuildRequires: openssl-devel >= 0.9.7
63 BuildRequires: pam-devel
65 PreReq: rc-scripts >= 0.2.0
66 Requires(pre): /bin/id
67 Requires(pre): /usr/bin/getgid
68 Requires(pre): /usr/sbin/groupadd
69 Requires(pre): /usr/sbin/useradd
70 Requires(post,preun): /sbin/chkconfig
71 Requires(post): fileutils
72 Requires(post): findutils
73 Requires(postun): /usr/sbin/groupdel
74 Requires(postun): /usr/sbin/userdel
75 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
77 %define _libexecdir %{_libdir}/%{name}
78 %define _sysconfdir /etc/%{name}
81 Squid is a high-performance proxy caching server for web clients,
82 supporting FTP, gopher, and HTTP data objects. Unlike traditional
83 caching software, Squid handles all requests in a single,
84 non-blocking, I/O-driven process. Squid keeps meta data and especially
85 hot objects cached in RAM, caches DNS lookups, supports non-blocking
86 DNS lookups, and implements negative caching of failed requests. If
87 you are tight on memory, check out the NOVM version of this package.
88 Squid supports SSL, extensive access controls, and full request
89 logging. By using the lightweight Internet Cache Protocol, Squid
90 caches can be arranged in a hierarchy or mesh for additional bandwidth
91 savings. Squid consists of a main server program squid, a Domain Name
92 System lookup program dnsserver, a program for retrieving FTP data
93 ftpget, and some management and client tools. When squid starts up, it
94 spawns a configurable number of dnsserver processes, each of which can
95 perform a single, blocking Domain Name System (DNS) lookup. This
96 reduces the amount of time the cache waits for DNS lookups. Squid is
97 derived from the ARPA-funded Harvest project.
100 Squid es un servidor proxy con caché de alto desempeño para clientes
101 web, soportando FTP, gopher y HTTP. Diferentemente de softwares
102 tradicionales de caché squid manipula todas las requisiciones en un
103 único proceso sin bloqueos, direccionado a E/S. Mantienen metadatos y
104 objetos frecuentemente pedidos en uno caché en memoria RAM. Hace caché
105 de resoluciones DNS, soporta resoluciones DNS sin bloqueo y implementa
106 un caché negativo de requisiciones que fallen. Si tiene poca memoria
107 da un vistazo en la versión NOVM de este paquete. También soporta SSL,
108 controles extensivos de acceso y registro (log) completo de las
109 requisiciones. Usando el ligero Protocolo de Caches Internet (ICP)
110 puede ser usado en una jerarquía de servidores para mayor ahorro de la
111 banda de comunicación. Está compuesto del programa squid (servidor
112 principal), del programa dnsserver (para resolución DNS), del programa
113 ftpget (para transmisiones ftp) y otras herramientas clientes y para
114 administración. Cuando squid se inicia, dispara un número configurable
115 de procesos dnsserver, cada uno pudiendo ejecutar solamente una
116 resolución DNS con poder de bloquear. Esto reduce el tiempo que el
117 caché espera por resoluciones DNS. Fue derivado del proyecto Harvest,
118 financiado por la ARPA.
121 Squid jest wysoce wydajnym serwerem proxy-cache dla przegl±darek WWW,
122 klientów FTP i gopher. Squid przechowuje najczê¶ciej pobierane dane w
123 pamiêci RAM i zapamiêtuje odwo³ania do DNS. Squid oferuje wsparcie dla
124 SSL, rozbudowan± kontrolê dostêpu oraz pe³ne rejestrowanie pobieranych
125 danych. Dziêki u¿yciu protoko³u ICP (Internet Cache Protocol), serwer
126 squid mo¿na ³±czyæ w hierarchiê, zwiêkszaj±c ich efektywno¶æ. Pakiet
127 squid obejmuje: g³ówny program serwera squid, program dostarczaj±cy
128 informacji z DNS dnsserver, program odbieraj±cy dane FTP ftpget, oraz
129 pomocnicze programy do zarz±dzania. Squid wywodzi siê ze
130 sponsorowanego przez ARPA projektu Harvest.
132 %description -l pt_BR
133 O Squid é um servidor proxy com cache de alta performance para
134 clientes web, suportando FTP, gopher e HTTP. Diferentemente de
135 softwares tradicionais de cache o squid manipula todas as requisições
136 em um único processo sem bloqueios, direcionado a E/S.
138 Mantém meta dados e objetos freqüentemente pedidos num cache em
139 memória RAM. Faz cache de resoluções DNS, suporta resoluções DNS sem
140 bloqueio e implementa um cache negativo de requisições que falharem.
141 Se você tem pouca memória dê uma olhada na versão NOVM deste pacote.
143 Também suporta SSL, controles extensivos de acesso e registro (log)
144 completo das requisições. Usando o leve Protocolo de Caches Internet
145 (ICP) ele pode ser usado em uma hierarquia de servidores para maior
146 economia de banda de comunicação.
148 Ele consiste do programa squid (servidor principal), do programa
149 dnsserver (para resolução DNS), do programa ftpget (para transmissões
150 ftp) e outras ferramentas clientes e para gerenciamento. Quando o
151 squid é inicializado ele dispara um número configurável de processos
152 dnsserver, cada um podendo executar somente uma resolução DNS
153 bloqueante. Isto reduz o tempo que o cache espera por resoluções DNS.
155 Foi derivado do projeto Harvest, financiado pela ARPA.
158 Squid - ÜÔÏ ×ÙÓÏËÏÐÒÏÉÚ×ÏÄÉÔÅÌØÎÙÊ ËÜÛÉÒÕÀÝÉÊ ÐÒÏËÓÉ-ÓÅÒ×ÅÒ ÄÌÑ
159 ËÌÉÅÎÔÏ× web, ÐÏÄÄÅÒÖÉ×ÁÀÝÉÊ ÏÂßÅËÔÙ ÄÁÎÎÙÈ ÔÉÐÁ FTP, gopher É HTTP. ÷
160 ÏÔÌÉÞÉÅ ÏÔ ÔÒÁÄÉÃÉÏÎÎÙÈ ËÜÛÉÒÕÀÝÉÈ ÐÒÏÇÒÁÍÍ, Squid ÏÂÒÁÂÁÔÙ×ÁÅÔ ×ÓÅ
161 ÚÁÐÒÏÓÙ ÐÒÉ ÐÏÍÏÝÉ ÏÄÎÏÇÏ ÎÅÂÌÏËÉÒÕÀÝÅÇÏÓÑ, ÕÐÒÁ×ÌÑÅÍÏÇÏ
162 ××ÏÄÏÍ-×Ù×ÏÄÏÍ ÐÒÏÃÅÓÓÁ.
164 üÔÏÔ ÐÁËÅÔ ÉÍÅÅÔ ×ÓÔÒÏÅÎÎÕÀ ÐÏÄÄÅÒÖËÕ ÂÁÚÙ ÄÁÎÎÙÈ ÓÅÔÅ×ÙÈ ICMP-ÐÒÏÂ
168 Squid - ÃÅ ËÅÛÕÀÞÉÊ ÐÒÏËÓ¦-ÓÅÒ×ÅÒ ÄÌÑ web-Ë̦¤ÎÔ¦×, ÝÏ Ð¦ÄÔÒÉÍÕ¤
169 ÏÂ'¤ËÔÉ ÄÁÎÉÈ ÔÉÐÕ FTP, gopher ÔÁ HTTP. îÁ צÄͦÎÕ ×¦Ä ÔÒÁÄÉæÊÎÉÈ
170 ËÅÛÕÀÞÉÈ ÐÒÏÇÒÁÍ, Squid ÏÂÒÏÂÌѤ ×Ó¦ ÚÁÐÉÔÉ ÚÁ ÄÏÐÏÍÏÇÏÀ ÏÄÎÏÇÏ
171 ÎÅÂÌÏËÕÀÞÏÇÏ, ËÅÒÏ×ÁÎÏÇÏ ××ÏÄÏÍ-×É×ÏÄÏÍ ÐÒÏÃÅÓÕ.
173 ãÅÊ ÐÁËÅÔ ÍÁ¤ ×ÂÕÄÏ×ÁÎÕ Ð¦ÄÔÒÉÍËÕ ÂÁÚÉ ÄÁÎÉÈ ÍÅÒÅÖÅ×ÉÈ ICMP-ÐÒÏÂ
177 Summary: CGI script for Squid management
178 Summary(pl): Skrypt CGI do zarz±dzania Squidem przez WWW
179 Group: Networking/Admin
180 Requires: %{name} = %{version}
183 %description cachemgr
184 Cachemgr.cgi is a CGI script that allows administrator to chceck
185 various informations about Squid via WWW.
187 %description cachemgr -l pl
188 Cachemgr.cgi jest skryptem CGI, który pozwala administratorowi
189 zapoznaæ siê z informacjami o pracy Squida poprzez WWW.
192 Summary: LDAP authentication helper for Squid
193 Summary(pl): Wsparcie autentykacji LDAP dla squida
194 Group: Networking/Admin
197 %description ldap_auth
198 This Squid helper allows authentication against LDAP directories using
199 the "simple authentication" (plain-text).
201 %description ldap_auth -l pl
202 Pakiet ten pozwala na autentykacjê LDAP za pomoc± prostej autentykacji
206 Summary: PAM authentication helper for Squid
207 Summary(pl): Wsparcie autentykacji PAM dla squida
208 Group: Networking/Admin
211 %description pam_auth
212 This program authenticates users against a PAM configured
213 authentication service "squid". This allows you to authenticate Squid
214 users to any authentication source for which you have a PAM module.
216 %description pam_auth -l pl
217 Program ten pozwala na autentykacjê u¿ytkowników squida w dowolnym
218 ¼ródle posiadaj±cym modu³ PAM.
221 Summary: SMB authentication helper for Squid
222 Summary(pl): Wsparcie autentykacji SMB dla squida
223 Group: Networking/Admin
226 %description smb_auth
227 This is a proxy authentication module. With smb_auth you can
228 authenticate proxy users against an SMB server like Windows NT or
231 %description smb_auth -l pl
232 To jest modu³ autentykacji proxy. Z smb_auth mo¿esz autentyfikowaæ
233 u¿ytkowników proxy na serwerach SMB, jak Windows NT czy Samba.
236 Summary: MSNT domain authentication helper for Squid
237 Summary(pl): Wsparcie autentykacji domen MSNT dla squida
238 Group: Networking/Admin
241 %description msnt_auth
242 This is an authentication module for the Squid proxy server to
243 authenticate users on an NT domain.
245 %description msnt_auth -l pl
246 Jest to modu³ autentykacji proxy, który pozwala na autentyfikowanie
247 u¿ytkowników proxy w domenie NT.
250 Summary: YP authentication helper for Squid
251 Summary(pl): Wsparcie autentykacji YP dla squida
252 Group: Networking/Admin
256 This is an authentication module for the Squid proxy server to
257 authenticate users on YP.
259 %description yp_auth -l pl
260 Jest to modu³ autentykacji proxy, który pozwala na autentyfikowanie
261 u¿ytkowników proxy poprzez YP.
264 Summary: NCSA httpd style authentication helper for Squid
265 Summary(pl): Wsparcie autentykacji NCSA httpd dla squida
266 Group: Networking/Admin
269 %description ncsa_auth
270 This module uses a NCSA httpd style password file for authentication.
272 %description ncsa_auth -l pl
273 Modu³ autentykacji proxy u¿ywaj±cy pliku hase³ jak w NCSA httpd.
276 Summary: SASL authentication helper for Squid
277 Summary(pl): Wsparcie autentykacji SASL dla squida
278 Group: Networking/Admin
281 %description sasl_auth
282 This is an authentication module for the Squid proxy server to
283 authenticate users via SASL.
285 %description sasl_auth -l pl
286 Jest to modu³ autentykacji proxy, który pozwala na autentyfikowanie
287 u¿ytkowników proxy poprzez SASL.
289 %package winbind_auth
290 Summary: WINBIND authentication helper for Squid
291 Summary(pl): Wsparcie autentykacji WINBIND dla squida
292 Group: Networking/Admin
295 %description winbind_auth
296 This is an authentication module for the Squid proxy server to
297 authenticate users via WINBIND.
299 %description winbind_auth -l pl
300 Jest to modu³ autentykacji proxy, który pozwala na autentyfikowanie
301 u¿ytkowników proxy poprzez WINBIND.
303 %package getpwname_auth
304 Summary: getpwname authentication helper for Squid
305 Summary(pl): Wsparcie autentykacji getpwname dla squida
306 Group: Networking/Admin
309 %description getpwname_auth
310 This is an authentication module for the Squid proxy server to
311 authenticate users using getpwname.
313 %description getpwname_auth -l pl
314 Jest to modu³ autentykacji proxy, który pozwala na autentyfikowanie
315 u¿ytkowników proxy poprzez getpwname.
318 Summary: passwd authentication helper for Squid
319 Summary(pl): Wsparcie autentykacji passwd dla squida
320 Group: Networking/Admin
323 %description passwd_auth
324 This is an authentication module for the Squid proxy server to
325 authenticate users with separate passwd file.
327 %description passwd_auth -l pl
328 Jest to modu³ autentykacji proxy, który pozwala na autentyfikowanie
329 u¿ytkowników proxy poprzez oddzielny plik passwd.
332 Summary: NTLM authentication helper for Squid
333 Summary(pl): Wsparcie autentykacji NTLM dla squida
334 Group: Networking/Admin
337 %description ntlm_auth
338 This is an authentication module for the Squid proxy server to
339 authenticate users on NTLM.
341 %description ntlm_auth -l pl
342 Jest to modu³ autentykacji proxy, który pozwala na autentyfikowanie
343 u¿ytkowników proxy poprzez NTLM.
346 Summary: IP external ACL helper for Squid
347 Summary(pl): Wsparcie kontroli dostêpu przez IP dla squida
348 Group: Networking/Admin
352 This is an external ACL module for the Squid proxy server to
353 limit acces for users based on IP address.
355 %description ip_acl -l pl
356 Jest to modu³ kontroli dostêpu (ACL) do proxy, który pozwala na
357 ograniczenie dostêpu u¿ytkowników proxy na podstawie ich adresu IP.
360 Summary: LDAP group external ACL helper for Squid
361 Summary(pl): Wsparcie kontroli dostêpu przez grupy LDAP dla squida
362 Group: Networking/Admin
365 %description ldap_acl
366 This is an external ACL module for the Squid proxy server to
367 limit acces for users based on LDAP group membership.
369 %description ldap_acl -l pl
370 Jest to modu³ kontroli dostêpu (ACL) do proxy, który pozwala na
371 ograniczenie dostêpu u¿ytkowników proxy na podstawie ich
372 przynale¿no¶ci do grup LDAP.
375 Summary: UNIX group external ACL helper for Squid
376 Summary(pl): Wsparcie kontroli dostêpu przez grupy UNIX dla squida
377 Group: Networking/Admin
380 %description unix_acl
381 This is an external ACL module for the Squid proxy server to
382 limit acces for users based on UNIX group membership.
384 %description unix_acl -l pl
385 Jest to modu³ kontroli dostêpu (ACL) do proxy, który pozwala na
386 ograniczenie dostêpu u¿ytkowników proxy na podstawie ich
387 przynale¿no¶ci do grup UNIX.
390 Summary: NT domain group external ACL helper for Squid
391 Summary(pl): Wsparcie kontroli dostêpu przez grupy w domenie NT dla squida
392 Group: Networking/Admin
395 %description wbinfo_acl
396 This is an external ACL module for the Squid proxy server to
397 limit acces for users based on NT domain group membership using wbinfo.
400 %description wbinfo_acl -l pl
401 Jest to modu³ kontroli dostêpu (ACL) do proxy, który pozwala na
402 ograniczenie dostêpu u¿ytkowników proxy na podstawie ich
403 przynale¿no¶ci do grup w domenie NT przy u¿yciu wbinfo.
406 Summary: NT domain group external ACL helper for Squid
407 Summary(pl): Wsparcie kontroli dostêpu przez grupy w domenie NT dla squida
408 Group: Networking/Admin
411 %description winbind_acl
412 This is an external ACL module for the Squid proxy server to
413 limit acces for users based on NT domain group membership
414 based on Samba Winbindd from Samba 2.2.4 or greater.
416 %description winbind_acl -l pl
417 Jest to modu³ kontroli dostêpu (ACL) do proxy, który pozwala na
418 ograniczenie dostêpu u¿ytkowników proxy na podstawie ich
419 przynale¿no¶ci do grup w domenie NT oparty na Samba Winbindd
420 z pakietu Samba 2.2.4 lub wy¿szego.
425 # Bug fixes from Squid home page:
475 --localstatedir=/var \
476 --sysconfdir=%{_sysconfdir} \
477 --datadir=%{_datadir}/squid \
479 --enable-useragent-log \
482 --enable-err-language=English \
486 --enable-forw-via-db \
487 --enable-cache-digests \
488 --enable-storeio="aufs,coss,diskd,null,ufs" \
489 --enable-removal-policies="lru heap" \
490 --disable-ipf-transparent \
491 --enable-delay-pools \
494 --enable-basic-auth-helpers=yes \
495 --enable-ntlm-auth-helpers=yes \
496 --enable-digest-auth-helpers=yes \
497 --enable-external-acl-helpers=yes \
498 --enable-x-accelerator-vary \
499 --enable-linux-netfilter
504 perl -pi -e 's#/usr/.*bin/perl#/usr/bin/perl#g' contrib/*
505 perl -pi -e 's#/usr/.*bin/perl#/usr/bin/perl#g' scripts/*
506 find helpers/ -type f | xargs perl -pi -e 's#/usr/.*bin/perl#/usr/bin/perl#g'
509 rm -rf $RPM_BUILD_ROOT
511 $RPM_BUILD_ROOT/home/services/httpd/cgi-bin \
512 $RPM_BUILD_ROOT/etc/{pam.d,rc.d/init.d,security,sysconfig,logrotate.d} \
513 $RPM_BUILD_ROOT{%{_sbindir},%{_bindir},%{_libexecdir}/contrib} \
514 $RPM_BUILD_ROOT%{_mandir}/{man1,man8} \
515 $RPM_BUILD_ROOT%{_datadir}/squid \
516 $RPM_BUILD_ROOT/var/{cache,log{,/archiv}}/squid
519 DESTDIR=$RPM_BUILD_ROOT
521 mv -f contrib/*.pl $RPM_BUILD_ROOT%{_libexecdir}/contrib
523 install %{SOURCE7} $RPM_BUILD_ROOT/etc/pam.d/squid
524 touch $RPM_BUILD_ROOT/etc/security/blacklist.squid
526 mv -f $RPM_BUILD_ROOT%{_libdir}/squid/cachemgr.cgi $RPM_BUILD_ROOT/home/services/httpd/cgi-bin
531 mv -f $LNG $RPM_BUILD_ROOT%{_datadir}/squid/errors.$LNG
536 cd $RPM_BUILD_ROOT/etc/squid
537 cp -f squid.conf{,.default}
538 patch -p0 < %{SOURCE5}
541 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/squid
542 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/squid
543 install %{SOURCE6} $RPM_BUILD_ROOT/etc/logrotate.d/squid
545 install scripts/*.pl $RPM_BUILD_ROOT%{_libexecdir}
547 touch $RPM_BUILD_ROOT/var/log/squid/{access,cache,store}.log
549 # These two files start squid. They are replaced by /etc/rc.d/init.d script.
550 rm -f $RPM_BUILD_ROOT%{_bindir}/R*
553 rm -rf $RPM_BUILD_ROOT
556 if [ -n "`getgid squid`" ]; then
557 if [ "`getgid squid`" != "91" ]; then
558 echo "Error: group squid doesn't have gid=91. Correct this before installing squid." 1>&2
562 /usr/sbin/groupadd -g 91 -r -f squid 1>&2 || :
564 if [ -n "`id -u squid 2>/dev/null`" ]; then
565 if [ "`id -u squid`" != "91" ]; then
566 echo "Error: user squid doesn't have uid=91. Correct this before installing squid." 1>&2
570 /usr/sbin/useradd -M -o -r -u 91 -s /bin/false \
571 -g squid -c "SQUID http caching daemon" -d /var/cache/squid squid 1>&2 || :
576 # If there is already link, don't do anything.
577 if [ ! -e %{_datadir}/squid/errors ]; then
579 # Try to create link to Polish, and then any directory but English.
580 if [ -d %{_datadir}/squid/errors.Polish ]; then
581 ln -sf %{_datadir}/squid/errors{.Polish,}
584 find %{_datadir}/squid/errors/ -type d -name 'errors.*'| while read NAME; do
585 if [ $NAME != "English" ]; then
586 ln -sf $NAME %{_datadir}/squid/errors
592 # Create symlink to English if everything else fails.
593 ln -sf %{_datadir}/squid/errors{.English,}
598 if [ "$1" = "1" ]; then
599 /sbin/chkconfig --add squid
600 echo "Run \"/etc/rc.d/init.d/squid start\" to start squid." >&2
602 if [ -f /var/lock/subsys/squid ]; then
603 /etc/rc.d/init.d/squid restart >&2
608 if [ "$1" = "0" ]; then
609 if [ -f /var/lock/subsys/squid ]; then
610 /etc/rc.d/init.d/squid stop >&2
612 /sbin/chkconfig --del squid
613 rm -f %{_datadir}/squid/errors
617 if [ "$1" = "0" ]; then
618 /usr/sbin/userdel squid
619 /usr/sbin/groupdel squid
623 %defattr(644,root,root,755)
624 %doc faq CONTRIBUTORS COPYRIGHT CREDITS README
625 %doc ChangeLog QUICKSTART RELEASENOTES.html SPONSORS
627 %attr(755,root,root) %{_bindir}/squidclient
628 %attr(755,root,root) %{_libexecdir}/diskd
629 # YES, it has to be suid root, it sends ICMP packets.
630 %attr(4754,root,squid) %{_libexecdir}/pinger
631 %attr(755,root,root) %{_libexecdir}/unlinkd
632 %attr(755,root,root) %{_sbindir}/*
634 %attr(755,root,root) %dir %{_sysconfdir}
636 %attr(754,root,root) /etc/rc.d/init.d/squid
637 %attr(640,root,root) %config(noreplace) /etc/logrotate.d/squid
638 %attr(640,root,squid) %config(noreplace) /etc/sysconfig/squid
639 %attr(640,root,squid) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/squid.conf
640 %attr(640,root,squid) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mime.conf
641 %attr(640,root,root) %{_sysconfdir}/mime.conf.default
642 %attr(640,root,root) %{_sysconfdir}/squid.conf.default
644 %dir %{_datadir}/squid
645 %{_datadir}/squid/icons
646 %{_datadir}/squid/mib.txt
647 %lang(bg) %{_datadir}/squid/errors.Bulgarian
648 %lang(cs) %{_datadir}/squid/errors.Czech
649 %lang(da) %{_datadir}/squid/errors.Danish
650 %lang(nl) %{_datadir}/squid/errors.Dutch
651 %{_datadir}/squid/errors.English
652 %lang(et) %{_datadir}/squid/errors.Estonian
653 %lang(fi) %{_datadir}/squid/errors.Finnish
654 %lang(fr) %{_datadir}/squid/errors.French
655 %lang(de) %{_datadir}/squid/errors.German
656 %lang(hu) %{_datadir}/squid/errors.Hungarian
657 %lang(it) %{_datadir}/squid/errors.Italian
658 %lang(ja) %{_datadir}/squid/errors.Japanese
659 %lang(ko) %{_datadir}/squid/errors.Korean
660 %lang(pl) %{_datadir}/squid/errors.Polish
661 %lang(pt) %{_datadir}/squid/errors.Portuguese
662 %lang(ro) %{_datadir}/squid/errors.Romanian
663 %lang(ru) %{_datadir}/squid/errors.Russian-1251
664 %lang(ru) %{_datadir}/squid/errors.Russian-koi8-r
665 %lang(zh) %{_datadir}/squid/errors.Simplify_Chinese
666 %lang(sk) %{_datadir}/squid/errors.Slovak
667 %lang(es) %{_datadir}/squid/errors.Spanish
668 %lang(sv) %{_datadir}/squid/errors.Swedish
669 %lang(zh) %{_datadir}/squid/errors.Traditional_Chinese
670 %lang(tr) %{_datadir}/squid/errors.Turkish
672 %attr(755,root,root) %dir %{_libexecdir}
673 %attr(755,root,root) %{_libexecdir}/*.pl
674 %attr(755,root,root) %{_libexecdir}/contrib
676 %attr(770,root,squid) %dir /var/log/archiv/squid
677 %attr(770,root,squid) %dir /var/log/squid
678 %attr(660,root,squid) %ghost /var/log/squid/*
680 %attr(770,root,squid) %dir /var/cache/squid
683 %defattr(644,root,root,755)
684 %attr(755,root,root) /home/services/httpd/cgi-bin/*
687 %defattr(644,root,root,755)
688 %doc helpers/basic_auth/LDAP/README
689 %attr(755,root,root) %{_libexecdir}/%{name}_ldap_auth
690 %attr(644,root,root) %{_mandir}/man8/%{name}_ldap_auth.*
693 %defattr(644,root,root,755)
694 %doc helpers/basic_auth/PAM/pam_auth.c
695 %config(noreplace) /etc/pam.d/squid
696 %config(noreplace) /etc/security/blacklist.squid
697 %attr(755,root,root) %{_libexecdir}/pam_auth
700 %defattr(644,root,root,755)
701 %doc helpers/basic_auth/SMB/{README,ChangeLog,smb_auth.sh}
702 %doc helpers/basic_auth/multi-domain-NTLM/*
703 %attr(755,root,root) %{_libexecdir}/smb_auth*
706 %defattr(644,root,root,755)
707 %doc helpers/basic_auth/MSNT/README*
708 %attr(755,root,root) %{_libexecdir}/msnt_auth
711 %defattr(644,root,root,755)
712 %attr(755,root,root) %{_libexecdir}/yp_auth
715 %defattr(644,root,root,755)
716 %attr(755,root,root) %{_libexecdir}/ncsa_auth
719 %defattr(644,root,root,755)
720 %doc helpers/basic_auth/SASL/{README,squid_sasl*}
721 %attr(755,root,root) %{_libexecdir}/sasl_auth
724 %defattr(644,root,root,755)
725 %attr(755,root,root) %{_libexecdir}/wb_auth
727 %files getpwname_auth
728 %defattr(644,root,root,755)
729 %attr(755,root,root) %{_libexecdir}/getpwname_auth
732 %defattr(644,root,root,755)
733 %attr(755,root,root) %{_libexecdir}/digest_pw_auth
736 %defattr(644,root,root,755)
737 %doc helpers/ntlm_auth/no_check/{README*,no_check.pl}
738 %attr(755,root,root) %{_libexecdir}/wb_ntlmauth
739 %attr(755,root,root) %{_libexecdir}/ntlm_auth
742 %defattr(644,root,root,755)
743 %doc helpers/external_acl/ip_user/{README,example*}
744 %attr(755,root,root) %{_libexecdir}/ip_user_check
747 %defattr(644,root,root,755)
748 %attr(755,root,root) %{_libexecdir}/squid_ldap_group
749 %attr(644,root,root) %{_mandir}/man8/%{name}_ldap_group.*
752 %defattr(644,root,root,755)
753 %doc helpers/external_acl/unix_group/README
754 %attr(755,root,root) %{_libexecdir}/squid_unix_group
755 %attr(644,root,root) %{_mandir}/man8/%{name}_unix_group.*
758 %defattr(644,root,root,755)
759 %attr(755,root,root) %{_libexecdir}/wbinfo_group.pl
762 %defattr(644,root,root,755)
763 %doc helpers/external_acl/winbind_group/readme.txt
764 %attr(755,root,root) %{_libexecdir}/wb_group