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 # Source0-md5: ed5eb7835d00fdecc7dd7c1837542df2
16 Source1: %{name}-1.1.19-faq.tar.gz
17 # Source1-md5: 77d04ae621d19548797e3a0deb540df6
19 Source3: %{name}.sysconfig
20 Source4: http://cache.is.co.za/%{name}-docs.tar.gz
21 # Source4-md5: 0cfee556bf6394a0bd3c438c89dd2e63
22 Source5: %{name}.conf.patch
23 Source6: %{name}.logrotate
25 # Bug fixes from Squid home page:
26 Patch0: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE3-round_robin_max_size.patch
27 Patch1: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE3-peer_digest_not_found_assertion.patch
28 Patch2: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE3-SENT_PASV.patch
29 Patch3: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE3-ie_refresh.patch
30 Patch4: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE3-reply_body_max_size.patch
31 Patch5: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE3-hostheader.patch
32 Patch6: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE3-tcp_reset_leak.patch
33 Patch7: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE3-ERR_TOO_BIG_Spanish.patch
34 Patch8: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE3-minimum_retry_timeout.patch
35 Patch9: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE3-cachePeerPingsSentsnmp.patch
36 Patch10: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE3-store_check_cachable_stats.patch
37 Patch11: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE3-hostscomments.patch
38 Patch12: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE3-memwarnsbrk.patch
39 Patch13: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE3-header_access_peer.patch
40 Patch14: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE3-neighbor_type_domain.patch
41 Patch15: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE3-carpfactor.patch
42 Patch16: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE3-gcc-3_3.patch
43 Patch17: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE3-aufs-openingfds.patch
44 Patch18: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE3-external_acl_ident.patch
45 Patch19: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE3-icmpRecv.patch
46 Patch20: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE3-rfc_reference.patch
47 Patch21: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE3-log_quote.patch
48 Patch22: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE3-devnull.patch
49 Patch23: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE3-cache_dir_doc.patch
50 Patch24: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE3-deny_info.patch
51 Patch25: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE3-HttpHeaderTools.patch
52 Patch26: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE3-Lithuanian.patch
53 Patch27: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE3-http_reply_access-denied.patch
56 Patch110: http://www.sed.pl/~mrk/qos/squid_hit_miss_mark.patch
57 Patch120: %{name}-fhs.patch
58 Patch130: %{name}-location.patch
59 Patch140: %{name}-domainmatch.patch
60 Patch150: %{name}-libnsl_fixes.patch
61 Patch170: %{name}-ac_fix.patch
62 Patch180: %{name}-crash-on-ENOSPC.patch
63 Patch190: %{name}-newssl.patch
64 Patch200: %{name}-sasl.patch
65 BuildRequires: autoconf
66 BuildRequires: cyrus-sasl-devel >= 2.1.0
67 BuildRequires: openldap-devel
68 BuildRequires: openssl-devel >= 0.9.7a
69 BuildRequires: pam-devel
71 PreReq: rc-scripts >= 0.2.0
72 Requires(pre): /bin/id
73 Requires(pre): /usr/bin/getgid
74 Requires(pre): /usr/sbin/groupadd
75 Requires(pre): /usr/sbin/useradd
76 Requires(post,preun): /sbin/chkconfig
77 Requires(post): fileutils
78 Requires(post): findutils
80 Requires(post): /bin/hostname
81 Requires(postun): /usr/sbin/groupdel
82 Requires(postun): /usr/sbin/userdel
83 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
85 %define _libexecdir %{_libdir}/%{name}
86 %define _sysconfdir /etc/%{name}
89 Squid is a high-performance proxy caching server for web clients,
90 supporting FTP, gopher, and HTTP data objects. Unlike traditional
91 caching software, Squid handles all requests in a single,
92 non-blocking, I/O-driven process. Squid keeps meta data and especially
93 hot objects cached in RAM, caches DNS lookups, supports non-blocking
94 DNS lookups, and implements negative caching of failed requests. If
95 you are tight on memory, check out the NOVM version of this package.
96 Squid supports SSL, extensive access controls, and full request
97 logging. By using the lightweight Internet Cache Protocol, Squid
98 caches can be arranged in a hierarchy or mesh for additional bandwidth
99 savings. Squid consists of a main server program squid, a Domain Name
100 System lookup program dnsserver, a program for retrieving FTP data
101 ftpget, and some management and client tools. When squid starts up, it
102 spawns a configurable number of dnsserver processes, each of which can
103 perform a single, blocking Domain Name System (DNS) lookup. This
104 reduces the amount of time the cache waits for DNS lookups. Squid is
105 derived from the ARPA-funded Harvest project.
108 Squid es un servidor proxy con caché de alto desempeño para clientes
109 web, soportando FTP, gopher y HTTP. Diferentemente de softwares
110 tradicionales de caché squid manipula todas las requisiciones en un
111 único proceso sin bloqueos, direccionado a E/S. Mantienen metadatos y
112 objetos frecuentemente pedidos en uno caché en memoria RAM. Hace caché
113 de resoluciones DNS, soporta resoluciones DNS sin bloqueo y implementa
114 un caché negativo de requisiciones que fallen. Si tiene poca memoria
115 da un vistazo en la versión NOVM de este paquete. También soporta SSL,
116 controles extensivos de acceso y registro (log) completo de las
117 requisiciones. Usando el ligero Protocolo de Caches Internet (ICP)
118 puede ser usado en una jerarquía de servidores para mayor ahorro de la
119 banda de comunicación. Está compuesto del programa squid (servidor
120 principal), del programa dnsserver (para resolución DNS), del programa
121 ftpget (para transmisiones ftp) y otras herramientas clientes y para
122 administración. Cuando squid se inicia, dispara un número configurable
123 de procesos dnsserver, cada uno pudiendo ejecutar solamente una
124 resolución DNS con poder de bloquear. Esto reduce el tiempo que el
125 caché espera por resoluciones DNS. Fue derivado del proyecto Harvest,
126 financiado por la ARPA.
129 Squid jest wysoce wydajnym serwerem proxy-cache dla przegl±darek WWW,
130 klientów FTP i gopher. Squid przechowuje najczê¶ciej pobierane dane w
131 pamiêci RAM i zapamiêtuje odwo³ania do DNS. Squid oferuje wsparcie dla
132 SSL, rozbudowan± kontrolê dostêpu oraz pe³ne rejestrowanie pobieranych
133 danych. Dziêki u¿yciu protoko³u ICP (Internet Cache Protocol), serwer
134 squid mo¿na ³±czyæ w hierarchiê, zwiêkszaj±c ich efektywno¶æ. Pakiet
135 squid obejmuje: g³ówny program serwera squid, program dostarczaj±cy
136 informacji z DNS dnsserver, program odbieraj±cy dane FTP ftpget, oraz
137 pomocnicze programy do zarz±dzania. Squid wywodzi siê ze
138 sponsorowanego przez ARPA projektu Harvest.
140 %description -l pt_BR
141 O Squid é um servidor proxy com cache de alta performance para
142 clientes web, suportando FTP, gopher e HTTP. Diferentemente de
143 softwares tradicionais de cache o squid manipula todas as requisições
144 em um único processo sem bloqueios, direcionado a E/S.
146 Mantém meta dados e objetos freqüentemente pedidos num cache em
147 memória RAM. Faz cache de resoluções DNS, suporta resoluções DNS sem
148 bloqueio e implementa um cache negativo de requisições que falharem.
149 Se você tem pouca memória dê uma olhada na versão NOVM deste pacote.
151 Também suporta SSL, controles extensivos de acesso e registro (log)
152 completo das requisições. Usando o leve Protocolo de Caches Internet
153 (ICP) ele pode ser usado em uma hierarquia de servidores para maior
154 economia de banda de comunicação.
156 Ele consiste do programa squid (servidor principal), do programa
157 dnsserver (para resolução DNS), do programa ftpget (para transmissões
158 ftp) e outras ferramentas clientes e para gerenciamento. Quando o
159 squid é inicializado ele dispara um número configurável de processos
160 dnsserver, cada um podendo executar somente uma resolução DNS
161 bloqueante. Isto reduz o tempo que o cache espera por resoluções DNS.
163 Foi derivado do projeto Harvest, financiado pela ARPA.
166 Squid - ÜÔÏ ×ÙÓÏËÏÐÒÏÉÚ×ÏÄÉÔÅÌØÎÙÊ ËÜÛÉÒÕÀÝÉÊ ÐÒÏËÓÉ-ÓÅÒ×ÅÒ ÄÌÑ
167 ËÌÉÅÎÔÏ× web, ÐÏÄÄÅÒÖÉ×ÁÀÝÉÊ ÏÂßÅËÔÙ ÄÁÎÎÙÈ ÔÉÐÁ FTP, gopher É HTTP. ÷
168 ÏÔÌÉÞÉÅ ÏÔ ÔÒÁÄÉÃÉÏÎÎÙÈ ËÜÛÉÒÕÀÝÉÈ ÐÒÏÇÒÁÍÍ, Squid ÏÂÒÁÂÁÔÙ×ÁÅÔ ×ÓÅ
169 ÚÁÐÒÏÓÙ ÐÒÉ ÐÏÍÏÝÉ ÏÄÎÏÇÏ ÎÅÂÌÏËÉÒÕÀÝÅÇÏÓÑ, ÕÐÒÁ×ÌÑÅÍÏÇÏ
170 ××ÏÄÏÍ-×Ù×ÏÄÏÍ ÐÒÏÃÅÓÓÁ.
172 üÔÏÔ ÐÁËÅÔ ÉÍÅÅÔ ×ÓÔÒÏÅÎÎÕÀ ÐÏÄÄÅÒÖËÕ ÂÁÚÙ ÄÁÎÎÙÈ ÓÅÔÅ×ÙÈ ICMP-ÐÒÏÂ
176 Squid - ÃÅ ËÅÛÕÀÞÉÊ ÐÒÏËÓ¦-ÓÅÒ×ÅÒ ÄÌÑ web-Ë̦¤ÎÔ¦×, ÝÏ Ð¦ÄÔÒÉÍÕ¤
177 ÏÂ'¤ËÔÉ ÄÁÎÉÈ ÔÉÐÕ FTP, gopher ÔÁ HTTP. îÁ צÄͦÎÕ ×¦Ä ÔÒÁÄÉæÊÎÉÈ
178 ËÅÛÕÀÞÉÈ ÐÒÏÇÒÁÍ, Squid ÏÂÒÏÂÌѤ ×Ó¦ ÚÁÐÉÔÉ ÚÁ ÄÏÐÏÍÏÇÏÀ ÏÄÎÏÇÏ
179 ÎÅÂÌÏËÕÀÞÏÇÏ, ËÅÒÏ×ÁÎÏÇÏ ××ÏÄÏÍ-×É×ÏÄÏÍ ÐÒÏÃÅÓÕ.
181 ãÅÊ ÐÁËÅÔ ÍÁ¤ ×ÂÕÄÏ×ÁÎÕ Ð¦ÄÔÒÉÍËÕ ÂÁÚÉ ÄÁÎÉÈ ÍÅÒÅÖÅ×ÉÈ ICMP-ÐÒÏÂ
185 Summary: CGI script for Squid management
186 Summary(pl): Skrypt CGI do zarz±dzania Squidem przez WWW
187 Group: Networking/Admin
188 Requires: %{name} = %{epoch}:%{version}
191 %description cachemgr
192 Cachemgr.cgi is a CGI script that allows administrator to chceck
193 various informations about Squid via WWW.
195 %description cachemgr -l pl
196 Cachemgr.cgi jest skryptem CGI, który pozwala administratorowi
197 zapoznaæ siê z informacjami o pracy Squida poprzez WWW.
200 Summary: LDAP authentication helper for Squid
201 Summary(pl): Wsparcie autentykacji LDAP dla squida
202 Group: Networking/Admin
205 %description ldap_auth
206 This Squid helper allows authentication against LDAP directories using
207 the "simple authentication" (plain-text).
209 %description ldap_auth -l pl
210 Pakiet ten pozwala na autentykacjê LDAP za pomoc± prostej autentykacji
214 Summary: PAM authentication helper for Squid
215 Summary(pl): Wsparcie autentykacji PAM dla squida
216 Group: Networking/Admin
219 %description pam_auth
220 This program authenticates users against a PAM configured
221 authentication service "squid". This allows you to authenticate Squid
222 users to any authentication source for which you have a PAM module.
224 %description pam_auth -l pl
225 Program ten pozwala na autentykacjê u¿ytkowników squida w dowolnym
226 ¼ródle posiadaj±cym modu³ PAM.
229 Summary: SMB authentication helper for Squid
230 Summary(pl): Wsparcie autentykacji SMB dla squida
231 Group: Networking/Admin
234 %description smb_auth
235 This is a proxy authentication module. With smb_auth you can
236 authenticate proxy users against an SMB server like Windows NT or
239 %description smb_auth -l pl
240 To jest modu³ autentykacji proxy. Z smb_auth mo¿esz autentyfikowaæ
241 u¿ytkowników proxy na serwerach SMB, jak Windows NT czy Samba.
244 Summary: MSNT domain authentication helper for Squid
245 Summary(pl): Wsparcie autentykacji domen MSNT dla squida
246 Group: Networking/Admin
249 %description msnt_auth
250 This is an authentication module for the Squid proxy server to
251 authenticate users on an NT domain.
253 %description msnt_auth -l pl
254 Jest to modu³ autentykacji proxy, który pozwala na autentyfikowanie
255 u¿ytkowników proxy w domenie NT.
258 Summary: YP authentication helper for Squid
259 Summary(pl): Wsparcie autentykacji YP dla squida
260 Group: Networking/Admin
264 This is an authentication module for the Squid proxy server to
265 authenticate users on YP.
267 %description yp_auth -l pl
268 Jest to modu³ autentykacji proxy, który pozwala na autentyfikowanie
269 u¿ytkowników proxy poprzez YP.
272 Summary: NCSA httpd style authentication helper for Squid
273 Summary(pl): Wsparcie autentykacji NCSA httpd dla squida
274 Group: Networking/Admin
277 %description ncsa_auth
278 This module uses a NCSA httpd style password file for authentication.
280 %description ncsa_auth -l pl
281 Modu³ autentykacji proxy u¿ywaj±cy pliku hase³ jak w NCSA httpd.
284 Summary: SASL authentication helper for Squid
285 Summary(pl): Wsparcie autentykacji SASL dla squida
286 Group: Networking/Admin
289 %description sasl_auth
290 This is an authentication module for the Squid proxy server to
291 authenticate users via SASL.
293 %description sasl_auth -l pl
294 Jest to modu³ autentykacji proxy, który pozwala na autentyfikowanie
295 u¿ytkowników proxy poprzez SASL.
297 %package winbind_auth
298 Summary: WINBIND authentication helper for Squid
299 Summary(pl): Wsparcie autentykacji WINBIND dla squida
300 Group: Networking/Admin
303 %description winbind_auth
304 This is an authentication module for the Squid proxy server to
305 authenticate users via WINBIND.
307 %description winbind_auth -l pl
308 Jest to modu³ autentykacji proxy, który pozwala na autentyfikowanie
309 u¿ytkowników proxy poprzez WINBIND.
311 %package getpwname_auth
312 Summary: getpwname authentication helper for Squid
313 Summary(pl): Wsparcie autentykacji getpwname dla squida
314 Group: Networking/Admin
317 %description getpwname_auth
318 This is an authentication module for the Squid proxy server to
319 authenticate users using getpwname.
321 %description getpwname_auth -l pl
322 Jest to modu³ autentykacji proxy, który pozwala na autentyfikowanie
323 u¿ytkowników proxy poprzez getpwname.
326 Summary: passwd authentication helper for Squid
327 Summary(pl): Wsparcie autentykacji passwd dla squida
328 Group: Networking/Admin
331 %description passwd_auth
332 This is an authentication module for the Squid proxy server to
333 authenticate users with separate passwd file.
335 %description passwd_auth -l pl
336 Jest to modu³ autentykacji proxy, który pozwala na autentyfikowanie
337 u¿ytkowników proxy poprzez oddzielny plik passwd.
340 Summary: NTLM authentication helper for Squid
341 Summary(pl): Wsparcie autentykacji NTLM dla squida
342 Group: Networking/Admin
345 %description ntlm_auth
346 This is an authentication module for the Squid proxy server to
347 authenticate users on NTLM.
349 %description ntlm_auth -l pl
350 Jest to modu³ autentykacji proxy, który pozwala na autentyfikowanie
351 u¿ytkowników proxy poprzez NTLM.
354 Summary: IP external ACL helper for Squid
355 Summary(pl): Wsparcie kontroli dostêpu przez IP dla squida
356 Group: Networking/Admin
360 This is an external ACL module for the Squid proxy server to
361 limit acces for users based on IP address.
363 %description ip_acl -l pl
364 Jest to modu³ kontroli dostêpu (ACL) do proxy, który pozwala na
365 ograniczenie dostêpu u¿ytkowników proxy na podstawie ich adresu IP.
368 Summary: LDAP group external ACL helper for Squid
369 Summary(pl): Wsparcie kontroli dostêpu przez grupy LDAP dla squida
370 Group: Networking/Admin
373 %description ldap_acl
374 This is an external ACL module for the Squid proxy server to
375 limit acces for users based on LDAP group membership.
377 %description ldap_acl -l pl
378 Jest to modu³ kontroli dostêpu (ACL) do proxy, który pozwala na
379 ograniczenie dostêpu u¿ytkowników proxy na podstawie ich
380 przynale¿no¶ci do grup LDAP.
383 Summary: UNIX group external ACL helper for Squid
384 Summary(pl): Wsparcie kontroli dostêpu przez grupy UNIX dla squida
385 Group: Networking/Admin
388 %description unix_acl
389 This is an external ACL module for the Squid proxy server to
390 limit acces for users based on UNIX group membership.
392 %description unix_acl -l pl
393 Jest to modu³ kontroli dostêpu (ACL) do proxy, który pozwala na
394 ograniczenie dostêpu u¿ytkowników proxy na podstawie ich
395 przynale¿no¶ci do grup UNIX.
398 Summary: NT domain group external ACL helper for Squid
399 Summary(pl): Wsparcie kontroli dostêpu przez grupy w domenie NT dla squida
400 Group: Networking/Admin
403 %description wbinfo_acl
404 This is an external ACL module for the Squid proxy server to
405 limit acces for users based on NT domain group membership using wbinfo.
408 %description wbinfo_acl -l pl
409 Jest to modu³ kontroli dostêpu (ACL) do proxy, który pozwala na
410 ograniczenie dostêpu u¿ytkowników proxy na podstawie ich
411 przynale¿no¶ci do grup w domenie NT przy u¿yciu wbinfo.
414 Summary: NT domain group external ACL helper for Squid
415 Summary(pl): Wsparcie kontroli dostêpu przez grupy w domenie NT dla squida
416 Group: Networking/Admin
419 %description winbind_acl
420 This is an external ACL module for the Squid proxy server to
421 limit acces for users based on NT domain group membership
422 based on Samba Winbindd from Samba 2.2.4 or greater.
424 %description winbind_acl -l pl
425 Jest to modu³ kontroli dostêpu (ACL) do proxy, który pozwala na
426 ograniczenie dostêpu u¿ytkowników proxy na podstawie ich
427 przynale¿no¶ci do grup w domenie NT oparty na Samba Winbindd
428 z pakietu Samba 2.2.4 lub wy¿szego.
433 # Bug fixes from Squid home page:
478 --localstatedir=/var \
479 --sysconfdir=%{_sysconfdir} \
480 --datadir=%{_datadir}/squid \
482 --enable-useragent-log \
485 --enable-err-language=English \
489 --enable-forw-via-db \
490 --enable-cache-digests \
491 --enable-storeio="aufs,coss,diskd,null,ufs" \
492 --enable-removal-policies="lru heap" \
493 --disable-ipf-transparent \
494 --enable-delay-pools \
497 --enable-basic-auth-helpers=yes \
498 --enable-ntlm-auth-helpers=yes \
499 --enable-digest-auth-helpers=yes \
500 --enable-external-acl-helpers=yes \
501 --enable-x-accelerator-vary \
502 --enable-linux-netfilter
507 perl -pi -e 's#/usr/.*bin/perl#/usr/bin/perl#g' contrib/*
508 perl -pi -e 's#/usr/.*bin/perl#/usr/bin/perl#g' scripts/*
509 find helpers/ -type f | xargs perl -pi -e 's#/usr/.*bin/perl#/usr/bin/perl#g'
512 rm -rf $RPM_BUILD_ROOT
514 $RPM_BUILD_ROOT/home/services/httpd/cgi-bin \
515 $RPM_BUILD_ROOT/etc/{pam.d,rc.d/init.d,security,sysconfig,logrotate.d} \
516 $RPM_BUILD_ROOT{%{_sbindir},%{_bindir},%{_libexecdir}/contrib} \
517 $RPM_BUILD_ROOT%{_mandir}/{man1,man8} \
518 $RPM_BUILD_ROOT%{_datadir}/squid \
519 $RPM_BUILD_ROOT/var/{cache,log{,/archiv}}/squid
522 DESTDIR=$RPM_BUILD_ROOT
524 cp -a contrib/*.pl $RPM_BUILD_ROOT%{_libexecdir}/contrib
526 install %{SOURCE7} $RPM_BUILD_ROOT/etc/pam.d/squid
527 touch $RPM_BUILD_ROOT/etc/security/blacklist.squid
529 mv -f $RPM_BUILD_ROOT%{_libdir}/squid/cachemgr.cgi $RPM_BUILD_ROOT/home/services/httpd/cgi-bin
531 cd $RPM_BUILD_ROOT/etc/squid
532 cp -f squid.conf{,.default}
533 patch -p0 < %{SOURCE5}
536 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/squid
537 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/squid
538 install %{SOURCE6} $RPM_BUILD_ROOT/etc/logrotate.d/squid
540 install scripts/*.pl $RPM_BUILD_ROOT%{_libexecdir}
542 touch $RPM_BUILD_ROOT/var/log/squid/{access,cache,store}.log
544 # These two files start squid. They are replaced by /etc/rc.d/init.d script.
545 rm -f $RPM_BUILD_ROOT%{_bindir}/R*
548 rm -rf $RPM_BUILD_ROOT
551 if [ -n "`getgid squid`" ]; then
552 if [ "`getgid squid`" != "91" ]; then
553 echo "Error: group squid doesn't have gid=91. Correct this before installing squid." 1>&2
557 /usr/sbin/groupadd -g 91 -r -f squid 1>&2 || :
559 if [ -n "`id -u squid 2>/dev/null`" ]; then
560 if [ "`id -u squid`" != "91" ]; then
561 echo "Error: user squid doesn't have uid=91. Correct this before installing squid." 1>&2
565 /usr/sbin/useradd -M -o -r -u 91 -s /bin/false \
566 -g squid -c "SQUID http caching daemon" -d /var/cache/squid squid 1>&2 || :
568 [ -L %{_datadir}/squid/errors ] && rm -rf %{_datadir}/squid/errors || :
571 if ! grep -q "^visible_hostname" /etc/squid/squid.conf; then
572 echo visible_hostname `/bin/hostname -f` >> /etc/squid/squid.conf
575 if [ "$1" = "1" ]; then
576 /sbin/chkconfig --add squid
577 echo "Run \"/etc/rc.d/init.d/squid start\" to start squid." >&2
579 if [ -f /var/lock/subsys/squid ]; then
580 /etc/rc.d/init.d/squid restart >&2
585 if [ "$1" = "0" ]; then
586 if [ -f /var/lock/subsys/squid ]; then
587 /etc/rc.d/init.d/squid stop >&2
589 /sbin/chkconfig --del squid
593 if [ "$1" = "0" ]; then
594 /usr/sbin/userdel squid
595 /usr/sbin/groupdel squid
599 %defattr(644,root,root,755)
600 %doc faq CONTRIBUTORS COPYRIGHT CREDITS README ChangeLog QUICKSTART
601 %doc RELEASENOTES.html SPONSORS doc/*
602 %attr(755,root,root) %{_bindir}/squidclient
603 %attr(755,root,root) %{_libexecdir}/diskd
604 # YES, it has to be suid root, it sends ICMP packets.
605 %attr(4754,root,squid) %{_libexecdir}/pinger
606 %attr(755,root,root) %{_libexecdir}/unlinkd
607 %attr(755,root,root) %{_sbindir}/*
609 %attr(755,root,root) %dir %{_sysconfdir}
611 %attr(754,root,root) /etc/rc.d/init.d/squid
612 %attr(640,root,root) %config(noreplace) /etc/logrotate.d/squid
613 %attr(640,root,squid) %config(noreplace) /etc/sysconfig/squid
614 %attr(640,root,squid) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/squid.conf
615 %attr(640,root,squid) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mime.conf
616 %attr(640,root,root) %{_sysconfdir}/mime.conf.default
617 %attr(640,root,root) %{_sysconfdir}/squid.conf.default
619 %dir %{_datadir}/squid
620 %dir %{_datadir}/squid/errors
621 %{_datadir}/squid/icons
622 %{_datadir}/squid/mib.txt
623 %lang(bg) %{_datadir}/squid/errors/Bulgarian
624 %lang(ca) %{_datadir}/squid/errors/Catalan
625 %lang(cs) %{_datadir}/squid/errors/Czech
626 %lang(da) %{_datadir}/squid/errors/Danish
627 %lang(nl) %{_datadir}/squid/errors/Dutch
628 %{_datadir}/squid/errors/English
629 %lang(et) %{_datadir}/squid/errors/Estonian
630 %lang(fi) %{_datadir}/squid/errors/Finnish
631 %lang(fr) %{_datadir}/squid/errors/French
632 %lang(de) %{_datadir}/squid/errors/German
633 %lang(he) %{_datadir}/squid/errors/Hebrew
634 %lang(hu) %{_datadir}/squid/errors/Hungarian
635 %lang(it) %{_datadir}/squid/errors/Italian
636 %lang(ja) %{_datadir}/squid/errors/Japanese
637 %lang(ko) %{_datadir}/squid/errors/Korean
638 %lang(lt) %{_datadir}/squid/errors/Lithuanian
639 %lang(pl) %{_datadir}/squid/errors/Polish
640 %lang(pt) %{_datadir}/squid/errors/Portuguese
641 %lang(ro) %{_datadir}/squid/errors/Romanian
642 %lang(ru) %{_datadir}/squid/errors/Russian-1251
643 %lang(ru) %{_datadir}/squid/errors/Russian-koi8-r
644 %lang(zh) %{_datadir}/squid/errors/Simplify_Chinese
645 %lang(sk) %{_datadir}/squid/errors/Slovak
646 %lang(es) %{_datadir}/squid/errors/Spanish
647 %lang(sr) %{_datadir}/squid/errors/Serbian
648 %lang(sv) %{_datadir}/squid/errors/Swedish
649 %lang(zh) %{_datadir}/squid/errors/Traditional_Chinese
650 %lang(tr) %{_datadir}/squid/errors/Turkish
652 %attr(755,root,root) %dir %{_libexecdir}
653 %attr(755,root,root) %{_libexecdir}/*.pl
654 %attr(755,root,root) %{_libexecdir}/contrib
656 %attr(770,root,squid) %dir /var/log/archiv/squid
657 %attr(770,root,squid) %dir /var/log/squid
658 %attr(660,root,squid) %ghost /var/log/squid/*
660 %attr(770,root,squid) %dir /var/cache/squid
663 %defattr(644,root,root,755)
664 %attr(755,root,root) /home/services/httpd/cgi-bin/*
667 %defattr(644,root,root,755)
668 %doc helpers/basic_auth/LDAP/README
669 %attr(755,root,root) %{_libexecdir}/%{name}_ldap_auth
670 %attr(644,root,root) %{_mandir}/man8/%{name}_ldap_auth.*
673 %defattr(644,root,root,755)
674 %doc helpers/basic_auth/PAM/pam_auth.c
675 %config(noreplace) /etc/pam.d/squid
676 %config(noreplace) /etc/security/blacklist.squid
677 %attr(755,root,root) %{_libexecdir}/pam_auth
680 %defattr(644,root,root,755)
681 %doc helpers/basic_auth/SMB/{README,ChangeLog,smb_auth.sh}
682 %doc helpers/basic_auth/multi-domain-NTLM/*
683 %attr(755,root,root) %{_libexecdir}/smb_auth*
686 %defattr(644,root,root,755)
687 %doc helpers/basic_auth/MSNT/README*
688 %attr(755,root,root) %{_libexecdir}/msnt_auth
689 %attr(640,root,squid) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/msntauth.conf
692 %defattr(644,root,root,755)
693 %attr(755,root,root) %{_libexecdir}/yp_auth
696 %defattr(644,root,root,755)
697 %attr(755,root,root) %{_libexecdir}/ncsa_auth
700 %defattr(644,root,root,755)
701 %doc helpers/basic_auth/SASL/{README,squid_sasl*}
702 %attr(755,root,root) %{_libexecdir}/sasl_auth
705 %defattr(644,root,root,755)
706 %attr(755,root,root) %{_libexecdir}/wb_auth
708 %files getpwname_auth
709 %defattr(644,root,root,755)
710 %attr(755,root,root) %{_libexecdir}/getpwname_auth
713 %defattr(644,root,root,755)
714 %attr(755,root,root) %{_libexecdir}/digest_pw_auth
717 %defattr(644,root,root,755)
718 %doc helpers/ntlm_auth/no_check/{README*,no_check.pl}
719 %attr(755,root,root) %{_libexecdir}/wb_ntlmauth
720 %attr(755,root,root) %{_libexecdir}/ntlm_auth
723 %defattr(644,root,root,755)
724 %doc helpers/external_acl/ip_user/{README,example*}
725 %attr(755,root,root) %{_libexecdir}/ip_user_check
728 %defattr(644,root,root,755)
729 %attr(755,root,root) %{_libexecdir}/squid_ldap_group
730 %attr(644,root,root) %{_mandir}/man8/%{name}_ldap_group.*
733 %defattr(644,root,root,755)
734 %doc helpers/external_acl/unix_group/README
735 %attr(755,root,root) %{_libexecdir}/squid_unix_group
736 %attr(644,root,root) %{_mandir}/man8/%{name}_unix_group.*
739 %defattr(644,root,root,755)
740 %attr(755,root,root) %{_libexecdir}/wbinfo_group.pl
743 %defattr(644,root,root,755)
744 %doc helpers/external_acl/winbind_group/readme.txt
745 %attr(755,root,root) %{_libexecdir}/wb_group