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 Patch200: %{name}-newssl.patch
61 Patch210: %{name}-sasl.patch
62 BuildRequires: autoconf
63 BuildRequires: openldap-devel
64 BuildRequires: openssl-devel >= 0.9.7a
65 BuildRequires: cyrus-sasl-devel >= 2.1.0
66 BuildRequires: pam-devel
68 PreReq: rc-scripts >= 0.2.0
69 Requires(pre): /bin/id
70 Requires(pre): /usr/bin/getgid
71 Requires(pre): /usr/sbin/groupadd
72 Requires(pre): /usr/sbin/useradd
73 Requires(post,preun): /sbin/chkconfig
74 Requires(post): fileutils
75 Requires(post): findutils
76 Requires(postun): /usr/sbin/groupdel
77 Requires(postun): /usr/sbin/userdel
78 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
80 %define _libexecdir %{_libdir}/%{name}
81 %define _sysconfdir /etc/%{name}
84 Squid is a high-performance proxy caching server for web clients,
85 supporting FTP, gopher, and HTTP data objects. Unlike traditional
86 caching software, Squid handles all requests in a single,
87 non-blocking, I/O-driven process. Squid keeps meta data and especially
88 hot objects cached in RAM, caches DNS lookups, supports non-blocking
89 DNS lookups, and implements negative caching of failed requests. If
90 you are tight on memory, check out the NOVM version of this package.
91 Squid supports SSL, extensive access controls, and full request
92 logging. By using the lightweight Internet Cache Protocol, Squid
93 caches can be arranged in a hierarchy or mesh for additional bandwidth
94 savings. Squid consists of a main server program squid, a Domain Name
95 System lookup program dnsserver, a program for retrieving FTP data
96 ftpget, and some management and client tools. When squid starts up, it
97 spawns a configurable number of dnsserver processes, each of which can
98 perform a single, blocking Domain Name System (DNS) lookup. This
99 reduces the amount of time the cache waits for DNS lookups. Squid is
100 derived from the ARPA-funded Harvest project.
103 Squid es un servidor proxy con caché de alto desempeño para clientes
104 web, soportando FTP, gopher y HTTP. Diferentemente de softwares
105 tradicionales de caché squid manipula todas las requisiciones en un
106 único proceso sin bloqueos, direccionado a E/S. Mantienen metadatos y
107 objetos frecuentemente pedidos en uno caché en memoria RAM. Hace caché
108 de resoluciones DNS, soporta resoluciones DNS sin bloqueo y implementa
109 un caché negativo de requisiciones que fallen. Si tiene poca memoria
110 da un vistazo en la versión NOVM de este paquete. También soporta SSL,
111 controles extensivos de acceso y registro (log) completo de las
112 requisiciones. Usando el ligero Protocolo de Caches Internet (ICP)
113 puede ser usado en una jerarquía de servidores para mayor ahorro de la
114 banda de comunicación. Está compuesto del programa squid (servidor
115 principal), del programa dnsserver (para resolución DNS), del programa
116 ftpget (para transmisiones ftp) y otras herramientas clientes y para
117 administración. Cuando squid se inicia, dispara un número configurable
118 de procesos dnsserver, cada uno pudiendo ejecutar solamente una
119 resolución DNS con poder de bloquear. Esto reduce el tiempo que el
120 caché espera por resoluciones DNS. Fue derivado del proyecto Harvest,
121 financiado por la ARPA.
124 Squid jest wysoce wydajnym serwerem proxy-cache dla przegl±darek WWW,
125 klientów FTP i gopher. Squid przechowuje najczê¶ciej pobierane dane w
126 pamiêci RAM i zapamiêtuje odwo³ania do DNS. Squid oferuje wsparcie dla
127 SSL, rozbudowan± kontrolê dostêpu oraz pe³ne rejestrowanie pobieranych
128 danych. Dziêki u¿yciu protoko³u ICP (Internet Cache Protocol), serwer
129 squid mo¿na ³±czyæ w hierarchiê, zwiêkszaj±c ich efektywno¶æ. Pakiet
130 squid obejmuje: g³ówny program serwera squid, program dostarczaj±cy
131 informacji z DNS dnsserver, program odbieraj±cy dane FTP ftpget, oraz
132 pomocnicze programy do zarz±dzania. Squid wywodzi siê ze
133 sponsorowanego przez ARPA projektu Harvest.
135 %description -l pt_BR
136 O Squid é um servidor proxy com cache de alta performance para
137 clientes web, suportando FTP, gopher e HTTP. Diferentemente de
138 softwares tradicionais de cache o squid manipula todas as requisições
139 em um único processo sem bloqueios, direcionado a E/S.
141 Mantém meta dados e objetos freqüentemente pedidos num cache em
142 memória RAM. Faz cache de resoluções DNS, suporta resoluções DNS sem
143 bloqueio e implementa um cache negativo de requisições que falharem.
144 Se você tem pouca memória dê uma olhada na versão NOVM deste pacote.
146 Também suporta SSL, controles extensivos de acesso e registro (log)
147 completo das requisições. Usando o leve Protocolo de Caches Internet
148 (ICP) ele pode ser usado em uma hierarquia de servidores para maior
149 economia de banda de comunicação.
151 Ele consiste do programa squid (servidor principal), do programa
152 dnsserver (para resolução DNS), do programa ftpget (para transmissões
153 ftp) e outras ferramentas clientes e para gerenciamento. Quando o
154 squid é inicializado ele dispara um número configurável de processos
155 dnsserver, cada um podendo executar somente uma resolução DNS
156 bloqueante. Isto reduz o tempo que o cache espera por resoluções DNS.
158 Foi derivado do projeto Harvest, financiado pela ARPA.
161 Squid - ÜÔÏ ×ÙÓÏËÏÐÒÏÉÚ×ÏÄÉÔÅÌØÎÙÊ ËÜÛÉÒÕÀÝÉÊ ÐÒÏËÓÉ-ÓÅÒ×ÅÒ ÄÌÑ
162 ËÌÉÅÎÔÏ× web, ÐÏÄÄÅÒÖÉ×ÁÀÝÉÊ ÏÂßÅËÔÙ ÄÁÎÎÙÈ ÔÉÐÁ FTP, gopher É HTTP. ÷
163 ÏÔÌÉÞÉÅ ÏÔ ÔÒÁÄÉÃÉÏÎÎÙÈ ËÜÛÉÒÕÀÝÉÈ ÐÒÏÇÒÁÍÍ, Squid ÏÂÒÁÂÁÔÙ×ÁÅÔ ×ÓÅ
164 ÚÁÐÒÏÓÙ ÐÒÉ ÐÏÍÏÝÉ ÏÄÎÏÇÏ ÎÅÂÌÏËÉÒÕÀÝÅÇÏÓÑ, ÕÐÒÁ×ÌÑÅÍÏÇÏ
165 ××ÏÄÏÍ-×Ù×ÏÄÏÍ ÐÒÏÃÅÓÓÁ.
167 üÔÏÔ ÐÁËÅÔ ÉÍÅÅÔ ×ÓÔÒÏÅÎÎÕÀ ÐÏÄÄÅÒÖËÕ ÂÁÚÙ ÄÁÎÎÙÈ ÓÅÔÅ×ÙÈ ICMP-ÐÒÏÂ
171 Squid - ÃÅ ËÅÛÕÀÞÉÊ ÐÒÏËÓ¦-ÓÅÒ×ÅÒ ÄÌÑ web-Ë̦¤ÎÔ¦×, ÝÏ Ð¦ÄÔÒÉÍÕ¤
172 ÏÂ'¤ËÔÉ ÄÁÎÉÈ ÔÉÐÕ FTP, gopher ÔÁ HTTP. îÁ צÄͦÎÕ ×¦Ä ÔÒÁÄÉæÊÎÉÈ
173 ËÅÛÕÀÞÉÈ ÐÒÏÇÒÁÍ, Squid ÏÂÒÏÂÌѤ ×Ó¦ ÚÁÐÉÔÉ ÚÁ ÄÏÐÏÍÏÇÏÀ ÏÄÎÏÇÏ
174 ÎÅÂÌÏËÕÀÞÏÇÏ, ËÅÒÏ×ÁÎÏÇÏ ××ÏÄÏÍ-×É×ÏÄÏÍ ÐÒÏÃÅÓÕ.
176 ãÅÊ ÐÁËÅÔ ÍÁ¤ ×ÂÕÄÏ×ÁÎÕ Ð¦ÄÔÒÉÍËÕ ÂÁÚÉ ÄÁÎÉÈ ÍÅÒÅÖÅ×ÉÈ ICMP-ÐÒÏÂ
180 Summary: CGI script for Squid management
181 Summary(pl): Skrypt CGI do zarz±dzania Squidem przez WWW
182 Group: Networking/Admin
183 Requires: %{name} = %{version}
186 %description cachemgr
187 Cachemgr.cgi is a CGI script that allows administrator to chceck
188 various informations about Squid via WWW.
190 %description cachemgr -l pl
191 Cachemgr.cgi jest skryptem CGI, który pozwala administratorowi
192 zapoznaæ siê z informacjami o pracy Squida poprzez WWW.
195 Summary: LDAP authentication helper for Squid
196 Summary(pl): Wsparcie autentykacji LDAP dla squida
197 Group: Networking/Admin
200 %description ldap_auth
201 This Squid helper allows authentication against LDAP directories using
202 the "simple authentication" (plain-text).
204 %description ldap_auth -l pl
205 Pakiet ten pozwala na autentykacjê LDAP za pomoc± prostej autentykacji
209 Summary: PAM authentication helper for Squid
210 Summary(pl): Wsparcie autentykacji PAM dla squida
211 Group: Networking/Admin
214 %description pam_auth
215 This program authenticates users against a PAM configured
216 authentication service "squid". This allows you to authenticate Squid
217 users to any authentication source for which you have a PAM module.
219 %description pam_auth -l pl
220 Program ten pozwala na autentykacjê u¿ytkowników squida w dowolnym
221 ¼ródle posiadaj±cym modu³ PAM.
224 Summary: SMB authentication helper for Squid
225 Summary(pl): Wsparcie autentykacji SMB dla squida
226 Group: Networking/Admin
229 %description smb_auth
230 This is a proxy authentication module. With smb_auth you can
231 authenticate proxy users against an SMB server like Windows NT or
234 %description smb_auth -l pl
235 To jest modu³ autentykacji proxy. Z smb_auth mo¿esz autentyfikowaæ
236 u¿ytkowników proxy na serwerach SMB, jak Windows NT czy Samba.
239 Summary: MSNT domain authentication helper for Squid
240 Summary(pl): Wsparcie autentykacji domen MSNT dla squida
241 Group: Networking/Admin
244 %description msnt_auth
245 This is an authentication module for the Squid proxy server to
246 authenticate users on an NT domain.
248 %description msnt_auth -l pl
249 Jest to modu³ autentykacji proxy, który pozwala na autentyfikowanie
250 u¿ytkowników proxy w domenie NT.
253 Summary: YP authentication helper for Squid
254 Summary(pl): Wsparcie autentykacji YP dla squida
255 Group: Networking/Admin
259 This is an authentication module for the Squid proxy server to
260 authenticate users on YP.
262 %description yp_auth -l pl
263 Jest to modu³ autentykacji proxy, który pozwala na autentyfikowanie
264 u¿ytkowników proxy poprzez YP.
267 Summary: NCSA httpd style authentication helper for Squid
268 Summary(pl): Wsparcie autentykacji NCSA httpd dla squida
269 Group: Networking/Admin
272 %description ncsa_auth
273 This module uses a NCSA httpd style password file for authentication.
275 %description ncsa_auth -l pl
276 Modu³ autentykacji proxy u¿ywaj±cy pliku hase³ jak w NCSA httpd.
279 Summary: SASL authentication helper for Squid
280 Summary(pl): Wsparcie autentykacji SASL dla squida
281 Group: Networking/Admin
284 %description sasl_auth
285 This is an authentication module for the Squid proxy server to
286 authenticate users via SASL.
288 %description sasl_auth -l pl
289 Jest to modu³ autentykacji proxy, który pozwala na autentyfikowanie
290 u¿ytkowników proxy poprzez SASL.
292 %package winbind_auth
293 Summary: WINBIND authentication helper for Squid
294 Summary(pl): Wsparcie autentykacji WINBIND dla squida
295 Group: Networking/Admin
298 %description winbind_auth
299 This is an authentication module for the Squid proxy server to
300 authenticate users via WINBIND.
302 %description winbind_auth -l pl
303 Jest to modu³ autentykacji proxy, który pozwala na autentyfikowanie
304 u¿ytkowników proxy poprzez WINBIND.
306 %package getpwname_auth
307 Summary: getpwname authentication helper for Squid
308 Summary(pl): Wsparcie autentykacji getpwname dla squida
309 Group: Networking/Admin
312 %description getpwname_auth
313 This is an authentication module for the Squid proxy server to
314 authenticate users using getpwname.
316 %description getpwname_auth -l pl
317 Jest to modu³ autentykacji proxy, który pozwala na autentyfikowanie
318 u¿ytkowników proxy poprzez getpwname.
321 Summary: passwd authentication helper for Squid
322 Summary(pl): Wsparcie autentykacji passwd dla squida
323 Group: Networking/Admin
326 %description passwd_auth
327 This is an authentication module for the Squid proxy server to
328 authenticate users with separate passwd file.
330 %description passwd_auth -l pl
331 Jest to modu³ autentykacji proxy, który pozwala na autentyfikowanie
332 u¿ytkowników proxy poprzez oddzielny plik passwd.
335 Summary: NTLM authentication helper for Squid
336 Summary(pl): Wsparcie autentykacji NTLM dla squida
337 Group: Networking/Admin
340 %description ntlm_auth
341 This is an authentication module for the Squid proxy server to
342 authenticate users on NTLM.
344 %description ntlm_auth -l pl
345 Jest to modu³ autentykacji proxy, który pozwala na autentyfikowanie
346 u¿ytkowników proxy poprzez NTLM.
349 Summary: IP external ACL helper for Squid
350 Summary(pl): Wsparcie kontroli dostêpu przez IP dla squida
351 Group: Networking/Admin
355 This is an external ACL module for the Squid proxy server to
356 limit acces for users based on IP address.
358 %description ip_acl -l pl
359 Jest to modu³ kontroli dostêpu (ACL) do proxy, który pozwala na
360 ograniczenie dostêpu u¿ytkowników proxy na podstawie ich adresu IP.
363 Summary: LDAP group external ACL helper for Squid
364 Summary(pl): Wsparcie kontroli dostêpu przez grupy LDAP dla squida
365 Group: Networking/Admin
368 %description ldap_acl
369 This is an external ACL module for the Squid proxy server to
370 limit acces for users based on LDAP group membership.
372 %description ldap_acl -l pl
373 Jest to modu³ kontroli dostêpu (ACL) do proxy, który pozwala na
374 ograniczenie dostêpu u¿ytkowników proxy na podstawie ich
375 przynale¿no¶ci do grup LDAP.
378 Summary: UNIX group external ACL helper for Squid
379 Summary(pl): Wsparcie kontroli dostêpu przez grupy UNIX dla squida
380 Group: Networking/Admin
383 %description unix_acl
384 This is an external ACL module for the Squid proxy server to
385 limit acces for users based on UNIX group membership.
387 %description unix_acl -l pl
388 Jest to modu³ kontroli dostêpu (ACL) do proxy, który pozwala na
389 ograniczenie dostêpu u¿ytkowników proxy na podstawie ich
390 przynale¿no¶ci do grup UNIX.
393 Summary: NT domain group external ACL helper for Squid
394 Summary(pl): Wsparcie kontroli dostêpu przez grupy w domenie NT dla squida
395 Group: Networking/Admin
398 %description wbinfo_acl
399 This is an external ACL module for the Squid proxy server to
400 limit acces for users based on NT domain group membership using wbinfo.
403 %description wbinfo_acl -l pl
404 Jest to modu³ kontroli dostêpu (ACL) do proxy, który pozwala na
405 ograniczenie dostêpu u¿ytkowników proxy na podstawie ich
406 przynale¿no¶ci do grup w domenie NT przy u¿yciu wbinfo.
409 Summary: NT domain group external ACL helper for Squid
410 Summary(pl): Wsparcie kontroli dostêpu przez grupy w domenie NT dla squida
411 Group: Networking/Admin
414 %description winbind_acl
415 This is an external ACL module for the Squid proxy server to
416 limit acces for users based on NT domain group membership
417 based on Samba Winbindd from Samba 2.2.4 or greater.
419 %description winbind_acl -l pl
420 Jest to modu³ kontroli dostêpu (ACL) do proxy, który pozwala na
421 ograniczenie dostêpu u¿ytkowników proxy na podstawie ich
422 przynale¿no¶ci do grup w domenie NT oparty na Samba Winbindd
423 z pakietu Samba 2.2.4 lub wy¿szego.
428 # Bug fixes from Squid home page:
480 --localstatedir=/var \
481 --sysconfdir=%{_sysconfdir} \
482 --datadir=%{_datadir}/squid \
484 --enable-useragent-log \
487 --enable-err-language=English \
491 --enable-forw-via-db \
492 --enable-cache-digests \
493 --enable-storeio="aufs,coss,diskd,null,ufs" \
494 --enable-removal-policies="lru heap" \
495 --disable-ipf-transparent \
496 --enable-delay-pools \
499 --enable-basic-auth-helpers=yes \
500 --enable-ntlm-auth-helpers=yes \
501 --enable-digest-auth-helpers=yes \
502 --enable-external-acl-helpers=yes \
503 --enable-x-accelerator-vary \
504 --enable-linux-netfilter
509 perl -pi -e 's#/usr/.*bin/perl#/usr/bin/perl#g' contrib/*
510 perl -pi -e 's#/usr/.*bin/perl#/usr/bin/perl#g' scripts/*
511 find helpers/ -type f | xargs perl -pi -e 's#/usr/.*bin/perl#/usr/bin/perl#g'
514 rm -rf $RPM_BUILD_ROOT
516 $RPM_BUILD_ROOT/home/services/httpd/cgi-bin \
517 $RPM_BUILD_ROOT/etc/{pam.d,rc.d/init.d,security,sysconfig,logrotate.d} \
518 $RPM_BUILD_ROOT{%{_sbindir},%{_bindir},%{_libexecdir}/contrib} \
519 $RPM_BUILD_ROOT%{_mandir}/{man1,man8} \
520 $RPM_BUILD_ROOT%{_datadir}/squid \
521 $RPM_BUILD_ROOT/var/{cache,log{,/archiv}}/squid
524 DESTDIR=$RPM_BUILD_ROOT
526 cp -a contrib/*.pl $RPM_BUILD_ROOT%{_libexecdir}/contrib
528 install %{SOURCE7} $RPM_BUILD_ROOT/etc/pam.d/squid
529 touch $RPM_BUILD_ROOT/etc/security/blacklist.squid
531 mv -f $RPM_BUILD_ROOT%{_libdir}/squid/cachemgr.cgi $RPM_BUILD_ROOT/home/services/httpd/cgi-bin
533 cd $RPM_BUILD_ROOT/etc/squid
534 cp -f squid.conf{,.default}
535 patch -p0 < %{SOURCE5}
538 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/squid
539 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/squid
540 install %{SOURCE6} $RPM_BUILD_ROOT/etc/logrotate.d/squid
542 install scripts/*.pl $RPM_BUILD_ROOT%{_libexecdir}
544 touch $RPM_BUILD_ROOT/var/log/squid/{access,cache,store}.log
546 # These two files start squid. They are replaced by /etc/rc.d/init.d script.
547 rm -f $RPM_BUILD_ROOT%{_bindir}/R*
550 rm -rf $RPM_BUILD_ROOT
553 if [ -n "`getgid squid`" ]; then
554 if [ "`getgid squid`" != "91" ]; then
555 echo "Error: group squid doesn't have gid=91. Correct this before installing squid." 1>&2
559 /usr/sbin/groupadd -g 91 -r -f squid 1>&2 || :
561 if [ -n "`id -u squid 2>/dev/null`" ]; then
562 if [ "`id -u squid`" != "91" ]; then
563 echo "Error: user squid doesn't have uid=91. Correct this before installing squid." 1>&2
567 /usr/sbin/useradd -M -o -r -u 91 -s /bin/false \
568 -g squid -c "SQUID http caching daemon" -d /var/cache/squid squid 1>&2 || :
570 [ -L %{_datadir}/squid/errors ] && rm -f %{_datadir}/squid/errors
573 if [ "$1" = "1" ]; then
574 /sbin/chkconfig --add squid
575 echo "Run \"/etc/rc.d/init.d/squid start\" to start squid." >&2
577 if [ -f /var/lock/subsys/squid ]; then
578 /etc/rc.d/init.d/squid restart >&2
583 if [ "$1" = "0" ]; then
584 if [ -f /var/lock/subsys/squid ]; then
585 /etc/rc.d/init.d/squid stop >&2
587 /sbin/chkconfig --del squid
591 if [ "$1" = "0" ]; then
592 /usr/sbin/userdel squid
593 /usr/sbin/groupdel squid
597 %defattr(644,root,root,755)
598 %doc faq CONTRIBUTORS COPYRIGHT CREDITS README
599 %doc ChangeLog QUICKSTART RELEASENOTES.html SPONSORS
601 %attr(755,root,root) %{_bindir}/squidclient
602 %attr(755,root,root) %{_libexecdir}/diskd
603 # YES, it has to be suid root, it sends ICMP packets.
604 %attr(4754,root,squid) %{_libexecdir}/pinger
605 %attr(755,root,root) %{_libexecdir}/unlinkd
606 %attr(755,root,root) %{_sbindir}/*
608 %attr(755,root,root) %dir %{_sysconfdir}
610 %attr(754,root,root) /etc/rc.d/init.d/squid
611 %attr(640,root,root) %config(noreplace) /etc/logrotate.d/squid
612 %attr(640,root,squid) %config(noreplace) /etc/sysconfig/squid
613 %attr(640,root,squid) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/squid.conf
614 %attr(640,root,squid) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mime.conf
615 %attr(640,root,root) %{_sysconfdir}/mime.conf.default
616 %attr(640,root,root) %{_sysconfdir}/squid.conf.default
618 %dir %{_datadir}/squid
619 %dir %{_datadir}/squid/errors
620 %{_datadir}/squid/icons
621 %{_datadir}/squid/mib.txt
622 %lang(bg) %{_datadir}/squid/errors/Bulgarian
623 %lang(ct) %{_datadir}/squid/errors/Catalan
624 %lang(cs) %{_datadir}/squid/errors/Czech
625 %lang(da) %{_datadir}/squid/errors/Danish
626 %lang(nl) %{_datadir}/squid/errors/Dutch
627 %{_datadir}/squid/errors/English
628 %lang(et) %{_datadir}/squid/errors/Estonian
629 %lang(fi) %{_datadir}/squid/errors/Finnish
630 %lang(fr) %{_datadir}/squid/errors/French
631 %lang(de) %{_datadir}/squid/errors/German
632 %lang(he) %{_datadir}/squid/errors/Hebrew
633 %lang(hu) %{_datadir}/squid/errors/Hungarian
634 %lang(it) %{_datadir}/squid/errors/Italian
635 %lang(ja) %{_datadir}/squid/errors/Japanese
636 %lang(ko) %{_datadir}/squid/errors/Korean
637 %lang(pl) %{_datadir}/squid/errors/Polish
638 %lang(pt) %{_datadir}/squid/errors/Portuguese
639 %lang(ro) %{_datadir}/squid/errors/Romanian
640 %lang(ru) %{_datadir}/squid/errors/Russian-1251
641 %lang(ru) %{_datadir}/squid/errors/Russian-koi8-r
642 %lang(zh) %{_datadir}/squid/errors/Simplify_Chinese
643 %lang(sk) %{_datadir}/squid/errors/Slovak
644 %lang(es) %{_datadir}/squid/errors/Spanish
645 %lang(sr) %{_datadir}/squid/errors/Serbian
646 %lang(sv) %{_datadir}/squid/errors/Swedish
647 %lang(zh) %{_datadir}/squid/errors/Traditional_Chinese
648 %lang(tr) %{_datadir}/squid/errors/Turkish
650 %attr(755,root,root) %dir %{_libexecdir}
651 %attr(755,root,root) %{_libexecdir}/*.pl
652 %attr(755,root,root) %{_libexecdir}/contrib
654 %attr(770,root,squid) %dir /var/log/archiv/squid
655 %attr(770,root,squid) %dir /var/log/squid
656 %attr(660,root,squid) %ghost /var/log/squid/*
658 %attr(770,root,squid) %dir /var/cache/squid
661 %defattr(644,root,root,755)
662 %attr(755,root,root) /home/services/httpd/cgi-bin/*
665 %defattr(644,root,root,755)
666 %doc helpers/basic_auth/LDAP/README
667 %attr(755,root,root) %{_libexecdir}/%{name}_ldap_auth
668 %attr(644,root,root) %{_mandir}/man8/%{name}_ldap_auth.*
671 %defattr(644,root,root,755)
672 %doc helpers/basic_auth/PAM/pam_auth.c
673 %config(noreplace) /etc/pam.d/squid
674 %config(noreplace) /etc/security/blacklist.squid
675 %attr(755,root,root) %{_libexecdir}/pam_auth
678 %defattr(644,root,root,755)
679 %doc helpers/basic_auth/SMB/{README,ChangeLog,smb_auth.sh}
680 %doc helpers/basic_auth/multi-domain-NTLM/*
681 %attr(755,root,root) %{_libexecdir}/smb_auth*
684 %defattr(644,root,root,755)
685 %doc helpers/basic_auth/MSNT/README*
686 %attr(755,root,root) %{_libexecdir}/msnt_auth
689 %defattr(644,root,root,755)
690 %attr(755,root,root) %{_libexecdir}/yp_auth
693 %defattr(644,root,root,755)
694 %attr(755,root,root) %{_libexecdir}/ncsa_auth
697 %defattr(644,root,root,755)
698 %doc helpers/basic_auth/SASL/{README,squid_sasl*}
699 %attr(755,root,root) %{_libexecdir}/sasl_auth
702 %defattr(644,root,root,755)
703 %attr(755,root,root) %{_libexecdir}/wb_auth
705 %files getpwname_auth
706 %defattr(644,root,root,755)
707 %attr(755,root,root) %{_libexecdir}/getpwname_auth
710 %defattr(644,root,root,755)
711 %attr(755,root,root) %{_libexecdir}/digest_pw_auth
714 %defattr(644,root,root,755)
715 %doc helpers/ntlm_auth/no_check/{README*,no_check.pl}
716 %attr(755,root,root) %{_libexecdir}/wb_ntlmauth
717 %attr(755,root,root) %{_libexecdir}/ntlm_auth
720 %defattr(644,root,root,755)
721 %doc helpers/external_acl/ip_user/{README,example*}
722 %attr(755,root,root) %{_libexecdir}/ip_user_check
725 %defattr(644,root,root,755)
726 %attr(755,root,root) %{_libexecdir}/squid_ldap_group
727 %attr(644,root,root) %{_mandir}/man8/%{name}_ldap_group.*
730 %defattr(644,root,root,755)
731 %doc helpers/external_acl/unix_group/README
732 %attr(755,root,root) %{_libexecdir}/squid_unix_group
733 %attr(644,root,root) %{_mandir}/man8/%{name}_unix_group.*
736 %defattr(644,root,root,755)
737 %attr(755,root,root) %{_libexecdir}/wbinfo_group.pl
740 %defattr(644,root,root,755)
741 %doc helpers/external_acl/winbind_group/readme.txt
742 %attr(755,root,root) %{_libexecdir}/wb_group