3 %bcond_with combined_log # enables apache-like combined log format
5 Summary: SQUID Internet Object Cache
6 Summary(es): proxy/cache para WWW/FTP/gopher
7 Summary(pl): Uniwersalny serwer proxy-cache
8 Summary(pt_BR): Cache Squid de objetos Internet
9 Summary(ru): Squid - ËÜÛ ÏÂßÅËÔÏ× Internet
10 Summary(uk): Squid - ËÅÛ ÏÂ'¤ËÔ¦× Internet
11 Summary(zh_CN): SQUID ¸ßËÙ»º³å´úÀí·þÎñÆ÷
17 Group: Networking/Daemons
18 Source0: http://www.squid-cache.org/Versions/v2/2.5/%{name}-%{version}.tar.bz2
19 # Source0-md5: 687db8c5f0fec3798dbc77f94340b185
20 # http://www.squid-cache.org/Doc/FAQ/FAQ.tar.gz
21 Source1: %{name}-FAQ.tar.gz
22 # Source1-md5: cb9a955f8cda9cc166e086fccd412a43
24 Source3: %{name}.sysconfig
25 # http://squid-docs.sourceforge.net/latest/zip-files/book-full-html.zip
26 Source4: %{name}-book-full-html.zip
27 # Source4-md5: 4f3b6dab1de9cbb847df89d8b417378a
28 Source5: %{name}.conf.patch
29 Source6: %{name}.logrotate
31 # Bug fixes from Squid home page, please include URL
33 Patch100: http://www.sed.pl/~mrk/qos/%{name}_hit_miss_mark.patch
34 Patch101: %{name}-fhs.patch
35 Patch102: %{name}-location.patch
36 Patch103: %{name}-domainmatch.patch
37 Patch104: %{name}-libnsl_fixes.patch
38 Patch105: %{name}-ac_fix.patch
39 Patch106: %{name}-crash-on-ENOSPC.patch
40 Patch107: %{name}-newssl.patch
41 Patch108: %{name}-nolibs.patch
42 Patch109: http://piorun.ds.pg.gda.pl/~blues/patches/%{name}-more_FD-new.patch
43 Patch110: %{name}-empty-referer.patch
44 Patch111: %{name}-2.5.STABLE4-apache-like-combined-log.patch
45 URL: http://www.squid-cache.org/
46 BuildRequires: autoconf
47 BuildRequires: automake
48 BuildRequires: cyrus-sasl-devel >= 2.1.0
49 BuildRequires: openldap-devel
50 BuildRequires: openssl-devel >= 0.9.7d
51 BuildRequires: pam-devel
52 BuildRequires: perl-base
53 BuildRequires: rpmbuild(macros) >= 1.166
55 PreReq: rc-scripts >= 0.2.0
56 PreReq: setup >= 2.4.6
57 Requires(pre): /bin/id
58 Requires(pre): /usr/bin/getgid
59 Requires(pre): /usr/lib/rpm/user_group.sh
60 Requires(pre): /usr/sbin/groupadd
61 Requires(pre): /usr/sbin/useradd
62 Requires(post,preun): /sbin/chkconfig
63 Requires(post): fileutils
64 Requires(post): findutils
66 Requires(post): /bin/hostname
67 Requires(postun): /usr/sbin/groupdel
68 Requires(postun): /usr/sbin/userdel
69 Provides: group(squid)
71 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
73 %define _libexecdir %{_libdir}/%{name}
74 %define _sysconfdir /etc/%{name}
75 %define _cgidir /home/services/httpd/cgi-bin
78 Squid is a high-performance proxy caching server for web clients,
79 supporting FTP, gopher, and HTTP data objects. Unlike traditional
80 caching software, Squid handles all requests in a single,
81 non-blocking, I/O-driven process. Squid keeps meta data and especially
82 hot objects cached in RAM, caches DNS lookups, supports non-blocking
83 DNS lookups, and implements negative caching of failed requests. If
84 you are tight on memory, check out the NOVM version of this package.
85 Squid supports SSL, extensive access controls, and full request
86 logging. By using the lightweight Internet Cache Protocol, Squid
87 caches can be arranged in a hierarchy or mesh for additional bandwidth
88 savings. Squid consists of a main server program squid, a Domain Name
89 System lookup program dnsserver, a program for retrieving FTP data
90 ftpget, and some management and client tools. When squid starts up, it
91 spawns a configurable number of dnsserver processes, each of which can
92 perform a single, blocking Domain Name System (DNS) lookup. This
93 reduces the amount of time the cache waits for DNS lookups. Squid is
94 derived from the ARPA-funded Harvest project.
97 Squid es un servidor proxy con caché de alto desempeño para clientes
98 web, soportando FTP, gopher y HTTP. Diferentemente de softwares
99 tradicionales de caché squid manipula todas las requisiciones en un
100 único proceso sin bloqueos, direccionado a E/S. Mantienen metadatos y
101 objetos frecuentemente pedidos en uno caché en memoria RAM. Hace caché
102 de resoluciones DNS, soporta resoluciones DNS sin bloqueo y implementa
103 un caché negativo de requisiciones que fallen. Si tiene poca memoria
104 da un vistazo en la versión NOVM de este paquete. También soporta SSL,
105 controles extensivos de acceso y registro (log) completo de las
106 requisiciones. Usando el ligero Protocolo de Caches Internet (ICP)
107 puede ser usado en una jerarquía de servidores para mayor ahorro de la
108 banda de comunicación. Está compuesto del programa squid (servidor
109 principal), del programa dnsserver (para resolución DNS), del programa
110 ftpget (para transmisiones ftp) y otras herramientas clientes y para
111 administración. Cuando squid se inicia, dispara un número configurable
112 de procesos dnsserver, cada uno pudiendo ejecutar solamente una
113 resolución DNS con poder de bloquear. Esto reduce el tiempo que el
114 caché espera por resoluciones DNS. Fue derivado del proyecto Harvest,
115 financiado por la ARPA.
118 Squid jest wysoce wydajnym serwerem proxy-cache dla przegl±darek WWW,
119 klientów FTP i gopher. Squid przechowuje najczê¶ciej pobierane dane w
120 pamiêci RAM i zapamiêtuje odwo³ania do DNS. Squid oferuje wsparcie dla
121 SSL, rozbudowan± kontrolê dostêpu oraz pe³ne rejestrowanie pobieranych
122 danych. Dziêki u¿yciu protoko³u ICP (Internet Cache Protocol), serwer
123 squid mo¿na ³±czyæ w hierarchiê, zwiêkszaj±c ich efektywno¶æ. Pakiet
124 squid obejmuje: g³ówny program serwera squid, program dostarczaj±cy
125 informacji z DNS dnsserver, program odbieraj±cy dane FTP ftpget, oraz
126 pomocnicze programy do zarz±dzania. Squid wywodzi siê ze
127 sponsorowanego przez ARPA projektu Harvest.
129 %description -l pt_BR
130 O Squid é um servidor proxy com cache de alta performance para
131 clientes web, suportando FTP, gopher e HTTP. Diferentemente de
132 softwares tradicionais de cache o squid manipula todas as requisições
133 em um único processo sem bloqueios, direcionado a E/S.
135 Mantém meta dados e objetos freqüentemente pedidos num cache em
136 memória RAM. Faz cache de resoluções DNS, suporta resoluções DNS sem
137 bloqueio e implementa um cache negativo de requisições que falharem.
138 Se você tem pouca memória dê uma olhada na versão NOVM deste pacote.
140 Também suporta SSL, controles extensivos de acesso e registro (log)
141 completo das requisições. Usando o leve Protocolo de Caches Internet
142 (ICP) ele pode ser usado em uma hierarquia de servidores para maior
143 economia de banda de comunicação.
145 Ele consiste do programa squid (servidor principal), do programa
146 dnsserver (para resolução DNS), do programa ftpget (para transmissões
147 ftp) e outras ferramentas clientes e para gerenciamento. Quando o
148 squid é inicializado ele dispara um número configurável de processos
149 dnsserver, cada um podendo executar somente uma resolução DNS
150 bloqueante. Isto reduz o tempo que o cache espera por resoluções DNS.
152 Foi derivado do projeto Harvest, financiado pela ARPA.
155 Squid - ÜÔÏ ×ÙÓÏËÏÐÒÏÉÚ×ÏÄÉÔÅÌØÎÙÊ ËÜÛÉÒÕÀÝÉÊ ÐÒÏËÓÉ-ÓÅÒ×ÅÒ ÄÌÑ
156 ËÌÉÅÎÔÏ× web, ÐÏÄÄÅÒÖÉ×ÁÀÝÉÊ ÏÂßÅËÔÙ ÄÁÎÎÙÈ ÔÉÐÁ FTP, gopher É HTTP. ÷
157 ÏÔÌÉÞÉÅ ÏÔ ÔÒÁÄÉÃÉÏÎÎÙÈ ËÜÛÉÒÕÀÝÉÈ ÐÒÏÇÒÁÍÍ, Squid ÏÂÒÁÂÁÔÙ×ÁÅÔ ×ÓÅ
158 ÚÁÐÒÏÓÙ ÐÒÉ ÐÏÍÏÝÉ ÏÄÎÏÇÏ ÎÅÂÌÏËÉÒÕÀÝÅÇÏÓÑ, ÕÐÒÁ×ÌÑÅÍÏÇÏ
159 ××ÏÄÏÍ-×Ù×ÏÄÏÍ ÐÒÏÃÅÓÓÁ.
161 üÔÏÔ ÐÁËÅÔ ÉÍÅÅÔ ×ÓÔÒÏÅÎÎÕÀ ÐÏÄÄÅÒÖËÕ ÂÁÚÙ ÄÁÎÎÙÈ ÓÅÔÅ×ÙÈ ICMP-ÐÒÏÂ
165 Squid - ÃÅ ËÅÛÕÀÞÉÊ ÐÒÏËÓ¦-ÓÅÒ×ÅÒ ÄÌÑ web-Ë̦¤ÎÔ¦×, ÝÏ Ð¦ÄÔÒÉÍÕ¤
166 ÏÂ'¤ËÔÉ ÄÁÎÉÈ ÔÉÐÕ FTP, gopher ÔÁ HTTP. îÁ צÄͦÎÕ ×¦Ä ÔÒÁÄÉæÊÎÉÈ
167 ËÅÛÕÀÞÉÈ ÐÒÏÇÒÁÍ, Squid ÏÂÒÏÂÌѤ ×Ó¦ ÚÁÐÉÔÉ ÚÁ ÄÏÐÏÍÏÇÏÀ ÏÄÎÏÇÏ
168 ÎÅÂÌÏËÕÀÞÏÇÏ, ËÅÒÏ×ÁÎÏÇÏ ××ÏÄÏÍ-×É×ÏÄÏÍ ÐÒÏÃÅÓÕ.
170 ãÅÊ ÐÁËÅÔ ÍÁ¤ ×ÂÕÄÏ×ÁÎÕ Ð¦ÄÔÒÉÍËÕ ÂÁÚÉ ÄÁÎÉÈ ÍÅÒÅÖÅ×ÉÈ ICMP-ÐÒÏÂ
174 Summary: CGI script for Squid management
175 Summary(pl): Skrypt CGI do zarz±dzania Squidem przez WWW
176 Group: Networking/Admin
177 Requires: %{name} = %{epoch}:%{version}-%{release}
180 %description cachemgr
181 Cachemgr.cgi is a CGI script that allows administrator to chceck
182 various informations about Squid via WWW.
184 %description cachemgr -l pl
185 Cachemgr.cgi jest skryptem CGI, który pozwala administratorowi
186 zapoznaæ siê z informacjami o pracy Squida poprzez WWW.
189 Summary: LDAP authentication helper for Squid
190 Summary(pl): Obs³uga uwierzytelniania LDAP dla squida
191 Group: Networking/Admin
192 Requires: %{name} = %{epoch}:%{version}-%{release}
194 %description ldap_auth
195 This Squid helper allows authentication against LDAP directories using
196 the "simple authentication" (plain-text).
198 %description ldap_auth -l pl
199 Pakiet ten pozwala na uwierzytelnianie przez LDAP za pomoc± prostego
200 uwierzytelniania (otwartym tekstem).
203 Summary: PAM authentication helper for Squid
204 Summary(pl): Obs³uga uwierzytelniania PAM dla squida
205 Group: Networking/Admin
206 Requires: %{name} = %{epoch}:%{version}-%{release}
207 Requires: pam >= 0.77.3
209 %description pam_auth
210 This program authenticates users against a PAM configured
211 authentication service "squid". This allows you to authenticate Squid
212 users to any authentication source for which you have a PAM module.
214 %description pam_auth -l pl
215 Program ten pozwala na uwierzytelnianie u¿ytkowników squida w dowolnym
216 ¼ródle posiadaj±cym modu³ PAM.
219 Summary: SMB authentication helper for Squid
220 Summary(pl): Obs³uga uwierzytelniania SMB dla squida
221 Group: Networking/Admin
222 Requires: %{name} = %{epoch}:%{version}-%{release}
224 %description smb_auth
225 This is a proxy authentication module. With smb_auth you can
226 authenticate proxy users against an SMB server like Windows NT or
229 %description smb_auth -l pl
230 To jest modu³ uwierzytelniania proxy. Przy pomocy smb_auth mo¿na
231 uwierzytelniaæ u¿ytkowników proxy na serwerach SMB, jak Windows NT czy
235 Summary: MSNT domain authentication helper for Squid
236 Summary(pl): Obs³uga uwierzytelniania w domenie MSNT dla squida
237 Group: Networking/Admin
238 Requires: %{name} = %{epoch}:%{version}-%{release}
240 %description msnt_auth
241 This is an authentication module for the Squid proxy server to
242 authenticate users on an NT domain.
244 %description msnt_auth -l pl
245 Jest to modu³ uwierzytelniania proxy, który pozwala na
246 uwierzytelnianie u¿ytkowników proxy w domenie NT.
249 Summary: YP authentication helper for Squid
250 Summary(pl): Obs³uga uwierzytelniania YP dla squida
251 Group: Networking/Admin
252 Requires: %{name} = %{epoch}:%{version}-%{release}
255 This is an authentication module for the Squid proxy server to
256 authenticate users on YP.
258 %description yp_auth -l pl
259 Jest to modu³ uwierzytelniania proxy, który pozwala na
260 uwierzytelnianie u¿ytkowników proxy poprzez YP.
263 Summary: NCSA httpd style authentication helper for Squid
264 Summary(pl): Obs³uga uwierzytelniania NCSA httpd dla squida
265 Group: Networking/Admin
266 Requires: %{name} = %{epoch}:%{version}-%{release}
268 %description ncsa_auth
269 This module uses a NCSA httpd style password file for authentication.
271 %description ncsa_auth -l pl
272 Modu³ uwierzytelniania proxy u¿ywaj±cy pliku hase³ jak w NCSA httpd.
275 Summary: SASL authentication helper for Squid
276 Summary(pl): Obs³uga uwierzytelniania SASL dla squida
277 Group: Networking/Admin
278 Requires: %{name} = %{epoch}:%{version}-%{release}
280 %description sasl_auth
281 This is an authentication module for the Squid proxy server to
282 authenticate users via SASL.
284 %description sasl_auth -l pl
285 Jest to modu³ uwierzytelniania proxy, który pozwala na
286 uwierzytelnianie u¿ytkowników proxy poprzez SASL.
288 %package winbind_auth
289 Summary: WINBIND authentication helper for Squid
290 Summary(pl): Obs³uga uwierzytelniania WINBIND dla squida
291 Group: Networking/Admin
292 Requires: %{name} = %{epoch}:%{version}-%{release}
294 %description winbind_auth
295 This is an authentication module for the Squid proxy server to
296 authenticate users via WINBIND.
298 %description winbind_auth -l pl
299 Jest to modu³ uwierzytelniania proxy, który pozwala na
300 uwierzytelnianie u¿ytkowników proxy poprzez WINBIND.
302 %package getpwname_auth
303 Summary: getpwname authentication helper for Squid
304 Summary(pl): Obs³uga uwierzytelniania getpwname dla squida
305 Group: Networking/Admin
306 Requires: %{name} = %{epoch}:%{version}-%{release}
308 %description getpwname_auth
309 This is an authentication module for the Squid proxy server to
310 authenticate users using getpwname.
312 %description getpwname_auth -l pl
313 Jest to modu³ uwierzytelniania proxy, który pozwala na
314 uwierzytelnianie u¿ytkowników proxy poprzez getpwname.
317 Summary: passwd authentication helper for Squid
318 Summary(pl): Obs³uga uwierzytelniania passwd dla squida
319 Group: Networking/Admin
320 Requires: %{name} = %{epoch}:%{version}-%{release}
322 %description passwd_auth
323 This is an authentication module for the Squid proxy server to
324 authenticate users with separate passwd file.
326 %description passwd_auth -l pl
327 Jest to modu³ uwierzytelniania proxy, który pozwala na
328 uwierzytelnianie u¿ytkowników proxy poprzez oddzielny plik passwd.
331 Summary: NTLM authentication helper for Squid
332 Summary(pl): Obs³uga uwierzytelniania NTLM dla squida
333 Group: Networking/Admin
334 Requires: %{name} = %{epoch}:%{version}-%{release}
336 %description ntlm_auth
337 This is an authentication module for the Squid proxy server to
338 authenticate users on NTLM.
340 %description ntlm_auth -l pl
341 Jest to modu³ uwierzytelniania proxy, który pozwala na
342 uwierzytelnianie u¿ytkowników proxy poprzez NTLM.
345 Summary: IP external ACL helper for Squid
346 Summary(pl): Wsparcie kontroli dostêpu przez IP dla squida
347 Group: Networking/Admin
348 Requires: %{name} = %{epoch}:%{version}-%{release}
351 This is an external ACL module for the Squid proxy server to limit
352 access for users based on IP address.
354 %description ip_acl -l pl
355 Jest to modu³ kontroli dostêpu (ACL) do proxy, który pozwala na
356 ograniczenie dostêpu u¿ytkowników proxy na podstawie ich adresu IP.
359 Summary: LDAP group external ACL helper for Squid
360 Summary(pl): Wsparcie kontroli dostêpu przez grupy LDAP dla squida
361 Group: Networking/Admin
362 Requires: %{name} = %{epoch}:%{version}-%{release}
364 %description ldap_acl
365 This is an external ACL module for the Squid proxy server to limit
366 access for users based on LDAP group membership.
368 %description ldap_acl -l pl
369 Jest to modu³ kontroli dostêpu (ACL) do proxy, który pozwala na
370 ograniczenie dostêpu u¿ytkowników proxy na podstawie ich
371 przynale¿no¶ci do grup LDAP.
374 Summary: UNIX group external ACL helper for Squid
375 Summary(pl): Wsparcie kontroli dostêpu przez grupy UNIX dla squida
376 Group: Networking/Admin
377 Requires: %{name} = %{epoch}:%{version}-%{release}
379 %description unix_acl
380 This is an external ACL module for the Squid proxy server to limit
381 access for users based on UNIX group membership.
383 %description unix_acl -l pl
384 Jest to modu³ kontroli dostêpu (ACL) do proxy, który pozwala na
385 ograniczenie dostêpu u¿ytkowników proxy na podstawie ich
386 przynale¿no¶ci do grup UNIX.
389 Summary: NT domain group external ACL helper for Squid
390 Summary(pl): Wsparcie kontroli dostêpu przez grupy w domenie NT dla squida
391 Group: Networking/Admin
392 Requires: %{name} = %{epoch}:%{version}-%{release}
394 %description wbinfo_acl
395 This is an external ACL module for the Squid proxy server to limit
396 access for users based on NT domain group membership using wbinfo.
398 %description wbinfo_acl -l pl
399 Jest to modu³ kontroli dostêpu (ACL) do proxy, który pozwala na
400 ograniczenie dostêpu u¿ytkowników proxy na podstawie ich
401 przynale¿no¶ci do grup w domenie NT przy u¿yciu wbinfo.
404 Summary: NT domain group external ACL helper for Squid
405 Summary(pl): Wsparcie kontroli dostêpu przez grupy w domenie NT dla squida
406 Group: Networking/Admin
407 Requires: %{name} = %{epoch}:%{version}-%{release}
409 %description winbind_acl
410 This is an external ACL module for the Squid proxy server to limit
411 access for users based on NT domain group membership based on Samba
412 Winbindd from Samba 2.2.4 or greater.
414 %description winbind_acl -l pl
415 Jest to modu³ kontroli dostêpu (ACL) do proxy, który pozwala na
416 ograniczenie dostêpu u¿ytkowników proxy na podstawie ich
417 przynale¿no¶ci do grup w domenie NT oparty na Samba Winbindd z pakietu
418 Samba 2.2.4 lub wy¿szego.
422 # Bug fixes from Squid home page:
435 %{?with_combined_log:%patch111 -p1}
442 --datadir=%{_datadir}/squid \
443 --disable-ipf-transparent \
446 --enable-basic-auth-helpers=yes \
447 --enable-cache-digests \
449 --enable-delay-pools \
450 --enable-digest-auth-helpers=yes \
451 --enable-err-language=English \
452 --enable-external-acl-helpers=yes \
453 --enable-forw-via-db \
456 --enable-linux-netfilter \
457 --enable-ntlm-auth-helpers=yes \
458 --enable-referer-log \
459 --enable-removal-policies="lru heap" \
462 --enable-storeio="aufs,coss,diskd,null,ufs" \
463 --enable-underscores \
464 --enable-useragent-log \
465 --enable-x-accelerator-vary \
466 --localstatedir=/var \
467 --sysconfdir=%{_sysconfdir} \
472 perl -pi -e 's#%{_prefix}/.*bin/perl#%{_bindir}/perl#g' contrib/*
473 perl -pi -e 's#%{_prefix}/.*bin/perl#%{_bindir}/perl#g' scripts/*
474 find helpers/ -type f | xargs perl -pi -e 's#%{_prefix}/.*bin/perl#%{_bindir}/perl#g'
477 rm -rf $RPM_BUILD_ROOT
478 install -d $RPM_BUILD_ROOT%{_cgidir} \
479 $RPM_BUILD_ROOT/etc/{pam.d,rc.d/init.d,security,sysconfig,logrotate.d} \
480 $RPM_BUILD_ROOT{%{_sbindir},%{_bindir},%{_libexecdir}/contrib} \
481 $RPM_BUILD_ROOT%{_mandir}/man8 \
482 $RPM_BUILD_ROOT%{_datadir}/squid \
483 $RPM_BUILD_ROOT/var/{cache,log{,/archiv}}/squid
486 DESTDIR=$RPM_BUILD_ROOT
488 cp -a contrib/*.pl $RPM_BUILD_ROOT%{_libexecdir}/contrib
489 install scripts/*.pl $RPM_BUILD_ROOT%{_libexecdir}
491 install %{SOURCE7} $RPM_BUILD_ROOT/etc/pam.d/squid
492 touch $RPM_BUILD_ROOT/etc/security/blacklist.squid
494 mv -f $RPM_BUILD_ROOT%{_libdir}/squid/cachemgr.cgi $RPM_BUILD_ROOT%{_cgidir}
496 cd $RPM_BUILD_ROOT/etc/squid
497 cp -f squid.conf{,.default}
498 patch -p0 < %{SOURCE5}
501 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/squid
502 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/squid
503 install %{SOURCE6} $RPM_BUILD_ROOT/etc/logrotate.d/squid
505 touch $RPM_BUILD_ROOT/var/log/squid/{access,cache,store}.log
507 # These two files start squid. They are replaced by /etc/rc.d/init.d script.
508 rm -f $RPM_BUILD_ROOT%{_bindir}/R*
510 # dunno why, but manual is not installed
511 mv doc/squid.8 $RPM_BUILD_ROOT%{_mandir}/man8
513 # We don't want Makefiles as docs...
516 # We don't like message: rpm found unpackaged files ...
517 rm -f $RPM_BUILD_ROOT/etc/squid/msntauth.conf.default \
518 $RPM_BUILD_ROOT/etc/squid/squid.conf.orig
521 rm -rf $RPM_BUILD_ROOT
523 %triggerpostun -- squid < 7:2.5.STABLE7-5
524 %addusertogroup stats squid
527 if [ -n "`/usr/bin/getgid squid`" ]; then
528 if [ "`/usr/bin/getgid squid`" != "91" ]; then
529 echo "Error: group squid doesn't have gid=91. Correct this before installing squid." 1>&2
533 /usr/sbin/groupadd -g 91 squid 1>&2
535 if [ -n "`/bin/id -u squid 2>/dev/null`" ]; then
536 if [ "`/bin/id -u squid`" != "91" ]; then
537 echo "Error: user squid doesn't have uid=91. Correct this before installing squid." 1>&2
541 /usr/sbin/useradd -o -u 91 -s /bin/false -g squid \
542 -c "SQUID http caching daemon" -d /var/cache/squid squid 1>&2
543 %addusertogroup stats squid
545 [ -L %{_datadir}/squid/errors ] && rm -rf %{_datadir}/squid/errors || :
548 if ! grep -q "^visible_hostname" /etc/squid/squid.conf; then
549 echo visible_hostname `/bin/hostname -f` >> /etc/squid/squid.conf
552 if [ "$1" = "1" ]; then
553 /sbin/chkconfig --add squid
554 echo "Run \"/etc/rc.d/init.d/squid start\" to start squid." >&2
556 if [ -f /var/lock/subsys/squid ]; then
557 /etc/rc.d/init.d/squid restart >&2
562 if [ "$1" = "0" ]; then
563 if [ -f /var/lock/subsys/squid ]; then
564 /etc/rc.d/init.d/squid stop >&2
566 /sbin/chkconfig --del squid
570 if [ "$1" = "0" ]; then
576 %defattr(644,root,root,755)
577 %doc CONTRIBUTORS COPYRIGHT CREDITS README ChangeLog QUICKSTART RELEASENOTES.html SPONSORS
578 %doc doc/* src/mib.txt FAQ*.html book-full.html
579 %attr(755,root,root) %{_bindir}/squidclient
580 %attr(755,root,root) %{_libexecdir}/diskd
581 # YES, it has to be suid root, it sends ICMP packets.
582 %attr(4754,root,squid) %{_libexecdir}/pinger
583 %attr(755,root,root) %{_libexecdir}/unlinkd
584 %attr(755,root,root) %{_libexecdir}/fakeauth_auth
585 %attr(755,root,root) %{_sbindir}/*
587 %attr(755,root,root) %dir %{_sysconfdir}
589 %attr(754,root,root) /etc/rc.d/init.d/squid
590 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/squid
591 %attr(640,root,squid) %config(noreplace) /etc/sysconfig/squid
592 %attr(640,root,squid) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/squid.conf
593 %attr(640,root,squid) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mime.conf
594 %attr(640,root,root) %{_sysconfdir}/mime.conf.default
595 %attr(640,root,root) %{_sysconfdir}/squid.conf.default
597 %dir %{_datadir}/squid
598 %dir %{_datadir}/squid/errors
599 %{_datadir}/squid/icons
600 %{_datadir}/squid/mib.txt
601 %lang(bg) %{_datadir}/squid/errors/Bulgarian
602 %lang(ca) %{_datadir}/squid/errors/Catalan
603 %lang(cs) %{_datadir}/squid/errors/Czech
604 %lang(da) %{_datadir}/squid/errors/Danish
605 %lang(nl) %{_datadir}/squid/errors/Dutch
606 %{_datadir}/squid/errors/English
607 %lang(et) %{_datadir}/squid/errors/Estonian
608 %lang(fi) %{_datadir}/squid/errors/Finnish
609 %lang(fr) %{_datadir}/squid/errors/French
610 %lang(de) %{_datadir}/squid/errors/German
611 %lang(he) %{_datadir}/squid/errors/Hebrew
612 %lang(hu) %{_datadir}/squid/errors/Hungarian
613 %lang(it) %{_datadir}/squid/errors/Italian
614 %lang(ja) %{_datadir}/squid/errors/Japanese
615 %lang(ko) %{_datadir}/squid/errors/Korean
616 %lang(lt) %{_datadir}/squid/errors/Lithuanian
617 %lang(pl) %{_datadir}/squid/errors/Polish
618 %lang(pt) %{_datadir}/squid/errors/Portuguese
619 %lang(ro) %{_datadir}/squid/errors/Romanian
620 %lang(ru) %{_datadir}/squid/errors/Russian-1251
621 %lang(ru) %{_datadir}/squid/errors/Russian-koi8-r
622 %lang(zh_CN) %{_datadir}/squid/errors/Simplify_Chinese
623 %lang(sk) %{_datadir}/squid/errors/Slovak
624 %lang(es) %{_datadir}/squid/errors/Spanish
625 %lang(sr) %{_datadir}/squid/errors/Serbian
626 %lang(sv) %{_datadir}/squid/errors/Swedish
627 %lang(zh_TW) %{_datadir}/squid/errors/Traditional_Chinese
628 %lang(tr) %{_datadir}/squid/errors/Turkish
630 %attr(755,root,root) %dir %{_libexecdir}
631 %attr(755,root,root) %{_libexecdir}/*.pl
632 %attr(755,root,root) %{_libexecdir}/contrib
634 %attr(770,root,squid) %dir /var/log/archiv/squid
635 %attr(770,root,squid) %dir /var/log/squid
636 %attr(660,root,squid) %ghost /var/log/squid/*
638 %attr(770,root,squid) %dir /var/cache/squid
639 %{_mandir}/man8/squid.8*
642 %defattr(644,root,root,755)
643 %attr(755,root,root) %{_cgidir}/*
646 %defattr(644,root,root,755)
647 %doc helpers/basic_auth/LDAP/README
648 %attr(755,root,root) %{_libexecdir}/%{name}_ldap_auth
649 %{_mandir}/man8/%{name}_ldap_auth.*
652 %defattr(644,root,root,755)
653 %doc helpers/basic_auth/PAM/pam_auth.c
654 %config(noreplace) /etc/pam.d/squid
655 %config(noreplace) /etc/security/blacklist.squid
656 %attr(755,root,root) %{_libexecdir}/pam_auth
657 %{_mandir}/man8/pam_auth.8*
660 %defattr(644,root,root,755)
661 %doc helpers/basic_auth/SMB/{README,ChangeLog,smb_auth.sh}
662 %doc helpers/basic_auth/multi-domain-NTLM/*
663 %attr(755,root,root) %{_libexecdir}/smb_auth*
666 %defattr(644,root,root,755)
667 %doc helpers/basic_auth/MSNT/README*
668 %attr(755,root,root) %{_libexecdir}/msnt_auth
669 %attr(640,root,squid) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/msntauth.conf
672 %defattr(644,root,root,755)
673 %attr(755,root,root) %{_libexecdir}/yp_auth
676 %defattr(644,root,root,755)
677 %attr(755,root,root) %{_libexecdir}/ncsa_auth
680 %defattr(644,root,root,755)
681 %doc helpers/basic_auth/SASL/{README,squid_sasl*}
682 %attr(755,root,root) %{_libexecdir}/sasl_auth
685 %defattr(644,root,root,755)
686 %attr(755,root,root) %{_libexecdir}/wb_auth
688 %files getpwname_auth
689 %defattr(644,root,root,755)
690 %attr(755,root,root) %{_libexecdir}/getpwname_auth
693 %defattr(644,root,root,755)
694 %attr(755,root,root) %{_libexecdir}/digest_pw_auth
697 %defattr(644,root,root,755)
698 %doc helpers/ntlm_auth/no_check/{README*,no_check.pl}
699 %attr(755,root,root) %{_libexecdir}/wb_ntlmauth
700 %attr(755,root,root) %{_libexecdir}/ntlm_auth
703 %defattr(644,root,root,755)
704 %doc helpers/external_acl/ip_user/{README,example*}
705 %attr(755,root,root) %{_libexecdir}/ip_user_check
708 %defattr(644,root,root,755)
709 %attr(755,root,root) %{_libexecdir}/squid_ldap_group
710 %{_mandir}/man8/%{name}_ldap_group.*
713 %defattr(644,root,root,755)
714 %doc helpers/external_acl/unix_group/README
715 %attr(755,root,root) %{_libexecdir}/squid_unix_group
716 %{_mandir}/man8/%{name}_unix_group.*
719 %defattr(644,root,root,755)
720 %attr(755,root,root) %{_libexecdir}/wbinfo_group.pl
723 %defattr(644,root,root,755)
724 %doc helpers/external_acl/winbind_group/readme.txt
725 %attr(755,root,root) %{_libexecdir}/wb_group