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 proxy-cache server
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: 45ed1b1cd492e3f529085d09c3ffc1b8
20 Source1: %{name}-1.1.19-faq.tar.gz
21 # Source1-md5: 77d04ae621d19548797e3a0deb540df6
23 Source3: %{name}.sysconfig
24 Source4: http://cache.is.co.za/%{name}-docs.tar.gz
25 # Source4-md5: 0cfee556bf6394a0bd3c438c89dd2e63
26 Source5: %{name}.conf.patch
27 Source6: %{name}.logrotate
29 # Bug fixes from Squid home page:
30 Patch0: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE5-ntlm_assert.patch
31 Patch1: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE5-ldap.patch
32 Patch2: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE5-helper_warning.patch
33 Patch3: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE5-pkgconfig.patch
34 Patch4: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE5-vary.patch
35 Patch5: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE5-lin22_poll.patch
36 Patch6: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE5-version.patch
37 Patch7: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE5-deny_info.patch
38 Patch8: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE5-CONNECT_timeout.patch
39 Patch9: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE5-cache_swap_log.patch
40 Patch10: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE5-ntlm_warning.patch
41 Patch11: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE5-rfc1035NameUnpack.patch
42 Patch12: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE5-digest_blank.patch
43 Patch13: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE5-post_assert.patch
44 Patch14: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE5-spelling.patch
45 Patch15: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE5-digest_ERR.patch
46 Patch16: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE5-turkish_ERR_DNS_FAIL.patch
47 Patch17: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE5-vary_negatively.patch
48 Patch18: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE5-range_offset_limit.patch
49 Patch19: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE5-proxy_abuse.patch
52 Patch110: http://www.sed.pl/~mrk/qos/%{name}_hit_miss_mark.patch
53 Patch120: %{name}-fhs.patch
54 Patch130: %{name}-location.patch
55 Patch140: %{name}-domainmatch.patch
56 Patch150: %{name}-libnsl_fixes.patch
57 Patch170: %{name}-ac_fix.patch
58 Patch180: %{name}-crash-on-ENOSPC.patch
59 Patch190: %{name}-newssl.patch
60 Patch200: %{name}-sasl.patch
61 Patch210: http://piorun.ds.pg.gda.pl/~blues/patches/%{name}-more_FD-new.patch
62 Patch220: %{name}-empty-referer.patch
63 Patch230: %{name}-2.5.STABLE4-apache-like-combined-log.patch
64 Patch231: %{name}-libntlmssp.patch
65 URL: http://www.squid-cache.org/
66 BuildRequires: autoconf
67 BuildRequires: automake
68 BuildRequires: cyrus-sasl-devel >= 2.1.0
69 BuildRequires: findutils
70 BuildRequires: openldap-devel
71 BuildRequires: openssl-devel >= 0.9.7d
72 BuildRequires: pam-devel
73 BuildRequires: perl-base
74 PreReq: rc-scripts >= 0.2.0
75 Requires(pre): /bin/id
76 Requires(pre): /usr/bin/getgid
77 Requires(pre): /usr/sbin/groupadd
78 Requires(pre): /usr/sbin/useradd
79 Requires(post,preun): /sbin/chkconfig
80 Requires(post): fileutils
81 Requires(post): findutils
83 Requires(post): /bin/hostname
84 Requires(postun): /usr/sbin/groupdel
85 Requires(postun): /usr/sbin/userdel
86 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
88 %define _libexecdir %{_libdir}/%{name}
89 %define _sysconfdir /etc/%{name}
90 %define _cgidir /home/services/httpd/cgi-bin
93 Squid is a high-performance proxy caching server for web clients,
94 supporting FTP, gopher, and HTTP data objects. Unlike traditional
95 caching software, Squid handles all requests in a single,
96 non-blocking, I/O-driven process. Squid keeps meta data and especially
97 hot objects cached in RAM, caches DNS lookups, supports non-blocking
98 DNS lookups, and implements negative caching of failed requests. If
99 you are tight on memory, check out the NOVM version of this package.
100 Squid supports SSL, extensive access controls, and full request
101 logging. By using the lightweight Internet Cache Protocol, Squid
102 caches can be arranged in a hierarchy or mesh for additional bandwidth
103 savings. Squid consists of a main server program squid, a Domain Name
104 System lookup program dnsserver, a program for retrieving FTP data
105 ftpget, and some management and client tools. When squid starts up, it
106 spawns a configurable number of dnsserver processes, each of which can
107 perform a single, blocking Domain Name System (DNS) lookup. This
108 reduces the amount of time the cache waits for DNS lookups. Squid is
109 derived from the ARPA-funded Harvest project.
112 Squid es un servidor proxy con caché de alto desempeño para clientes
113 web, soportando FTP, gopher y HTTP. Diferentemente de softwares
114 tradicionales de caché squid manipula todas las requisiciones en un
115 único proceso sin bloqueos, direccionado a E/S. Mantienen metadatos y
116 objetos frecuentemente pedidos en uno caché en memoria RAM. Hace caché
117 de resoluciones DNS, soporta resoluciones DNS sin bloqueo y implementa
118 un caché negativo de requisiciones que fallen. Si tiene poca memoria
119 da un vistazo en la versión NOVM de este paquete. También soporta SSL,
120 controles extensivos de acceso y registro (log) completo de las
121 requisiciones. Usando el ligero Protocolo de Caches Internet (ICP)
122 puede ser usado en una jerarquía de servidores para mayor ahorro de la
123 banda de comunicación. Está compuesto del programa squid (servidor
124 principal), del programa dnsserver (para resolución DNS), del programa
125 ftpget (para transmisiones ftp) y otras herramientas clientes y para
126 administración. Cuando squid se inicia, dispara un número configurable
127 de procesos dnsserver, cada uno pudiendo ejecutar solamente una
128 resolución DNS con poder de bloquear. Esto reduce el tiempo que el
129 caché espera por resoluciones DNS. Fue derivado del proyecto Harvest,
130 financiado por la ARPA.
133 Squid jest wysoce wydajnym serwerem proxy-cache dla przegl±darek WWW,
134 klientów FTP i gopher. Squid przechowuje najczê¶ciej pobierane dane w
135 pamiêci RAM i zapamiêtuje odwo³ania do DNS. Squid oferuje wsparcie dla
136 SSL, rozbudowan± kontrolê dostêpu oraz pe³ne rejestrowanie pobieranych
137 danych. Dziêki u¿yciu protoko³u ICP (Internet Cache Protocol), serwer
138 squid mo¿na ³±czyæ w hierarchiê, zwiêkszaj±c ich efektywno¶æ. Pakiet
139 squid obejmuje: g³ówny program serwera squid, program dostarczaj±cy
140 informacji z DNS dnsserver, program odbieraj±cy dane FTP ftpget, oraz
141 pomocnicze programy do zarz±dzania. Squid wywodzi siê ze
142 sponsorowanego przez ARPA projektu Harvest.
144 %description -l pt_BR
145 O Squid é um servidor proxy com cache de alta performance para
146 clientes web, suportando FTP, gopher e HTTP. Diferentemente de
147 softwares tradicionais de cache o squid manipula todas as requisições
148 em um único processo sem bloqueios, direcionado a E/S.
150 Mantém meta dados e objetos freqüentemente pedidos num cache em
151 memória RAM. Faz cache de resoluções DNS, suporta resoluções DNS sem
152 bloqueio e implementa um cache negativo de requisições que falharem.
153 Se você tem pouca memória dê uma olhada na versão NOVM deste pacote.
155 Também suporta SSL, controles extensivos de acesso e registro (log)
156 completo das requisições. Usando o leve Protocolo de Caches Internet
157 (ICP) ele pode ser usado em uma hierarquia de servidores para maior
158 economia de banda de comunicação.
160 Ele consiste do programa squid (servidor principal), do programa
161 dnsserver (para resolução DNS), do programa ftpget (para transmissões
162 ftp) e outras ferramentas clientes e para gerenciamento. Quando o
163 squid é inicializado ele dispara um número configurável de processos
164 dnsserver, cada um podendo executar somente uma resolução DNS
165 bloqueante. Isto reduz o tempo que o cache espera por resoluções DNS.
167 Foi derivado do projeto Harvest, financiado pela ARPA.
170 Squid - ÜÔÏ ×ÙÓÏËÏÐÒÏÉÚ×ÏÄÉÔÅÌØÎÙÊ ËÜÛÉÒÕÀÝÉÊ ÐÒÏËÓÉ-ÓÅÒ×ÅÒ ÄÌÑ
171 ËÌÉÅÎÔÏ× web, ÐÏÄÄÅÒÖÉ×ÁÀÝÉÊ ÏÂßÅËÔÙ ÄÁÎÎÙÈ ÔÉÐÁ FTP, gopher É HTTP. ÷
172 ÏÔÌÉÞÉÅ ÏÔ ÔÒÁÄÉÃÉÏÎÎÙÈ ËÜÛÉÒÕÀÝÉÈ ÐÒÏÇÒÁÍÍ, Squid ÏÂÒÁÂÁÔÙ×ÁÅÔ ×ÓÅ
173 ÚÁÐÒÏÓÙ ÐÒÉ ÐÏÍÏÝÉ ÏÄÎÏÇÏ ÎÅÂÌÏËÉÒÕÀÝÅÇÏÓÑ, ÕÐÒÁ×ÌÑÅÍÏÇÏ
174 ××ÏÄÏÍ-×Ù×ÏÄÏÍ ÐÒÏÃÅÓÓÁ.
176 üÔÏÔ ÐÁËÅÔ ÉÍÅÅÔ ×ÓÔÒÏÅÎÎÕÀ ÐÏÄÄÅÒÖËÕ ÂÁÚÙ ÄÁÎÎÙÈ ÓÅÔÅ×ÙÈ ICMP-ÐÒÏÂ
180 Squid - ÃÅ ËÅÛÕÀÞÉÊ ÐÒÏËÓ¦-ÓÅÒ×ÅÒ ÄÌÑ web-Ë̦¤ÎÔ¦×, ÝÏ Ð¦ÄÔÒÉÍÕ¤
181 ÏÂ'¤ËÔÉ ÄÁÎÉÈ ÔÉÐÕ FTP, gopher ÔÁ HTTP. îÁ צÄͦÎÕ ×¦Ä ÔÒÁÄÉæÊÎÉÈ
182 ËÅÛÕÀÞÉÈ ÐÒÏÇÒÁÍ, Squid ÏÂÒÏÂÌѤ ×Ó¦ ÚÁÐÉÔÉ ÚÁ ÄÏÐÏÍÏÇÏÀ ÏÄÎÏÇÏ
183 ÎÅÂÌÏËÕÀÞÏÇÏ, ËÅÒÏ×ÁÎÏÇÏ ××ÏÄÏÍ-×É×ÏÄÏÍ ÐÒÏÃÅÓÕ.
185 ãÅÊ ÐÁËÅÔ ÍÁ¤ ×ÂÕÄÏ×ÁÎÕ Ð¦ÄÔÒÉÍËÕ ÂÁÚÉ ÄÁÎÉÈ ÍÅÒÅÖÅ×ÉÈ ICMP-ÐÒÏÂ
189 Summary: CGI script for Squid management
190 Summary(pl): Skrypt CGI do zarz±dzania Squidem przez WWW
191 Group: Networking/Admin
192 Requires: %{name} = %{epoch}:%{version}-%{release}
195 %description cachemgr
196 Cachemgr.cgi is a CGI script that allows administrator to chceck
197 various informations about Squid via WWW.
199 %description cachemgr -l pl
200 Cachemgr.cgi jest skryptem CGI, który pozwala administratorowi
201 zapoznaæ siê z informacjami o pracy Squida poprzez WWW.
204 Summary: LDAP authentication helper for Squid
205 Summary(pl): Obs³uga uwierzytelniania LDAP dla squida
206 Group: Networking/Admin
207 Requires: %{name} = %{epoch}:%{version}-%{release}
209 %description ldap_auth
210 This Squid helper allows authentication against LDAP directories using
211 the "simple authentication" (plain-text).
213 %description ldap_auth -l pl
214 Pakiet ten pozwala na uwierzytelnianie przez LDAP za pomoc± prostego
215 uwierzytelniania (otwartym tekstem).
218 Summary: PAM authentication helper for Squid
219 Summary(pl): Obs³uga uwierzytelniania PAM dla squida
220 Group: Networking/Admin
221 Requires: %{name} = %{epoch}:%{version}-%{release}
222 Requires: pam >= 0.77.3
224 %description pam_auth
225 This program authenticates users against a PAM configured
226 authentication service "squid". This allows you to authenticate Squid
227 users to any authentication source for which you have a PAM module.
229 %description pam_auth -l pl
230 Program ten pozwala na uwierzytelnianie u¿ytkowników squida w dowolnym
231 ¼ródle posiadaj±cym modu³ PAM.
234 Summary: SMB authentication helper for Squid
235 Summary(pl): Obs³uga uwierzytelniania SMB dla squida
236 Group: Networking/Admin
237 Requires: %{name} = %{epoch}:%{version}-%{release}
239 %description smb_auth
240 This is a proxy authentication module. With smb_auth you can
241 authenticate proxy users against an SMB server like Windows NT or
244 %description smb_auth -l pl
245 To jest modu³ uwierzytelniania proxy. Przy pomocy smb_auth mo¿na
246 uwierzytelniaæ u¿ytkowników proxy na serwerach SMB, jak Windows NT czy
250 Summary: MSNT domain authentication helper for Squid
251 Summary(pl): Obs³uga uwierzytelniania w domenie MSNT dla squida
252 Group: Networking/Admin
253 Requires: %{name} = %{epoch}:%{version}-%{release}
255 %description msnt_auth
256 This is an authentication module for the Squid proxy server to
257 authenticate users on an NT domain.
259 %description msnt_auth -l pl
260 Jest to modu³ uwierzytelniania proxy, który pozwala na
261 uwierzytelnianie u¿ytkowników proxy w domenie NT.
264 Summary: YP authentication helper for Squid
265 Summary(pl): Obs³uga uwierzytelniania YP dla squida
266 Group: Networking/Admin
267 Requires: %{name} = %{epoch}:%{version}-%{release}
270 This is an authentication module for the Squid proxy server to
271 authenticate users on YP.
273 %description yp_auth -l pl
274 Jest to modu³ uwierzytelniania proxy, który pozwala na
275 uwierzytelnianie u¿ytkowników proxy poprzez YP.
278 Summary: NCSA httpd style authentication helper for Squid
279 Summary(pl): Obs³uga uwierzytelniania NCSA httpd dla squida
280 Group: Networking/Admin
281 Requires: %{name} = %{epoch}:%{version}-%{release}
283 %description ncsa_auth
284 This module uses a NCSA httpd style password file for authentication.
286 %description ncsa_auth -l pl
287 Modu³ uwierzytelniania proxy u¿ywaj±cy pliku hase³ jak w NCSA httpd.
290 Summary: SASL authentication helper for Squid
291 Summary(pl): Obs³uga uwierzytelniania SASL dla squida
292 Group: Networking/Admin
293 Requires: %{name} = %{epoch}:%{version}-%{release}
295 %description sasl_auth
296 This is an authentication module for the Squid proxy server to
297 authenticate users via SASL.
299 %description sasl_auth -l pl
300 Jest to modu³ uwierzytelniania proxy, który pozwala na
301 uwierzytelnianie u¿ytkowników proxy poprzez SASL.
303 %package winbind_auth
304 Summary: WINBIND authentication helper for Squid
305 Summary(pl): Obs³uga uwierzytelniania WINBIND dla squida
306 Group: Networking/Admin
307 Requires: %{name} = %{epoch}:%{version}-%{release}
309 %description winbind_auth
310 This is an authentication module for the Squid proxy server to
311 authenticate users via WINBIND.
313 %description winbind_auth -l pl
314 Jest to modu³ uwierzytelniania proxy, który pozwala na
315 uwierzytelnianie u¿ytkowników proxy poprzez WINBIND.
317 %package getpwname_auth
318 Summary: getpwname authentication helper for Squid
319 Summary(pl): Obs³uga uwierzytelniania getpwname dla squida
320 Group: Networking/Admin
321 Requires: %{name} = %{epoch}:%{version}-%{release}
323 %description getpwname_auth
324 This is an authentication module for the Squid proxy server to
325 authenticate users using getpwname.
327 %description getpwname_auth -l pl
328 Jest to modu³ uwierzytelniania proxy, który pozwala na
329 uwierzytelnianie u¿ytkowników proxy poprzez getpwname.
332 Summary: passwd authentication helper for Squid
333 Summary(pl): Obs³uga uwierzytelniania passwd dla squida
334 Group: Networking/Admin
335 Requires: %{name} = %{epoch}:%{version}-%{release}
337 %description passwd_auth
338 This is an authentication module for the Squid proxy server to
339 authenticate users with separate passwd file.
341 %description passwd_auth -l pl
342 Jest to modu³ uwierzytelniania proxy, który pozwala na
343 uwierzytelnianie u¿ytkowników proxy poprzez oddzielny plik passwd.
346 Summary: NTLM authentication helper for Squid
347 Summary(pl): Obs³uga uwierzytelniania NTLM dla squida
348 Group: Networking/Admin
349 Requires: %{name} = %{epoch}:%{version}-%{release}
351 %description ntlm_auth
352 This is an authentication module for the Squid proxy server to
353 authenticate users on NTLM.
355 %description ntlm_auth -l pl
356 Jest to modu³ uwierzytelniania proxy, który pozwala na
357 uwierzytelnianie u¿ytkowników proxy poprzez NTLM.
360 Summary: IP external ACL helper for Squid
361 Summary(pl): Wsparcie kontroli dostêpu przez IP dla squida
362 Group: Networking/Admin
363 Requires: %{name} = %{epoch}:%{version}-%{release}
366 This is an external ACL module for the Squid proxy server to limit
367 acces for users based on IP address.
369 %description ip_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 adresu IP.
374 Summary: LDAP group external ACL helper for Squid
375 Summary(pl): Wsparcie kontroli dostêpu przez grupy LDAP dla squida
376 Group: Networking/Admin
377 Requires: %{name} = %{epoch}:%{version}-%{release}
379 %description ldap_acl
380 This is an external ACL module for the Squid proxy server to limit
381 acces for users based on LDAP group membership.
383 %description ldap_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 LDAP.
389 Summary: UNIX group external ACL helper for Squid
390 Summary(pl): Wsparcie kontroli dostêpu przez grupy UNIX dla squida
391 Group: Networking/Admin
392 Requires: %{name} = %{epoch}:%{version}-%{release}
394 %description unix_acl
395 This is an external ACL module for the Squid proxy server to limit
396 acces for users based on UNIX group membership.
398 %description unix_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 UNIX.
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 wbinfo_acl
410 This is an external ACL module for the Squid proxy server to limit
411 acces for users based on NT domain group membership using wbinfo.
414 %description wbinfo_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 przy u¿yciu wbinfo.
420 Summary: NT domain group external ACL helper for Squid
421 Summary(pl): Wsparcie kontroli dostêpu przez grupy w domenie NT dla squida
422 Group: Networking/Admin
423 Requires: %{name} = %{epoch}:%{version}-%{release}
425 %description winbind_acl
426 This is an external ACL module for the Squid proxy server to limit
427 acces for users based on NT domain group membership based on Samba
428 Winbindd from Samba 2.2.4 or greater.
430 %description winbind_acl -l pl
431 Jest to modu³ kontroli dostêpu (ACL) do proxy, który pozwala na
432 ograniczenie dostêpu u¿ytkowników proxy na podstawie ich
433 przynale¿no¶ci do grup w domenie NT oparty na Samba Winbindd z pakietu
434 Samba 2.2.4 lub wy¿szego.
439 # Bug fixes from Squid home page:
472 %{?with_combined_log:%patch230 -p1}
480 --datadir=%{_datadir}/squid \
481 --disable-ipf-transparent \
484 --enable-basic-auth-helpers=yes \
485 --enable-cache-digests \
487 --enable-delay-pools \
488 --enable-digest-auth-helpers=yes \
489 --enable-err-language=English \
490 --enable-external-acl-helpers=yes \
491 --enable-forw-via-db \
494 --enable-linux-netfilter \
495 --enable-ntlm-auth-helpers=yes \
496 --enable-referer-log \
497 --enable-removal-policies="lru heap" \
500 --enable-storeio="aufs,coss,diskd,null,ufs" \
501 --enable-underscores \
502 --enable-useragent-log \
503 --enable-x-accelerator-vary \
504 --localstatedir=/var \
505 --sysconfdir=%{_sysconfdir} \
511 perl -pi -e 's#%{_prefix}/.*bin/perl#%{_bindir}/perl#g' contrib/*
512 perl -pi -e 's#%{_prefix}/.*bin/perl#%{_bindir}/perl#g' scripts/*
513 find helpers/ -type f | xargs perl -pi -e 's#%{_prefix}/.*bin/perl#%{_bindir}/perl#g'
516 rm -rf $RPM_BUILD_ROOT
517 install -d $RPM_BUILD_ROOT%{_cgidir} \
518 $RPM_BUILD_ROOT/etc/{pam.d,rc.d/init.d,security,sysconfig,logrotate.d} \
519 $RPM_BUILD_ROOT{%{_sbindir},%{_bindir},%{_libexecdir}/contrib} \
520 $RPM_BUILD_ROOT%{_mandir}/man8 \
521 $RPM_BUILD_ROOT%{_datadir}/squid \
522 $RPM_BUILD_ROOT/var/{cache,log{,/archiv}}/squid
525 DESTDIR=$RPM_BUILD_ROOT
527 cp -a contrib/*.pl $RPM_BUILD_ROOT%{_libexecdir}/contrib
528 install scripts/*.pl $RPM_BUILD_ROOT%{_libexecdir}
530 install %{SOURCE7} $RPM_BUILD_ROOT/etc/pam.d/squid
531 touch $RPM_BUILD_ROOT/etc/security/blacklist.squid
533 mv -f $RPM_BUILD_ROOT%{_libdir}/squid/cachemgr.cgi $RPM_BUILD_ROOT%{_cgidir}
535 cd $RPM_BUILD_ROOT/etc/squid
536 cp -f squid.conf{,.default}
537 patch -p0 < %{SOURCE5}
540 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/squid
541 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/squid
542 install %{SOURCE6} $RPM_BUILD_ROOT/etc/logrotate.d/squid
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*
549 # dunno why, but manual is not installed
550 mv doc/squid.8 $RPM_BUILD_ROOT%{_mandir}/man8
552 # We don't want Makefiles as docs...
555 # We don't like message: rpm found unpackaged files ...
556 rm -f $RPM_BUILD_ROOT/etc/squid/msntauth.conf.default \
557 $RPM_BUILD_ROOT/etc/squid/squid.conf.orig
560 rm -rf $RPM_BUILD_ROOT
563 if [ -n "`getgid squid`" ]; then
564 if [ "`getgid squid`" != "91" ]; then
565 echo "Error: group squid doesn't have gid=91. Correct this before installing squid." 1>&2
569 /usr/sbin/groupadd -g 91 -r -f squid 1>&2 || :
571 if [ -n "`id -u squid 2>/dev/null`" ]; then
572 if [ "`id -u squid`" != "91" ]; then
573 echo "Error: user squid doesn't have uid=91. Correct this before installing squid." 1>&2
577 /usr/sbin/useradd -M -o -r -u 91 -s /bin/false \
578 -g squid -c "SQUID http caching daemon" -d /var/cache/squid squid 1>&2 || :
580 [ -L %{_datadir}/squid/errors ] && rm -rf %{_datadir}/squid/errors || :
583 if ! grep -q "^visible_hostname" /etc/squid/squid.conf; then
584 echo visible_hostname `/bin/hostname -f` >> /etc/squid/squid.conf
587 if [ "$1" = "1" ]; then
588 /sbin/chkconfig --add squid
589 echo "Run \"/etc/rc.d/init.d/squid start\" to start squid." >&2
591 if [ -f /var/lock/subsys/squid ]; then
592 /etc/rc.d/init.d/squid restart >&2
597 if [ "$1" = "0" ]; then
598 if [ -f /var/lock/subsys/squid ]; then
599 /etc/rc.d/init.d/squid stop >&2
601 /sbin/chkconfig --del squid
605 if [ "$1" = "0" ]; then
606 /usr/sbin/userdel squid
607 /usr/sbin/groupdel squid
611 %defattr(644,root,root,755)
612 %doc faq CONTRIBUTORS COPYRIGHT CREDITS README ChangeLog QUICKSTART
613 %doc RELEASENOTES.html SPONSORS doc/* src/mib.txt
614 %attr(755,root,root) %{_bindir}/squidclient
615 %attr(755,root,root) %{_libexecdir}/diskd
616 # YES, it has to be suid root, it sends ICMP packets.
617 %attr(4754,root,squid) %{_libexecdir}/pinger
618 %attr(755,root,root) %{_libexecdir}/unlinkd
619 %attr(755,root,root) %{_libexecdir}/fakeauth_auth
620 %attr(755,root,root) %{_sbindir}/*
622 %attr(755,root,root) %dir %{_sysconfdir}
624 %attr(754,root,root) /etc/rc.d/init.d/squid
625 %attr(640,root,root) %config(noreplace) /etc/logrotate.d/squid
626 %attr(640,root,squid) %config(noreplace) /etc/sysconfig/squid
627 %attr(640,root,squid) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/squid.conf
628 %attr(640,root,squid) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mime.conf
629 %attr(640,root,root) %{_sysconfdir}/mime.conf.default
630 %attr(640,root,root) %{_sysconfdir}/squid.conf.default
632 %dir %{_datadir}/squid
633 %dir %{_datadir}/squid/errors
634 %{_datadir}/squid/icons
635 %{_datadir}/squid/mib.txt
636 %lang(bg) %{_datadir}/squid/errors/Bulgarian
637 %lang(ca) %{_datadir}/squid/errors/Catalan
638 %lang(cs) %{_datadir}/squid/errors/Czech
639 %lang(da) %{_datadir}/squid/errors/Danish
640 %lang(nl) %{_datadir}/squid/errors/Dutch
641 %{_datadir}/squid/errors/English
642 %lang(et) %{_datadir}/squid/errors/Estonian
643 %lang(fi) %{_datadir}/squid/errors/Finnish
644 %lang(fr) %{_datadir}/squid/errors/French
645 %lang(de) %{_datadir}/squid/errors/German
646 %lang(he) %{_datadir}/squid/errors/Hebrew
647 %lang(hu) %{_datadir}/squid/errors/Hungarian
648 %lang(it) %{_datadir}/squid/errors/Italian
649 %lang(ja) %{_datadir}/squid/errors/Japanese
650 %lang(ko) %{_datadir}/squid/errors/Korean
651 %lang(lt) %{_datadir}/squid/errors/Lithuanian
652 %lang(pl) %{_datadir}/squid/errors/Polish
653 %lang(pt) %{_datadir}/squid/errors/Portuguese
654 %lang(ro) %{_datadir}/squid/errors/Romanian
655 %lang(ru) %{_datadir}/squid/errors/Russian-1251
656 %lang(ru) %{_datadir}/squid/errors/Russian-koi8-r
657 %lang(zh_CN) %{_datadir}/squid/errors/Simplify_Chinese
658 %lang(sk) %{_datadir}/squid/errors/Slovak
659 %lang(es) %{_datadir}/squid/errors/Spanish
660 %lang(sr) %{_datadir}/squid/errors/Serbian
661 %lang(sv) %{_datadir}/squid/errors/Swedish
662 %lang(zh_TW) %{_datadir}/squid/errors/Traditional_Chinese
663 %lang(tr) %{_datadir}/squid/errors/Turkish
665 %attr(755,root,root) %dir %{_libexecdir}
666 %attr(755,root,root) %{_libexecdir}/*.pl
667 %attr(755,root,root) %{_libexecdir}/contrib
669 %attr(770,root,squid) %dir /var/log/archiv/squid
670 %attr(770,root,squid) %dir /var/log/squid
671 %attr(660,root,squid) %ghost /var/log/squid/*
673 %attr(770,root,squid) %dir /var/cache/squid
674 %{_mandir}/man8/squid.8*
677 %defattr(644,root,root,755)
678 %attr(755,root,root) %{_cgidir}/*
681 %defattr(644,root,root,755)
682 %doc helpers/basic_auth/LDAP/README
683 %attr(755,root,root) %{_libexecdir}/%{name}_ldap_auth
684 %attr(644,root,root) %{_mandir}/man8/%{name}_ldap_auth.*
687 %defattr(644,root,root,755)
688 %doc helpers/basic_auth/PAM/pam_auth.c
689 %config(noreplace) /etc/pam.d/squid
690 %config(noreplace) /etc/security/blacklist.squid
691 %attr(755,root,root) %{_libexecdir}/pam_auth
692 %{_mandir}/man8/pam_auth.8*
695 %defattr(644,root,root,755)
696 %doc helpers/basic_auth/SMB/{README,ChangeLog,smb_auth.sh}
697 %doc helpers/basic_auth/multi-domain-NTLM/*
698 %attr(755,root,root) %{_libexecdir}/smb_auth*
701 %defattr(644,root,root,755)
702 %doc helpers/basic_auth/MSNT/README*
703 %attr(755,root,root) %{_libexecdir}/msnt_auth
704 %attr(640,root,squid) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/msntauth.conf
707 %defattr(644,root,root,755)
708 %attr(755,root,root) %{_libexecdir}/yp_auth
711 %defattr(644,root,root,755)
712 %attr(755,root,root) %{_libexecdir}/ncsa_auth
715 %defattr(644,root,root,755)
716 %doc helpers/basic_auth/SASL/{README,squid_sasl*}
717 %attr(755,root,root) %{_libexecdir}/sasl_auth
720 %defattr(644,root,root,755)
721 %attr(755,root,root) %{_libexecdir}/wb_auth
723 %files getpwname_auth
724 %defattr(644,root,root,755)
725 %attr(755,root,root) %{_libexecdir}/getpwname_auth
728 %defattr(644,root,root,755)
729 %attr(755,root,root) %{_libexecdir}/digest_pw_auth
732 %defattr(644,root,root,755)
733 %doc helpers/ntlm_auth/no_check/{README*,no_check.pl}
734 %attr(755,root,root) %{_libexecdir}/wb_ntlmauth
735 %attr(755,root,root) %{_libexecdir}/ntlm_auth
738 %defattr(644,root,root,755)
739 %doc helpers/external_acl/ip_user/{README,example*}
740 %attr(755,root,root) %{_libexecdir}/ip_user_check
743 %defattr(644,root,root,755)
744 %attr(755,root,root) %{_libexecdir}/squid_ldap_group
745 %attr(644,root,root) %{_mandir}/man8/%{name}_ldap_group.*
748 %defattr(644,root,root,755)
749 %doc helpers/external_acl/unix_group/README
750 %attr(755,root,root) %{_libexecdir}/squid_unix_group
751 %attr(644,root,root) %{_mandir}/man8/%{name}_unix_group.*
754 %defattr(644,root,root,755)
755 %attr(755,root,root) %{_libexecdir}/wbinfo_group.pl
758 %defattr(644,root,root,755)
759 %doc helpers/external_acl/winbind_group/readme.txt
760 %attr(755,root,root) %{_libexecdir}/wb_group