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: 7354255015b3772a1e024dfac173e48c
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
32 Patch0: http://www.squid-cache.org/Versions/v2/2.5/bugs/%{name}-2.5.STABLE12-setenv.patch
33 Patch1: http://www.squid-cache.org/Versions/v2/2.5/bugs/%{name}-2.5.STABLE12-SMB_BadFetch.patch
34 Patch2: http://www.squid-cache.org/Versions/v2/2.5/bugs/%{name}-2.5.STABLE12-wbinfo_group.patch
35 Patch3: http://www.squid-cache.org/Versions/v2/2.5/bugs/%{name}-2.5.STABLE12-asyncio_counters.patch
37 Patch100: http://www.sed.pl/~mrk/qos/%{name}_hit_miss_mark.patch
38 Patch101: %{name}-fhs.patch
39 Patch102: %{name}-location.patch
40 Patch103: %{name}-domainmatch.patch
41 Patch104: %{name}-libnsl_fixes.patch
42 Patch105: %{name}-ac_fix.patch
43 Patch106: %{name}-crash-on-ENOSPC.patch
44 Patch107: %{name}-newssl.patch
45 Patch108: %{name}-nolibs.patch
46 Patch109: http://piorun.ds.pg.gda.pl/~blues/patches/%{name}-more_FD-new.patch
47 Patch110: %{name}-empty-referer.patch
48 Patch111: %{name}-align.patch
49 Patch112: %{name}-2.5.STABLE4-apache-like-combined-log.patch
50 Patch113: %{name}-auth_on_acceleration.patch
51 URL: http://www.squid-cache.org/
52 BuildRequires: autoconf
53 BuildRequires: automake
54 BuildRequires: cyrus-sasl-devel >= 2.1.0
55 BuildRequires: openldap-devel
56 BuildRequires: openssl-devel >= 0.9.7d
57 BuildRequires: pam-devel
58 BuildRequires: perl-base
59 BuildRequires: rpmbuild(macros) >= 1.202
60 BuildRequires: sed >= 4.0
62 Requires(post): /bin/hostname
63 Requires(post): fileutils
64 Requires(post): findutils
66 Requires(post,preun): /sbin/chkconfig
67 Requires(postun): /usr/sbin/groupdel
68 Requires(postun): /usr/sbin/userdel
69 Requires(pre): /bin/id
70 Requires(pre): /usr/bin/getgid
71 Requires(pre): /usr/lib/rpm/user_group.sh
72 Requires(pre): /usr/sbin/groupadd
73 Requires(pre): /usr/sbin/useradd
74 Requires: rc-scripts >= 0.2.0
75 Requires: setup >= 2.4.6
76 Provides: group(squid)
78 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
80 %define _libexecdir %{_libdir}/%{name}
81 %define _sysconfdir /etc/%{name}
82 %define _cgidir /home/services/httpd/cgi-bin
85 Squid is a high-performance proxy caching server for web clients,
86 supporting FTP, gopher, and HTTP data objects. Unlike traditional
87 caching software, Squid handles all requests in a single,
88 non-blocking, I/O-driven process. Squid keeps meta data and especially
89 hot objects cached in RAM, caches DNS lookups, supports non-blocking
90 DNS lookups, and implements negative caching of failed requests. If
91 you are tight on memory, check out the NOVM version of this package.
92 Squid supports SSL, extensive access controls, and full request
93 logging. By using the lightweight Internet Cache Protocol, Squid
94 caches can be arranged in a hierarchy or mesh for additional bandwidth
95 savings. Squid consists of a main server program squid, a Domain Name
96 System lookup program dnsserver, a program for retrieving FTP data
97 ftpget, and some management and client tools. When squid starts up, it
98 spawns a configurable number of dnsserver processes, each of which can
99 perform a single, blocking Domain Name System (DNS) lookup. This
100 reduces the amount of time the cache waits for DNS lookups. Squid is
101 derived from the ARPA-funded Harvest project.
104 Squid es un servidor proxy con caché de alto desempeño para clientes
105 web, soportando FTP, gopher y HTTP. Diferentemente de softwares
106 tradicionales de caché squid manipula todas las requisiciones en un
107 único proceso sin bloqueos, direccionado a E/S. Mantienen metadatos y
108 objetos frecuentemente pedidos en uno caché en memoria RAM. Hace caché
109 de resoluciones DNS, soporta resoluciones DNS sin bloqueo y implementa
110 un caché negativo de requisiciones que fallen. Si tiene poca memoria
111 da un vistazo en la versión NOVM de este paquete. También soporta SSL,
112 controles extensivos de acceso y registro (log) completo de las
113 requisiciones. Usando el ligero Protocolo de Caches Internet (ICP)
114 puede ser usado en una jerarquía de servidores para mayor ahorro de la
115 banda de comunicación. Está compuesto del programa squid (servidor
116 principal), del programa dnsserver (para resolución DNS), del programa
117 ftpget (para transmisiones ftp) y otras herramientas clientes y para
118 administración. Cuando squid se inicia, dispara un número configurable
119 de procesos dnsserver, cada uno pudiendo ejecutar solamente una
120 resolución DNS con poder de bloquear. Esto reduce el tiempo que el
121 caché espera por resoluciones DNS. Fue derivado del proyecto Harvest,
122 financiado por la ARPA.
125 Squid jest wysoce wydajnym serwerem proxy-cache dla przegl±darek WWW,
126 klientów FTP i gopher. Squid przechowuje najczê¶ciej pobierane dane w
127 pamiêci RAM i zapamiêtuje odwo³ania do DNS. Squid oferuje wsparcie dla
128 SSL, rozbudowan± kontrolê dostêpu oraz pe³ne rejestrowanie pobieranych
129 danych. Dziêki u¿yciu protoko³u ICP (Internet Cache Protocol), serwer
130 squid mo¿na ³±czyæ w hierarchiê, zwiêkszaj±c ich efektywno¶æ. Pakiet
131 squid obejmuje: g³ówny program serwera squid, program dostarczaj±cy
132 informacji z DNS dnsserver, program odbieraj±cy dane FTP ftpget, oraz
133 pomocnicze programy do zarz±dzania. Squid wywodzi siê ze
134 sponsorowanego przez ARPA projektu Harvest.
136 %description -l pt_BR
137 O Squid é um servidor proxy com cache de alta performance para
138 clientes web, suportando FTP, gopher e HTTP. Diferentemente de
139 softwares tradicionais de cache o squid manipula todas as requisições
140 em um único processo sem bloqueios, direcionado a E/S.
142 Mantém meta dados e objetos freqüentemente pedidos num cache em
143 memória RAM. Faz cache de resoluções DNS, suporta resoluções DNS sem
144 bloqueio e implementa um cache negativo de requisições que falharem.
145 Se você tem pouca memória dê uma olhada na versão NOVM deste pacote.
147 Também suporta SSL, controles extensivos de acesso e registro (log)
148 completo das requisições. Usando o leve Protocolo de Caches Internet
149 (ICP) ele pode ser usado em uma hierarquia de servidores para maior
150 economia de banda de comunicação.
152 Ele consiste do programa squid (servidor principal), do programa
153 dnsserver (para resolução DNS), do programa ftpget (para transmissões
154 ftp) e outras ferramentas clientes e para gerenciamento. Quando o
155 squid é inicializado ele dispara um número configurável de processos
156 dnsserver, cada um podendo executar somente uma resolução DNS
157 bloqueante. Isto reduz o tempo que o cache espera por resoluções DNS.
159 Foi derivado do projeto Harvest, financiado pela ARPA.
162 Squid - ÜÔÏ ×ÙÓÏËÏÐÒÏÉÚ×ÏÄÉÔÅÌØÎÙÊ ËÜÛÉÒÕÀÝÉÊ ÐÒÏËÓÉ-ÓÅÒ×ÅÒ ÄÌÑ
163 ËÌÉÅÎÔÏ× web, ÐÏÄÄÅÒÖÉ×ÁÀÝÉÊ ÏÂßÅËÔÙ ÄÁÎÎÙÈ ÔÉÐÁ FTP, gopher É HTTP. ÷
164 ÏÔÌÉÞÉÅ ÏÔ ÔÒÁÄÉÃÉÏÎÎÙÈ ËÜÛÉÒÕÀÝÉÈ ÐÒÏÇÒÁÍÍ, Squid ÏÂÒÁÂÁÔÙ×ÁÅÔ ×ÓÅ
165 ÚÁÐÒÏÓÙ ÐÒÉ ÐÏÍÏÝÉ ÏÄÎÏÇÏ ÎÅÂÌÏËÉÒÕÀÝÅÇÏÓÑ, ÕÐÒÁ×ÌÑÅÍÏÇÏ
166 ××ÏÄÏÍ-×Ù×ÏÄÏÍ ÐÒÏÃÅÓÓÁ.
168 üÔÏÔ ÐÁËÅÔ ÉÍÅÅÔ ×ÓÔÒÏÅÎÎÕÀ ÐÏÄÄÅÒÖËÕ ÂÁÚÙ ÄÁÎÎÙÈ ÓÅÔÅ×ÙÈ ICMP-ÐÒÏÂ
172 Squid - ÃÅ ËÅÛÕÀÞÉÊ ÐÒÏËÓ¦-ÓÅÒ×ÅÒ ÄÌÑ web-Ë̦¤ÎÔ¦×, ÝÏ Ð¦ÄÔÒÉÍÕ¤
173 ÏÂ'¤ËÔÉ ÄÁÎÉÈ ÔÉÐÕ FTP, gopher ÔÁ HTTP. îÁ צÄͦÎÕ ×¦Ä ÔÒÁÄÉæÊÎÉÈ
174 ËÅÛÕÀÞÉÈ ÐÒÏÇÒÁÍ, Squid ÏÂÒÏÂÌѤ ×Ó¦ ÚÁÐÉÔÉ ÚÁ ÄÏÐÏÍÏÇÏÀ ÏÄÎÏÇÏ
175 ÎÅÂÌÏËÕÀÞÏÇÏ, ËÅÒÏ×ÁÎÏÇÏ ××ÏÄÏÍ-×É×ÏÄÏÍ ÐÒÏÃÅÓÕ.
177 ãÅÊ ÐÁËÅÔ ÍÁ¤ ×ÂÕÄÏ×ÁÎÕ Ð¦ÄÔÒÉÍËÕ ÂÁÚÉ ÄÁÎÉÈ ÍÅÒÅÖÅ×ÉÈ ICMP-ÐÒÏÂ
181 Summary: CGI script for Squid management
182 Summary(pl): Skrypt CGI do zarz±dzania Squidem przez WWW
183 Group: Networking/Admin
184 Requires: %{name} = %{epoch}:%{version}-%{release}
187 %description cachemgr
188 Cachemgr.cgi is a CGI script that allows administrator to chceck
189 various informations about Squid via WWW.
191 %description cachemgr -l pl
192 Cachemgr.cgi jest skryptem CGI, który pozwala administratorowi
193 zapoznaæ siê z informacjami o pracy Squida poprzez WWW.
196 Summary: LDAP authentication helper for Squid
197 Summary(pl): Obs³uga uwierzytelniania LDAP dla squida
198 Group: Networking/Admin
199 Requires: %{name} = %{epoch}:%{version}-%{release}
201 %description ldap_auth
202 This Squid helper allows authentication against LDAP directories using
203 the "simple authentication" (plain-text).
205 %description ldap_auth -l pl
206 Pakiet ten pozwala na uwierzytelnianie przez LDAP za pomoc± prostego
207 uwierzytelniania (otwartym tekstem).
210 Summary: PAM authentication helper for Squid
211 Summary(pl): Obs³uga uwierzytelniania PAM dla squida
212 Group: Networking/Admin
213 Requires: %{name} = %{epoch}:%{version}-%{release}
214 Requires: pam >= 0.77.3
216 %description pam_auth
217 This program authenticates users against a PAM configured
218 authentication service "squid". This allows you to authenticate Squid
219 users to any authentication source for which you have a PAM module.
221 %description pam_auth -l pl
222 Program ten pozwala na uwierzytelnianie u¿ytkowników squida w dowolnym
223 ¼ródle posiadaj±cym modu³ PAM.
226 Summary: SMB authentication helper for Squid
227 Summary(pl): Obs³uga uwierzytelniania SMB dla squida
228 Group: Networking/Admin
229 Requires: %{name} = %{epoch}:%{version}-%{release}
231 %description smb_auth
232 This is a proxy authentication module. With smb_auth you can
233 authenticate proxy users against an SMB server like Windows NT or
236 %description smb_auth -l pl
237 To jest modu³ uwierzytelniania proxy. Przy pomocy smb_auth mo¿na
238 uwierzytelniaæ u¿ytkowników proxy na serwerach SMB, jak Windows NT czy
242 Summary: MSNT domain authentication helper for Squid
243 Summary(pl): Obs³uga uwierzytelniania w domenie MSNT dla squida
244 Group: Networking/Admin
245 Requires: %{name} = %{epoch}:%{version}-%{release}
247 %description msnt_auth
248 This is an authentication module for the Squid proxy server to
249 authenticate users on an NT domain.
251 %description msnt_auth -l pl
252 Jest to modu³ uwierzytelniania proxy, który pozwala na
253 uwierzytelnianie u¿ytkowników proxy w domenie NT.
256 Summary: YP authentication helper for Squid
257 Summary(pl): Obs³uga uwierzytelniania YP dla squida
258 Group: Networking/Admin
259 Requires: %{name} = %{epoch}:%{version}-%{release}
262 This is an authentication module for the Squid proxy server to
263 authenticate users on YP.
265 %description yp_auth -l pl
266 Jest to modu³ uwierzytelniania proxy, który pozwala na
267 uwierzytelnianie u¿ytkowników proxy poprzez YP.
270 Summary: NCSA httpd style authentication helper for Squid
271 Summary(pl): Obs³uga uwierzytelniania NCSA httpd dla squida
272 Group: Networking/Admin
273 Requires: %{name} = %{epoch}:%{version}-%{release}
275 %description ncsa_auth
276 This module uses a NCSA httpd style password file for authentication.
278 %description ncsa_auth -l pl
279 Modu³ uwierzytelniania proxy u¿ywaj±cy pliku hase³ jak w NCSA httpd.
282 Summary: SASL authentication helper for Squid
283 Summary(pl): Obs³uga uwierzytelniania SASL dla squida
284 Group: Networking/Admin
285 Requires: %{name} = %{epoch}:%{version}-%{release}
287 %description sasl_auth
288 This is an authentication module for the Squid proxy server to
289 authenticate users via SASL.
291 %description sasl_auth -l pl
292 Jest to modu³ uwierzytelniania proxy, który pozwala na
293 uwierzytelnianie u¿ytkowników proxy poprzez SASL.
295 %package winbind_auth
296 Summary: WINBIND authentication helper for Squid
297 Summary(pl): Obs³uga uwierzytelniania WINBIND dla squida
298 Group: Networking/Admin
299 Requires: %{name} = %{epoch}:%{version}-%{release}
301 %description winbind_auth
302 This is an authentication module for the Squid proxy server to
303 authenticate users via WINBIND.
305 %description winbind_auth -l pl
306 Jest to modu³ uwierzytelniania proxy, który pozwala na
307 uwierzytelnianie u¿ytkowników proxy poprzez WINBIND.
309 %package getpwname_auth
310 Summary: getpwname authentication helper for Squid
311 Summary(pl): Obs³uga uwierzytelniania getpwname dla squida
312 Group: Networking/Admin
313 Requires: %{name} = %{epoch}:%{version}-%{release}
315 %description getpwname_auth
316 This is an authentication module for the Squid proxy server to
317 authenticate users using getpwname.
319 %description getpwname_auth -l pl
320 Jest to modu³ uwierzytelniania proxy, który pozwala na
321 uwierzytelnianie u¿ytkowników proxy poprzez getpwname.
324 Summary: passwd authentication helper for Squid
325 Summary(pl): Obs³uga uwierzytelniania passwd dla squida
326 Group: Networking/Admin
327 Requires: %{name} = %{epoch}:%{version}-%{release}
329 %description passwd_auth
330 This is an authentication module for the Squid proxy server to
331 authenticate users with separate passwd file.
333 %description passwd_auth -l pl
334 Jest to modu³ uwierzytelniania proxy, który pozwala na
335 uwierzytelnianie u¿ytkowników proxy poprzez oddzielny plik passwd.
338 Summary: NTLM authentication helper for Squid
339 Summary(pl): Obs³uga uwierzytelniania NTLM dla squida
340 Group: Networking/Admin
341 Requires: %{name} = %{epoch}:%{version}-%{release}
343 %description ntlm_auth
344 This is an authentication module for the Squid proxy server to
345 authenticate users on NTLM.
347 %description ntlm_auth -l pl
348 Jest to modu³ uwierzytelniania proxy, który pozwala na
349 uwierzytelnianie u¿ytkowników proxy poprzez NTLM.
352 Summary: IP external ACL helper for Squid
353 Summary(pl): Wsparcie kontroli dostêpu przez IP dla squida
354 Group: Networking/Admin
355 Requires: %{name} = %{epoch}:%{version}-%{release}
358 This is an external ACL module for the Squid proxy server to limit
359 access for users based on IP address.
361 %description ip_acl -l pl
362 Jest to modu³ kontroli dostêpu (ACL) do proxy, który pozwala na
363 ograniczenie dostêpu u¿ytkowników proxy na podstawie ich adresu IP.
366 Summary: LDAP group external ACL helper for Squid
367 Summary(pl): Wsparcie kontroli dostêpu przez grupy LDAP dla squida
368 Group: Networking/Admin
369 Requires: %{name} = %{epoch}:%{version}-%{release}
371 %description ldap_acl
372 This is an external ACL module for the Squid proxy server to limit
373 access for users based on LDAP group membership.
375 %description ldap_acl -l pl
376 Jest to modu³ kontroli dostêpu (ACL) do proxy, który pozwala na
377 ograniczenie dostêpu u¿ytkowników proxy na podstawie ich
378 przynale¿no¶ci do grup LDAP.
381 Summary: UNIX group external ACL helper for Squid
382 Summary(pl): Wsparcie kontroli dostêpu przez grupy UNIX dla squida
383 Group: Networking/Admin
384 Requires: %{name} = %{epoch}:%{version}-%{release}
386 %description unix_acl
387 This is an external ACL module for the Squid proxy server to limit
388 access for users based on UNIX group membership.
390 %description unix_acl -l pl
391 Jest to modu³ kontroli dostêpu (ACL) do proxy, który pozwala na
392 ograniczenie dostêpu u¿ytkowników proxy na podstawie ich
393 przynale¿no¶ci do grup UNIX.
396 Summary: NT domain group external ACL helper for Squid
397 Summary(pl): Wsparcie kontroli dostêpu przez grupy w domenie NT dla squida
398 Group: Networking/Admin
399 Requires: %{name} = %{epoch}:%{version}-%{release}
401 %description wbinfo_acl
402 This is an external ACL module for the Squid proxy server to limit
403 access for users based on NT domain group membership using wbinfo.
405 %description wbinfo_acl -l pl
406 Jest to modu³ kontroli dostêpu (ACL) do proxy, który pozwala na
407 ograniczenie dostêpu u¿ytkowników proxy na podstawie ich
408 przynale¿no¶ci do grup w domenie NT przy u¿yciu wbinfo.
411 Summary: NT domain group external ACL helper for Squid
412 Summary(pl): Wsparcie kontroli dostêpu przez grupy w domenie NT dla squida
413 Group: Networking/Admin
414 Requires: %{name} = %{epoch}:%{version}-%{release}
416 %description winbind_acl
417 This is an external ACL module for the Squid proxy server to limit
418 access for users based on NT domain group membership based on Samba
419 Winbindd from Samba 2.2.4 or greater.
421 %description winbind_acl -l pl
422 Jest to modu³ kontroli dostêpu (ACL) do proxy, który pozwala na
423 ograniczenie dostêpu u¿ytkowników proxy na podstawie ich
424 przynale¿no¶ci do grup w domenie NT oparty na Samba Winbindd z pakietu
425 Samba 2.2.4 lub wy¿szego.
428 Summary: Perl scripts for Squid
429 Summary(pl): Skrypty perlowe dla Squida
430 Group: Networking/Admin
431 Requires: %{name} = %{epoch}:%{version}-%{release}
434 This package contains Perl scripts and contributed programs for Squid.
436 %description scripts -l pl
437 Ten pakiet zawiera skrypty perlowe i dodatkowe programy dla Squida.
441 # Bug fixes from Squid home page:
459 %{?with_combined_log:%patch112 -p1}
462 %{__sed} -i -e '1s#!.*bin/perl#!%{__perl}#' {contrib,scripts,helpers/*/*}/*.pl
470 --datadir=%{_datadir}/squid \
471 --disable-ipf-transparent \
474 --enable-basic-auth-helpers=yes \
475 --enable-cache-digests \
477 --enable-delay-pools \
478 --enable-digest-auth-helpers=yes \
479 --enable-err-language=English \
480 --enable-external-acl-helpers=yes \
481 --enable-forw-via-db \
484 --enable-linux-netfilter \
485 --enable-ntlm-auth-helpers=yes \
486 --enable-referer-log \
487 --enable-removal-policies="lru heap" \
490 --enable-storeio="aufs,coss,diskd,null,ufs" \
491 --enable-underscores \
492 --enable-useragent-log \
493 --enable-x-accelerator-vary \
494 --localstatedir=/var \
495 --sysconfdir=%{_sysconfdir} \
496 --with-auth-on-acceleration \
502 rm -rf $RPM_BUILD_ROOT
503 install -d $RPM_BUILD_ROOT%{_cgidir} \
504 $RPM_BUILD_ROOT/etc/{pam.d,rc.d/init.d,security,sysconfig,logrotate.d} \
505 $RPM_BUILD_ROOT{%{_sbindir},%{_bindir},%{_libexecdir}/contrib} \
506 $RPM_BUILD_ROOT%{_mandir}/man8 \
507 $RPM_BUILD_ROOT%{_datadir}/squid \
508 $RPM_BUILD_ROOT/var/{cache,log{,/archiv}}/squid
511 DESTDIR=$RPM_BUILD_ROOT
513 cp -a contrib/*.pl $RPM_BUILD_ROOT%{_libexecdir}/contrib
514 install scripts/*.pl $RPM_BUILD_ROOT%{_libexecdir}
516 install %{SOURCE7} $RPM_BUILD_ROOT/etc/pam.d/squid
517 touch $RPM_BUILD_ROOT/etc/security/blacklist.squid
519 mv -f $RPM_BUILD_ROOT%{_libdir}/squid/cachemgr.cgi $RPM_BUILD_ROOT%{_cgidir}
521 cd $RPM_BUILD_ROOT/etc/squid
522 cp -f squid.conf{,.default}
523 patch -p0 < %{SOURCE5}
526 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/squid
527 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/squid
528 install %{SOURCE6} $RPM_BUILD_ROOT/etc/logrotate.d/squid
530 touch $RPM_BUILD_ROOT/var/log/squid/{access,cache,store}.log
532 # These two files start squid. They are replaced by /etc/rc.d/init.d script.
533 rm -f $RPM_BUILD_ROOT%{_bindir}/R*
535 # cp, to have re-entrant install
538 # dunno why, but manual is not installed
539 mv docs/squid.8 $RPM_BUILD_ROOT%{_mandir}/man8
540 # We don't want Makefiles as docs...
543 # We don't like message: rpm found unpackaged files ...
544 rm -f $RPM_BUILD_ROOT/etc/squid/msntauth.conf.default \
545 $RPM_BUILD_ROOT/etc/squid/squid.conf.orig
547 > $RPM_BUILD_ROOT/var/cache/squid/netdb_state
548 > $RPM_BUILD_ROOT/var/cache/squid/swap.state
549 > $RPM_BUILD_ROOT/var/cache/squid/swap.state.clean
550 > $RPM_BUILD_ROOT/var/cache/squid/swap.state.last-clean
553 rm -rf $RPM_BUILD_ROOT
555 %triggerpostun -- squid < 7:2.5.STABLE7-5
556 %addusertogroup stats squid
559 %groupadd -g 91 squid
560 %useradd -o -u 91 -s /bin/false -g squid -c "SQUID http caching daemon" -d /var/cache/squid squid
561 %addusertogroup stats squid
563 [ -L %{_datadir}/squid/errors ] && rm -f %{_datadir}/squid/errors || :
566 if ! grep -q "^visible_hostname" /etc/squid/squid.conf; then
567 hostname=`/bin/hostname -f 2>/dev/null` || hostname='localhost'
568 echo visible_hostname $hostname >> /etc/squid/squid.conf
571 if [ "$1" = "1" ]; then
572 /sbin/chkconfig --add squid
573 /etc/rc.d/init.d/squid init >&2
574 echo "Run \"/etc/rc.d/init.d/squid start\" to start squid." >&2
576 if [ -f /var/lock/subsys/squid ]; then
577 /etc/rc.d/init.d/squid restart >&2
582 if [ "$1" = "0" ]; then
583 if [ -f /var/lock/subsys/squid ]; then
584 /etc/rc.d/init.d/squid stop >&2
586 /sbin/chkconfig --del squid
588 # nuke squid cache if uninstalling
589 rm -rf /var/cache/squid/??
593 if [ "$1" = "0" ]; then
599 %defattr(644,root,root,755)
600 %doc CONTRIBUTORS COPYRIGHT CREDITS README ChangeLog QUICKSTART RELEASENOTES.html SPONSORS
601 %doc docs/* src/mib.txt FAQ*.html book-full.html
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) %{_libexecdir}/fakeauth_auth
608 %attr(755,root,root) %{_sbindir}/*
610 %attr(755,root,root) %dir %{_sysconfdir}
612 %attr(754,root,root) /etc/rc.d/init.d/squid
613 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/squid
614 %attr(640,root,squid) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/squid
615 %attr(640,root,squid) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/squid.conf
616 %attr(640,root,squid) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mime.conf
617 %attr(640,root,root) %{_sysconfdir}/mime.conf.default
618 %attr(640,root,root) %{_sysconfdir}/squid.conf.default
620 %dir %{_datadir}/squid
621 %dir %{_datadir}/squid/errors
622 %{_datadir}/squid/icons
623 %{_datadir}/squid/mib.txt
624 %lang(bg) %{_datadir}/squid/errors/Bulgarian
625 %lang(ca) %{_datadir}/squid/errors/Catalan
626 %lang(cs) %{_datadir}/squid/errors/Czech
627 %lang(da) %{_datadir}/squid/errors/Danish
628 %lang(nl) %{_datadir}/squid/errors/Dutch
629 %{_datadir}/squid/errors/English
630 %lang(et) %{_datadir}/squid/errors/Estonian
631 %lang(fi) %{_datadir}/squid/errors/Finnish
632 %lang(fr) %{_datadir}/squid/errors/French
633 %lang(de) %{_datadir}/squid/errors/German
634 %lang(el) %{_datadir}/squid/errors/Greek
635 %lang(he) %{_datadir}/squid/errors/Hebrew
636 %lang(hu) %{_datadir}/squid/errors/Hungarian
637 %lang(it) %{_datadir}/squid/errors/Italian
638 %lang(ja) %{_datadir}/squid/errors/Japanese
639 %lang(ko) %{_datadir}/squid/errors/Korean
640 %lang(lt) %{_datadir}/squid/errors/Lithuanian
641 %lang(pl) %{_datadir}/squid/errors/Polish
642 %lang(pt) %{_datadir}/squid/errors/Portuguese
643 %lang(ro) %{_datadir}/squid/errors/Romanian
644 %lang(ru) %{_datadir}/squid/errors/Russian-1251
645 %lang(ru) %{_datadir}/squid/errors/Russian-koi8-r
646 %lang(zh_CN) %{_datadir}/squid/errors/Simplify_Chinese
647 %lang(sk) %{_datadir}/squid/errors/Slovak
648 %lang(es) %{_datadir}/squid/errors/Spanish
649 %lang(sr) %{_datadir}/squid/errors/Serbian
650 %lang(sv) %{_datadir}/squid/errors/Swedish
651 %lang(zh_TW) %{_datadir}/squid/errors/Traditional_Chinese
652 %lang(tr) %{_datadir}/squid/errors/Turkish
654 %attr(755,root,root) %dir %{_libexecdir}
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
661 %ghost /var/cache/squid/netdb_state
662 %ghost /var/cache/squid/swap.state
663 %ghost /var/cache/squid/swap.state.clean
664 %ghost /var/cache/squid/swap.state.last-clean
665 %{_mandir}/man8/squid.8*
668 %defattr(644,root,root,755)
669 %attr(640,root,squid) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cachemgr.conf
670 %attr(755,root,root) %{_cgidir}/*
671 %{_mandir}/man8/cachemgr.cgi.8*
674 %defattr(644,root,root,755)
675 %doc helpers/basic_auth/LDAP/README
676 %attr(755,root,root) %{_libexecdir}/%{name}_ldap_auth
677 %{_mandir}/man8/%{name}_ldap_auth.*
680 %defattr(644,root,root,755)
681 %doc helpers/basic_auth/PAM/pam_auth.c
682 %config(noreplace) /etc/pam.d/squid
683 %config(noreplace) /etc/security/blacklist.squid
684 %attr(755,root,root) %{_libexecdir}/pam_auth
685 %{_mandir}/man8/pam_auth.8*
688 %defattr(644,root,root,755)
689 %doc helpers/basic_auth/SMB/{README,ChangeLog,smb_auth.sh}
690 %doc helpers/basic_auth/multi-domain-NTLM/*
691 %attr(755,root,root) %{_libexecdir}/smb_auth*
694 %defattr(644,root,root,755)
695 %doc helpers/basic_auth/MSNT/README*
696 %attr(755,root,root) %{_libexecdir}/msnt_auth
697 %attr(640,root,squid) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/msntauth.conf
700 %defattr(644,root,root,755)
701 %attr(755,root,root) %{_libexecdir}/yp_auth
704 %defattr(644,root,root,755)
705 %attr(755,root,root) %{_libexecdir}/ncsa_auth
708 %defattr(644,root,root,755)
709 %doc helpers/basic_auth/SASL/{README,squid_sasl*}
710 %attr(755,root,root) %{_libexecdir}/sasl_auth
713 %defattr(644,root,root,755)
714 %attr(755,root,root) %{_libexecdir}/wb_auth
716 %files getpwname_auth
717 %defattr(644,root,root,755)
718 %attr(755,root,root) %{_libexecdir}/getpwname_auth
721 %defattr(644,root,root,755)
722 %attr(755,root,root) %{_libexecdir}/digest_pw_auth
725 %defattr(644,root,root,755)
726 %doc helpers/ntlm_auth/no_check/{README*,no_check.pl}
727 %attr(755,root,root) %{_libexecdir}/wb_ntlmauth
728 %attr(755,root,root) %{_libexecdir}/ntlm_auth
731 %defattr(644,root,root,755)
732 %doc helpers/external_acl/ip_user/{README,example*}
733 %attr(755,root,root) %{_libexecdir}/ip_user_check
736 %defattr(644,root,root,755)
737 %attr(755,root,root) %{_libexecdir}/squid_ldap_group
738 %{_mandir}/man8/%{name}_ldap_group.*
741 %defattr(644,root,root,755)
742 %doc helpers/external_acl/unix_group/README
743 %attr(755,root,root) %{_libexecdir}/squid_unix_group
744 %{_mandir}/man8/%{name}_unix_group.*
747 %defattr(644,root,root,755)
748 %attr(755,root,root) %{_libexecdir}/wbinfo_group.pl
751 %defattr(644,root,root,755)
752 %doc helpers/external_acl/winbind_group/readme.txt
753 %attr(755,root,root) %{_libexecdir}/wb_group
756 %defattr(644,root,root,755)
757 %attr(755,root,root) %{_libexecdir}/*.pl
758 %attr(755,root,root) %{_libexecdir}/contrib