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: e6db8bdfc783b3baed7de803c9a39e55
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}-align.patch
45 Patch112: %{name}-2.5.STABLE4-apache-like-combined-log.patch
46 URL: http://www.squid-cache.org/
47 BuildRequires: autoconf
48 BuildRequires: automake
49 BuildRequires: cyrus-sasl-devel >= 2.1.0
50 BuildRequires: openldap-devel
51 BuildRequires: openssl-devel >= 0.9.7d
52 BuildRequires: pam-devel
53 BuildRequires: perl-base
54 BuildRequires: rpmbuild(macros) >= 1.202
56 PreReq: rc-scripts >= 0.2.0
57 PreReq: setup >= 2.4.6
58 Requires(pre): /bin/id
59 Requires(pre): /usr/bin/getgid
60 Requires(pre): /usr/lib/rpm/user_group.sh
61 Requires(pre): /usr/sbin/groupadd
62 Requires(pre): /usr/sbin/useradd
63 Requires(post,preun): /sbin/chkconfig
64 Requires(post): fileutils
65 Requires(post): findutils
67 Requires(post): /bin/hostname
68 Requires(postun): /usr/sbin/groupdel
69 Requires(postun): /usr/sbin/userdel
70 Provides: group(squid)
72 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
74 %define _libexecdir %{_libdir}/%{name}
75 %define _sysconfdir /etc/%{name}
76 %define _cgidir /home/services/httpd/cgi-bin
79 Squid is a high-performance proxy caching server for web clients,
80 supporting FTP, gopher, and HTTP data objects. Unlike traditional
81 caching software, Squid handles all requests in a single,
82 non-blocking, I/O-driven process. Squid keeps meta data and especially
83 hot objects cached in RAM, caches DNS lookups, supports non-blocking
84 DNS lookups, and implements negative caching of failed requests. If
85 you are tight on memory, check out the NOVM version of this package.
86 Squid supports SSL, extensive access controls, and full request
87 logging. By using the lightweight Internet Cache Protocol, Squid
88 caches can be arranged in a hierarchy or mesh for additional bandwidth
89 savings. Squid consists of a main server program squid, a Domain Name
90 System lookup program dnsserver, a program for retrieving FTP data
91 ftpget, and some management and client tools. When squid starts up, it
92 spawns a configurable number of dnsserver processes, each of which can
93 perform a single, blocking Domain Name System (DNS) lookup. This
94 reduces the amount of time the cache waits for DNS lookups. Squid is
95 derived from the ARPA-funded Harvest project.
98 Squid es un servidor proxy con caché de alto desempeño para clientes
99 web, soportando FTP, gopher y HTTP. Diferentemente de softwares
100 tradicionales de caché squid manipula todas las requisiciones en un
101 único proceso sin bloqueos, direccionado a E/S. Mantienen metadatos y
102 objetos frecuentemente pedidos en uno caché en memoria RAM. Hace caché
103 de resoluciones DNS, soporta resoluciones DNS sin bloqueo y implementa
104 un caché negativo de requisiciones que fallen. Si tiene poca memoria
105 da un vistazo en la versión NOVM de este paquete. También soporta SSL,
106 controles extensivos de acceso y registro (log) completo de las
107 requisiciones. Usando el ligero Protocolo de Caches Internet (ICP)
108 puede ser usado en una jerarquía de servidores para mayor ahorro de la
109 banda de comunicación. Está compuesto del programa squid (servidor
110 principal), del programa dnsserver (para resolución DNS), del programa
111 ftpget (para transmisiones ftp) y otras herramientas clientes y para
112 administración. Cuando squid se inicia, dispara un número configurable
113 de procesos dnsserver, cada uno pudiendo ejecutar solamente una
114 resolución DNS con poder de bloquear. Esto reduce el tiempo que el
115 caché espera por resoluciones DNS. Fue derivado del proyecto Harvest,
116 financiado por la ARPA.
119 Squid jest wysoce wydajnym serwerem proxy-cache dla przegl±darek WWW,
120 klientów FTP i gopher. Squid przechowuje najczê¶ciej pobierane dane w
121 pamiêci RAM i zapamiêtuje odwo³ania do DNS. Squid oferuje wsparcie dla
122 SSL, rozbudowan± kontrolê dostêpu oraz pe³ne rejestrowanie pobieranych
123 danych. Dziêki u¿yciu protoko³u ICP (Internet Cache Protocol), serwer
124 squid mo¿na ³±czyæ w hierarchiê, zwiêkszaj±c ich efektywno¶æ. Pakiet
125 squid obejmuje: g³ówny program serwera squid, program dostarczaj±cy
126 informacji z DNS dnsserver, program odbieraj±cy dane FTP ftpget, oraz
127 pomocnicze programy do zarz±dzania. Squid wywodzi siê ze
128 sponsorowanego przez ARPA projektu Harvest.
130 %description -l pt_BR
131 O Squid é um servidor proxy com cache de alta performance para
132 clientes web, suportando FTP, gopher e HTTP. Diferentemente de
133 softwares tradicionais de cache o squid manipula todas as requisições
134 em um único processo sem bloqueios, direcionado a E/S.
136 Mantém meta dados e objetos freqüentemente pedidos num cache em
137 memória RAM. Faz cache de resoluções DNS, suporta resoluções DNS sem
138 bloqueio e implementa um cache negativo de requisições que falharem.
139 Se você tem pouca memória dê uma olhada na versão NOVM deste pacote.
141 Também suporta SSL, controles extensivos de acesso e registro (log)
142 completo das requisições. Usando o leve Protocolo de Caches Internet
143 (ICP) ele pode ser usado em uma hierarquia de servidores para maior
144 economia de banda de comunicação.
146 Ele consiste do programa squid (servidor principal), do programa
147 dnsserver (para resolução DNS), do programa ftpget (para transmissões
148 ftp) e outras ferramentas clientes e para gerenciamento. Quando o
149 squid é inicializado ele dispara um número configurável de processos
150 dnsserver, cada um podendo executar somente uma resolução DNS
151 bloqueante. Isto reduz o tempo que o cache espera por resoluções DNS.
153 Foi derivado do projeto Harvest, financiado pela ARPA.
156 Squid - ÜÔÏ ×ÙÓÏËÏÐÒÏÉÚ×ÏÄÉÔÅÌØÎÙÊ ËÜÛÉÒÕÀÝÉÊ ÐÒÏËÓÉ-ÓÅÒ×ÅÒ ÄÌÑ
157 ËÌÉÅÎÔÏ× web, ÐÏÄÄÅÒÖÉ×ÁÀÝÉÊ ÏÂßÅËÔÙ ÄÁÎÎÙÈ ÔÉÐÁ FTP, gopher É HTTP. ÷
158 ÏÔÌÉÞÉÅ ÏÔ ÔÒÁÄÉÃÉÏÎÎÙÈ ËÜÛÉÒÕÀÝÉÈ ÐÒÏÇÒÁÍÍ, Squid ÏÂÒÁÂÁÔÙ×ÁÅÔ ×ÓÅ
159 ÚÁÐÒÏÓÙ ÐÒÉ ÐÏÍÏÝÉ ÏÄÎÏÇÏ ÎÅÂÌÏËÉÒÕÀÝÅÇÏÓÑ, ÕÐÒÁ×ÌÑÅÍÏÇÏ
160 ××ÏÄÏÍ-×Ù×ÏÄÏÍ ÐÒÏÃÅÓÓÁ.
162 üÔÏÔ ÐÁËÅÔ ÉÍÅÅÔ ×ÓÔÒÏÅÎÎÕÀ ÐÏÄÄÅÒÖËÕ ÂÁÚÙ ÄÁÎÎÙÈ ÓÅÔÅ×ÙÈ ICMP-ÐÒÏÂ
166 Squid - ÃÅ ËÅÛÕÀÞÉÊ ÐÒÏËÓ¦-ÓÅÒ×ÅÒ ÄÌÑ web-Ë̦¤ÎÔ¦×, ÝÏ Ð¦ÄÔÒÉÍÕ¤
167 ÏÂ'¤ËÔÉ ÄÁÎÉÈ ÔÉÐÕ FTP, gopher ÔÁ HTTP. îÁ צÄͦÎÕ ×¦Ä ÔÒÁÄÉæÊÎÉÈ
168 ËÅÛÕÀÞÉÈ ÐÒÏÇÒÁÍ, Squid ÏÂÒÏÂÌѤ ×Ó¦ ÚÁÐÉÔÉ ÚÁ ÄÏÐÏÍÏÇÏÀ ÏÄÎÏÇÏ
169 ÎÅÂÌÏËÕÀÞÏÇÏ, ËÅÒÏ×ÁÎÏÇÏ ××ÏÄÏÍ-×É×ÏÄÏÍ ÐÒÏÃÅÓÕ.
171 ãÅÊ ÐÁËÅÔ ÍÁ¤ ×ÂÕÄÏ×ÁÎÕ Ð¦ÄÔÒÉÍËÕ ÂÁÚÉ ÄÁÎÉÈ ÍÅÒÅÖÅ×ÉÈ ICMP-ÐÒÏÂ
175 Summary: CGI script for Squid management
176 Summary(pl): Skrypt CGI do zarz±dzania Squidem przez WWW
177 Group: Networking/Admin
178 Requires: %{name} = %{epoch}:%{version}-%{release}
181 %description cachemgr
182 Cachemgr.cgi is a CGI script that allows administrator to chceck
183 various informations about Squid via WWW.
185 %description cachemgr -l pl
186 Cachemgr.cgi jest skryptem CGI, który pozwala administratorowi
187 zapoznaæ siê z informacjami o pracy Squida poprzez WWW.
190 Summary: LDAP authentication helper for Squid
191 Summary(pl): Obs³uga uwierzytelniania LDAP dla squida
192 Group: Networking/Admin
193 Requires: %{name} = %{epoch}:%{version}-%{release}
195 %description ldap_auth
196 This Squid helper allows authentication against LDAP directories using
197 the "simple authentication" (plain-text).
199 %description ldap_auth -l pl
200 Pakiet ten pozwala na uwierzytelnianie przez LDAP za pomoc± prostego
201 uwierzytelniania (otwartym tekstem).
204 Summary: PAM authentication helper for Squid
205 Summary(pl): Obs³uga uwierzytelniania PAM dla squida
206 Group: Networking/Admin
207 Requires: %{name} = %{epoch}:%{version}-%{release}
208 Requires: pam >= 0.77.3
210 %description pam_auth
211 This program authenticates users against a PAM configured
212 authentication service "squid". This allows you to authenticate Squid
213 users to any authentication source for which you have a PAM module.
215 %description pam_auth -l pl
216 Program ten pozwala na uwierzytelnianie u¿ytkowników squida w dowolnym
217 ¼ródle posiadaj±cym modu³ PAM.
220 Summary: SMB authentication helper for Squid
221 Summary(pl): Obs³uga uwierzytelniania SMB dla squida
222 Group: Networking/Admin
223 Requires: %{name} = %{epoch}:%{version}-%{release}
225 %description smb_auth
226 This is a proxy authentication module. With smb_auth you can
227 authenticate proxy users against an SMB server like Windows NT or
230 %description smb_auth -l pl
231 To jest modu³ uwierzytelniania proxy. Przy pomocy smb_auth mo¿na
232 uwierzytelniaæ u¿ytkowników proxy na serwerach SMB, jak Windows NT czy
236 Summary: MSNT domain authentication helper for Squid
237 Summary(pl): Obs³uga uwierzytelniania w domenie MSNT dla squida
238 Group: Networking/Admin
239 Requires: %{name} = %{epoch}:%{version}-%{release}
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³ uwierzytelniania proxy, który pozwala na
247 uwierzytelnianie u¿ytkowników proxy w domenie NT.
250 Summary: YP authentication helper for Squid
251 Summary(pl): Obs³uga uwierzytelniania YP dla squida
252 Group: Networking/Admin
253 Requires: %{name} = %{epoch}:%{version}-%{release}
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³ uwierzytelniania proxy, który pozwala na
261 uwierzytelnianie u¿ytkowników proxy poprzez YP.
264 Summary: NCSA httpd style authentication helper for Squid
265 Summary(pl): Obs³uga uwierzytelniania NCSA httpd dla squida
266 Group: Networking/Admin
267 Requires: %{name} = %{epoch}:%{version}-%{release}
269 %description ncsa_auth
270 This module uses a NCSA httpd style password file for authentication.
272 %description ncsa_auth -l pl
273 Modu³ uwierzytelniania proxy u¿ywaj±cy pliku hase³ jak w NCSA httpd.
276 Summary: SASL authentication helper for Squid
277 Summary(pl): Obs³uga uwierzytelniania SASL dla squida
278 Group: Networking/Admin
279 Requires: %{name} = %{epoch}:%{version}-%{release}
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³ uwierzytelniania proxy, który pozwala na
287 uwierzytelnianie u¿ytkowników proxy poprzez SASL.
289 %package winbind_auth
290 Summary: WINBIND authentication helper for Squid
291 Summary(pl): Obs³uga uwierzytelniania WINBIND dla squida
292 Group: Networking/Admin
293 Requires: %{name} = %{epoch}:%{version}-%{release}
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³ uwierzytelniania proxy, który pozwala na
301 uwierzytelnianie u¿ytkowników proxy poprzez WINBIND.
303 %package getpwname_auth
304 Summary: getpwname authentication helper for Squid
305 Summary(pl): Obs³uga uwierzytelniania getpwname dla squida
306 Group: Networking/Admin
307 Requires: %{name} = %{epoch}:%{version}-%{release}
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³ uwierzytelniania proxy, który pozwala na
315 uwierzytelnianie u¿ytkowników proxy poprzez getpwname.
318 Summary: passwd authentication helper for Squid
319 Summary(pl): Obs³uga uwierzytelniania passwd dla squida
320 Group: Networking/Admin
321 Requires: %{name} = %{epoch}:%{version}-%{release}
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³ uwierzytelniania proxy, który pozwala na
329 uwierzytelnianie u¿ytkowników proxy poprzez oddzielny plik passwd.
332 Summary: NTLM authentication helper for Squid
333 Summary(pl): Obs³uga uwierzytelniania NTLM dla squida
334 Group: Networking/Admin
335 Requires: %{name} = %{epoch}:%{version}-%{release}
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³ uwierzytelniania proxy, który pozwala na
343 uwierzytelnianie 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
349 Requires: %{name} = %{epoch}:%{version}-%{release}
352 This is an external ACL module for the Squid proxy server to limit
353 access 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
363 Requires: %{name} = %{epoch}:%{version}-%{release}
365 %description ldap_acl
366 This is an external ACL module for the Squid proxy server to limit
367 access 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
378 Requires: %{name} = %{epoch}:%{version}-%{release}
380 %description unix_acl
381 This is an external ACL module for the Squid proxy server to limit
382 access 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
393 Requires: %{name} = %{epoch}:%{version}-%{release}
395 %description wbinfo_acl
396 This is an external ACL module for the Squid proxy server to limit
397 access for users based on NT domain group membership using wbinfo.
399 %description wbinfo_acl -l pl
400 Jest to modu³ kontroli dostêpu (ACL) do proxy, który pozwala na
401 ograniczenie dostêpu u¿ytkowników proxy na podstawie ich
402 przynale¿no¶ci do grup w domenie NT przy u¿yciu wbinfo.
405 Summary: NT domain group external ACL helper for Squid
406 Summary(pl): Wsparcie kontroli dostêpu przez grupy w domenie NT dla squida
407 Group: Networking/Admin
408 Requires: %{name} = %{epoch}:%{version}-%{release}
410 %description winbind_acl
411 This is an external ACL module for the Squid proxy server to limit
412 access for users based on NT domain group membership based on Samba
413 Winbindd from Samba 2.2.4 or greater.
415 %description winbind_acl -l pl
416 Jest to modu³ kontroli dostêpu (ACL) do proxy, który pozwala na
417 ograniczenie dostêpu u¿ytkowników proxy na podstawie ich
418 przynale¿no¶ci do grup w domenie NT oparty na Samba Winbindd z pakietu
419 Samba 2.2.4 lub wy¿szego.
423 # Bug fixes from Squid home page:
437 %{?with_combined_log:%patch112 -p1}
444 --datadir=%{_datadir}/squid \
445 --disable-ipf-transparent \
448 --enable-basic-auth-helpers=yes \
449 --enable-cache-digests \
451 --enable-delay-pools \
452 --enable-digest-auth-helpers=yes \
453 --enable-err-language=English \
454 --enable-external-acl-helpers=yes \
455 --enable-forw-via-db \
458 --enable-linux-netfilter \
459 --enable-ntlm-auth-helpers=yes \
460 --enable-referer-log \
461 --enable-removal-policies="lru heap" \
464 --enable-storeio="aufs,coss,diskd,null,ufs" \
465 --enable-underscores \
466 --enable-useragent-log \
467 --enable-x-accelerator-vary \
468 --localstatedir=/var \
469 --sysconfdir=%{_sysconfdir} \
474 perl -pi -e 's#%{_prefix}/.*bin/perl#%{_bindir}/perl#g' contrib/*
475 perl -pi -e 's#%{_prefix}/.*bin/perl#%{_bindir}/perl#g' scripts/*
476 find helpers/ -type f | xargs perl -pi -e 's#%{_prefix}/.*bin/perl#%{_bindir}/perl#g'
479 rm -rf $RPM_BUILD_ROOT
480 install -d $RPM_BUILD_ROOT%{_cgidir} \
481 $RPM_BUILD_ROOT/etc/{pam.d,rc.d/init.d,security,sysconfig,logrotate.d} \
482 $RPM_BUILD_ROOT{%{_sbindir},%{_bindir},%{_libexecdir}/contrib} \
483 $RPM_BUILD_ROOT%{_mandir}/man8 \
484 $RPM_BUILD_ROOT%{_datadir}/squid \
485 $RPM_BUILD_ROOT/var/{cache,log{,/archiv}}/squid
488 DESTDIR=$RPM_BUILD_ROOT
490 cp -a contrib/*.pl $RPM_BUILD_ROOT%{_libexecdir}/contrib
491 install scripts/*.pl $RPM_BUILD_ROOT%{_libexecdir}
493 install %{SOURCE7} $RPM_BUILD_ROOT/etc/pam.d/squid
494 touch $RPM_BUILD_ROOT/etc/security/blacklist.squid
496 mv -f $RPM_BUILD_ROOT%{_libdir}/squid/cachemgr.cgi $RPM_BUILD_ROOT%{_cgidir}
498 cd $RPM_BUILD_ROOT/etc/squid
499 cp -f squid.conf{,.default}
500 patch -p0 < %{SOURCE5}
503 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/squid
504 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/squid
505 install %{SOURCE6} $RPM_BUILD_ROOT/etc/logrotate.d/squid
507 touch $RPM_BUILD_ROOT/var/log/squid/{access,cache,store}.log
509 # These two files start squid. They are replaced by /etc/rc.d/init.d script.
510 rm -f $RPM_BUILD_ROOT%{_bindir}/R*
512 # cp, to have re-entrant install
515 # dunno why, but manual is not installed
516 mv docs/squid.8 $RPM_BUILD_ROOT%{_mandir}/man8
517 # We don't want Makefiles as docs...
520 # We don't like message: rpm found unpackaged files ...
521 rm -f $RPM_BUILD_ROOT/etc/squid/msntauth.conf.default \
522 $RPM_BUILD_ROOT/etc/squid/squid.conf.orig
524 > $RPM_BUILD_ROOT/var/cache/squid/netdb_state
525 > $RPM_BUILD_ROOT/var/cache/squid/swap.state
526 > $RPM_BUILD_ROOT/var/cache/squid/swap.state.clean
527 > $RPM_BUILD_ROOT/var/cache/squid/swap.state.last-clean
530 rm -rf $RPM_BUILD_ROOT
532 %triggerpostun -- squid < 7:2.5.STABLE7-5
533 %addusertogroup stats squid
536 %groupadd -g 91 squid
537 %useradd -o -u 91 -s /bin/false -g squid -c "SQUID http caching daemon" -d /var/cache/squid squid
538 %addusertogroup stats squid
540 [ -L %{_datadir}/squid/errors ] && rm -rf %{_datadir}/squid/errors || :
543 if ! grep -q "^visible_hostname" /etc/squid/squid.conf; then
544 hostname=`/bin/hostname -f 2>/dev/null` || hostname='localhost'
545 echo visible_hostname $hostname >> /etc/squid/squid.conf
548 if [ "$1" = "1" ]; then
549 /sbin/chkconfig --add squid
550 /etc/rc.d/init.d/squid init >&2
551 echo "Run \"/etc/rc.d/init.d/squid start\" to start squid." >&2
553 if [ -f /var/lock/subsys/squid ]; then
554 /etc/rc.d/init.d/squid restart >&2
559 if [ "$1" = "0" ]; then
560 if [ -f /var/lock/subsys/squid ]; then
561 /etc/rc.d/init.d/squid stop >&2
563 /sbin/chkconfig --del squid
565 # nuke squid cache if uninstalling
566 rm -rf /var/cache/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 docs/* 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 %ghost /var/cache/squid/netdb_state
640 %ghost /var/cache/squid/swap.state
641 %ghost /var/cache/squid/swap.state.clean
642 %ghost /var/cache/squid/swap.state.last-clean
643 %{_mandir}/man8/squid.8*
646 %defattr(644,root,root,755)
647 %attr(755,root,root) %{_cgidir}/*
650 %defattr(644,root,root,755)
651 %doc helpers/basic_auth/LDAP/README
652 %attr(755,root,root) %{_libexecdir}/%{name}_ldap_auth
653 %{_mandir}/man8/%{name}_ldap_auth.*
656 %defattr(644,root,root,755)
657 %doc helpers/basic_auth/PAM/pam_auth.c
658 %config(noreplace) /etc/pam.d/squid
659 %config(noreplace) /etc/security/blacklist.squid
660 %attr(755,root,root) %{_libexecdir}/pam_auth
661 %{_mandir}/man8/pam_auth.8*
664 %defattr(644,root,root,755)
665 %doc helpers/basic_auth/SMB/{README,ChangeLog,smb_auth.sh}
666 %doc helpers/basic_auth/multi-domain-NTLM/*
667 %attr(755,root,root) %{_libexecdir}/smb_auth*
670 %defattr(644,root,root,755)
671 %doc helpers/basic_auth/MSNT/README*
672 %attr(755,root,root) %{_libexecdir}/msnt_auth
673 %attr(640,root,squid) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/msntauth.conf
676 %defattr(644,root,root,755)
677 %attr(755,root,root) %{_libexecdir}/yp_auth
680 %defattr(644,root,root,755)
681 %attr(755,root,root) %{_libexecdir}/ncsa_auth
684 %defattr(644,root,root,755)
685 %doc helpers/basic_auth/SASL/{README,squid_sasl*}
686 %attr(755,root,root) %{_libexecdir}/sasl_auth
689 %defattr(644,root,root,755)
690 %attr(755,root,root) %{_libexecdir}/wb_auth
692 %files getpwname_auth
693 %defattr(644,root,root,755)
694 %attr(755,root,root) %{_libexecdir}/getpwname_auth
697 %defattr(644,root,root,755)
698 %attr(755,root,root) %{_libexecdir}/digest_pw_auth
701 %defattr(644,root,root,755)
702 %doc helpers/ntlm_auth/no_check/{README*,no_check.pl}
703 %attr(755,root,root) %{_libexecdir}/wb_ntlmauth
704 %attr(755,root,root) %{_libexecdir}/ntlm_auth
707 %defattr(644,root,root,755)
708 %doc helpers/external_acl/ip_user/{README,example*}
709 %attr(755,root,root) %{_libexecdir}/ip_user_check
712 %defattr(644,root,root,755)
713 %attr(755,root,root) %{_libexecdir}/squid_ldap_group
714 %{_mandir}/man8/%{name}_ldap_group.*
717 %defattr(644,root,root,755)
718 %doc helpers/external_acl/unix_group/README
719 %attr(755,root,root) %{_libexecdir}/squid_unix_group
720 %{_mandir}/man8/%{name}_unix_group.*
723 %defattr(644,root,root,755)
724 %attr(755,root,root) %{_libexecdir}/wbinfo_group.pl
727 %defattr(644,root,root,755)
728 %doc helpers/external_acl/winbind_group/readme.txt
729 %attr(755,root,root) %{_libexecdir}/wb_group