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/squid-2.5.STABLE12-setenv.patch
33 Patch1: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE12-SMB_BadFetch.patch
34 Patch2: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE12-wbinfo_group.patch
35 Patch3: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE12-asyncio_counters.patch
36 Patch4: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE12-prctl_args.patch
38 Patch100: http://www.sed.pl/~mrk/qos/%{name}_hit_miss_mark.patch
39 Patch101: %{name}-fhs.patch
40 Patch102: %{name}-location.patch
41 Patch103: %{name}-domainmatch.patch
42 Patch104: %{name}-libnsl_fixes.patch
43 Patch105: %{name}-ac_fix.patch
44 Patch106: %{name}-crash-on-ENOSPC.patch
45 Patch107: %{name}-newssl.patch
46 Patch108: %{name}-nolibs.patch
47 Patch109: http://piorun.ds.pg.gda.pl/~blues/patches/%{name}-more_FD-new.patch
48 Patch110: %{name}-empty-referer.patch
49 Patch111: %{name}-align.patch
50 Patch112: %{name}-2.5.STABLE4-apache-like-combined-log.patch
51 Patch113: %{name}-auth_on_acceleration.patch
52 Patch114: %{name}-fd-config.patch
53 Patch115: %{name}-no-u_short.patch
54 URL: http://www.squid-cache.org/
55 BuildRequires: autoconf
56 BuildRequires: automake
57 BuildRequires: cyrus-sasl-devel >= 2.1.0
58 BuildRequires: openldap-devel >= 2.3.0
59 BuildRequires: openssl-devel >= 0.9.7d
60 BuildRequires: pam-devel
61 BuildRequires: perl-base
62 BuildRequires: rpmbuild(macros) >= 1.268
63 BuildRequires: sed >= 4.0
65 Requires(post): /bin/hostname
66 Requires(post): fileutils
67 Requires(post): findutils
69 Requires(post,preun): /sbin/chkconfig
70 Requires(postun): /usr/sbin/groupdel
71 Requires(postun): /usr/sbin/userdel
72 Requires(pre): /bin/id
73 Requires(pre): /usr/bin/getgid
74 Requires(pre): /usr/lib/rpm/user_group.sh
75 Requires(pre): /usr/sbin/groupadd
76 Requires(pre): /usr/sbin/useradd
77 Requires: rc-scripts >= 0.2.0
78 Requires: setup >= 2.4.6
79 Provides: group(squid)
81 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
83 %define _libexecdir %{_libdir}/%{name}
84 %define _sysconfdir /etc/%{name}
85 %define _cgidir /home/services/httpd/cgi-bin
88 Squid is a high-performance proxy caching server for web clients,
89 supporting FTP, gopher, and HTTP data objects. Unlike traditional
90 caching software, Squid handles all requests in a single,
91 non-blocking, I/O-driven process. Squid keeps meta data and especially
92 hot objects cached in RAM, caches DNS lookups, supports non-blocking
93 DNS lookups, and implements negative caching of failed requests. If
94 you are tight on memory, check out the NOVM version of this package.
95 Squid supports SSL, extensive access controls, and full request
96 logging. By using the lightweight Internet Cache Protocol, Squid
97 caches can be arranged in a hierarchy or mesh for additional bandwidth
98 savings. Squid consists of a main server program squid, a Domain Name
99 System lookup program dnsserver, a program for retrieving FTP data
100 ftpget, and some management and client tools. When squid starts up, it
101 spawns a configurable number of dnsserver processes, each of which can
102 perform a single, blocking Domain Name System (DNS) lookup. This
103 reduces the amount of time the cache waits for DNS lookups. Squid is
104 derived from the ARPA-funded Harvest project.
107 Squid es un servidor proxy con caché de alto desempeño para clientes
108 web, soportando FTP, gopher y HTTP. Diferentemente de softwares
109 tradicionales de caché squid manipula todas las requisiciones en un
110 único proceso sin bloqueos, direccionado a E/S. Mantienen metadatos y
111 objetos frecuentemente pedidos en uno caché en memoria RAM. Hace caché
112 de resoluciones DNS, soporta resoluciones DNS sin bloqueo y implementa
113 un caché negativo de requisiciones que fallen. Si tiene poca memoria
114 da un vistazo en la versión NOVM de este paquete. También soporta SSL,
115 controles extensivos de acceso y registro (log) completo de las
116 requisiciones. Usando el ligero Protocolo de Caches Internet (ICP)
117 puede ser usado en una jerarquía de servidores para mayor ahorro de la
118 banda de comunicación. Está compuesto del programa squid (servidor
119 principal), del programa dnsserver (para resolución DNS), del programa
120 ftpget (para transmisiones ftp) y otras herramientas clientes y para
121 administración. Cuando squid se inicia, dispara un número configurable
122 de procesos dnsserver, cada uno pudiendo ejecutar solamente una
123 resolución DNS con poder de bloquear. Esto reduce el tiempo que el
124 caché espera por resoluciones DNS. Fue derivado del proyecto Harvest,
125 financiado por la ARPA.
128 Squid jest wysoce wydajnym serwerem proxy-cache dla przegl±darek WWW,
129 klientów FTP i gopher. Squid przechowuje najczê¶ciej pobierane dane w
130 pamiêci RAM i zapamiêtuje odwo³ania do DNS. Squid oferuje wsparcie dla
131 SSL, rozbudowan± kontrolê dostêpu oraz pe³ne rejestrowanie pobieranych
132 danych. Dziêki u¿yciu protoko³u ICP (Internet Cache Protocol), serwer
133 squid mo¿na ³±czyæ w hierarchiê, zwiêkszaj±c ich efektywno¶æ. Pakiet
134 squid obejmuje: g³ówny program serwera squid, program dostarczaj±cy
135 informacji z DNS dnsserver, program odbieraj±cy dane FTP ftpget, oraz
136 pomocnicze programy do zarz±dzania. Squid wywodzi siê ze
137 sponsorowanego przez ARPA projektu Harvest.
139 %description -l pt_BR
140 O Squid é um servidor proxy com cache de alta performance para
141 clientes web, suportando FTP, gopher e HTTP. Diferentemente de
142 softwares tradicionais de cache o squid manipula todas as requisições
143 em um único processo sem bloqueios, direcionado a E/S.
145 Mantém meta dados e objetos freqüentemente pedidos num cache em
146 memória RAM. Faz cache de resoluções DNS, suporta resoluções DNS sem
147 bloqueio e implementa um cache negativo de requisições que falharem.
148 Se você tem pouca memória dê uma olhada na versão NOVM deste pacote.
150 Também suporta SSL, controles extensivos de acesso e registro (log)
151 completo das requisições. Usando o leve Protocolo de Caches Internet
152 (ICP) ele pode ser usado em uma hierarquia de servidores para maior
153 economia de banda de comunicação.
155 Ele consiste do programa squid (servidor principal), do programa
156 dnsserver (para resolução DNS), do programa ftpget (para transmissões
157 ftp) e outras ferramentas clientes e para gerenciamento. Quando o
158 squid é inicializado ele dispara um número configurável de processos
159 dnsserver, cada um podendo executar somente uma resolução DNS
160 bloqueante. Isto reduz o tempo que o cache espera por resoluções DNS.
162 Foi derivado do projeto Harvest, financiado pela ARPA.
165 Squid - ÜÔÏ ×ÙÓÏËÏÐÒÏÉÚ×ÏÄÉÔÅÌØÎÙÊ ËÜÛÉÒÕÀÝÉÊ ÐÒÏËÓÉ-ÓÅÒ×ÅÒ ÄÌÑ
166 ËÌÉÅÎÔÏ× web, ÐÏÄÄÅÒÖÉ×ÁÀÝÉÊ ÏÂßÅËÔÙ ÄÁÎÎÙÈ ÔÉÐÁ FTP, gopher É HTTP. ÷
167 ÏÔÌÉÞÉÅ ÏÔ ÔÒÁÄÉÃÉÏÎÎÙÈ ËÜÛÉÒÕÀÝÉÈ ÐÒÏÇÒÁÍÍ, Squid ÏÂÒÁÂÁÔÙ×ÁÅÔ ×ÓÅ
168 ÚÁÐÒÏÓÙ ÐÒÉ ÐÏÍÏÝÉ ÏÄÎÏÇÏ ÎÅÂÌÏËÉÒÕÀÝÅÇÏÓÑ, ÕÐÒÁ×ÌÑÅÍÏÇÏ
169 ××ÏÄÏÍ-×Ù×ÏÄÏÍ ÐÒÏÃÅÓÓÁ.
171 üÔÏÔ ÐÁËÅÔ ÉÍÅÅÔ ×ÓÔÒÏÅÎÎÕÀ ÐÏÄÄÅÒÖËÕ ÂÁÚÙ ÄÁÎÎÙÈ ÓÅÔÅ×ÙÈ ICMP-ÐÒÏÂ
175 Squid - ÃÅ ËÅÛÕÀÞÉÊ ÐÒÏËÓ¦-ÓÅÒ×ÅÒ ÄÌÑ web-Ë̦¤ÎÔ¦×, ÝÏ Ð¦ÄÔÒÉÍÕ¤
176 ÏÂ'¤ËÔÉ ÄÁÎÉÈ ÔÉÐÕ FTP, gopher ÔÁ HTTP. îÁ צÄͦÎÕ ×¦Ä ÔÒÁÄÉæÊÎÉÈ
177 ËÅÛÕÀÞÉÈ ÐÒÏÇÒÁÍ, Squid ÏÂÒÏÂÌѤ ×Ó¦ ÚÁÐÉÔÉ ÚÁ ÄÏÐÏÍÏÇÏÀ ÏÄÎÏÇÏ
178 ÎÅÂÌÏËÕÀÞÏÇÏ, ËÅÒÏ×ÁÎÏÇÏ ××ÏÄÏÍ-×É×ÏÄÏÍ ÐÒÏÃÅÓÕ.
180 ãÅÊ ÐÁËÅÔ ÍÁ¤ ×ÂÕÄÏ×ÁÎÕ Ð¦ÄÔÒÉÍËÕ ÂÁÚÉ ÄÁÎÉÈ ÍÅÒÅÖÅ×ÉÈ ICMP-ÐÒÏÂ
184 Summary: CGI script for Squid management
185 Summary(pl): Skrypt CGI do zarz±dzania Squidem przez WWW
186 Group: Networking/Admin
187 Requires: %{name} = %{epoch}:%{version}-%{release}
190 %description cachemgr
191 Cachemgr.cgi is a CGI script that allows administrator to chceck
192 various informations about Squid via WWW.
194 %description cachemgr -l pl
195 Cachemgr.cgi jest skryptem CGI, który pozwala administratorowi
196 zapoznaæ siê z informacjami o pracy Squida poprzez WWW.
199 Summary: LDAP authentication helper for Squid
200 Summary(pl): Obs³uga uwierzytelniania LDAP dla squida
201 Group: Networking/Admin
202 Requires: %{name} = %{epoch}:%{version}-%{release}
204 %description ldap_auth
205 This Squid helper allows authentication against LDAP directories using
206 the "simple authentication" (plain-text).
208 %description ldap_auth -l pl
209 Pakiet ten pozwala na uwierzytelnianie przez LDAP za pomoc± prostego
210 uwierzytelniania (otwartym tekstem).
213 Summary: PAM authentication helper for Squid
214 Summary(pl): Obs³uga uwierzytelniania PAM dla squida
215 Group: Networking/Admin
216 Requires: %{name} = %{epoch}:%{version}-%{release}
217 Requires: pam >= 0.77.3
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 uwierzytelnianie u¿ytkowników squida w dowolnym
226 ¼ródle posiadaj±cym modu³ PAM.
229 Summary: SMB authentication helper for Squid
230 Summary(pl): Obs³uga uwierzytelniania SMB dla squida
231 Group: Networking/Admin
232 Requires: %{name} = %{epoch}:%{version}-%{release}
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³ uwierzytelniania proxy. Przy pomocy smb_auth mo¿na
241 uwierzytelniaæ u¿ytkowników proxy na serwerach SMB, jak Windows NT czy
245 Summary: MSNT domain authentication helper for Squid
246 Summary(pl): Obs³uga uwierzytelniania w domenie MSNT dla squida
247 Group: Networking/Admin
248 Requires: %{name} = %{epoch}:%{version}-%{release}
250 %description msnt_auth
251 This is an authentication module for the Squid proxy server to
252 authenticate users on an NT domain.
254 %description msnt_auth -l pl
255 Jest to modu³ uwierzytelniania proxy, który pozwala na
256 uwierzytelnianie u¿ytkowników proxy w domenie NT.
259 Summary: YP authentication helper for Squid
260 Summary(pl): Obs³uga uwierzytelniania YP dla squida
261 Group: Networking/Admin
262 Requires: %{name} = %{epoch}:%{version}-%{release}
265 This is an authentication module for the Squid proxy server to
266 authenticate users on YP.
268 %description yp_auth -l pl
269 Jest to modu³ uwierzytelniania proxy, który pozwala na
270 uwierzytelnianie u¿ytkowników proxy poprzez YP.
273 Summary: NCSA httpd style authentication helper for Squid
274 Summary(pl): Obs³uga uwierzytelniania NCSA httpd dla squida
275 Group: Networking/Admin
276 Requires: %{name} = %{epoch}:%{version}-%{release}
278 %description ncsa_auth
279 This module uses a NCSA httpd style password file for authentication.
281 %description ncsa_auth -l pl
282 Modu³ uwierzytelniania proxy u¿ywaj±cy pliku hase³ jak w NCSA httpd.
285 Summary: SASL authentication helper for Squid
286 Summary(pl): Obs³uga uwierzytelniania SASL dla squida
287 Group: Networking/Admin
288 Requires: %{name} = %{epoch}:%{version}-%{release}
290 %description sasl_auth
291 This is an authentication module for the Squid proxy server to
292 authenticate users via SASL.
294 %description sasl_auth -l pl
295 Jest to modu³ uwierzytelniania proxy, który pozwala na
296 uwierzytelnianie u¿ytkowników proxy poprzez SASL.
298 %package winbind_auth
299 Summary: WINBIND authentication helper for Squid
300 Summary(pl): Obs³uga uwierzytelniania WINBIND dla squida
301 Group: Networking/Admin
302 Requires: %{name} = %{epoch}:%{version}-%{release}
304 %description winbind_auth
305 This is an authentication module for the Squid proxy server to
306 authenticate users via WINBIND.
308 %description winbind_auth -l pl
309 Jest to modu³ uwierzytelniania proxy, który pozwala na
310 uwierzytelnianie u¿ytkowników proxy poprzez WINBIND.
312 %package getpwname_auth
313 Summary: getpwname authentication helper for Squid
314 Summary(pl): Obs³uga uwierzytelniania getpwname dla squida
315 Group: Networking/Admin
316 Requires: %{name} = %{epoch}:%{version}-%{release}
318 %description getpwname_auth
319 This is an authentication module for the Squid proxy server to
320 authenticate users using getpwname.
322 %description getpwname_auth -l pl
323 Jest to modu³ uwierzytelniania proxy, który pozwala na
324 uwierzytelnianie u¿ytkowników proxy poprzez getpwname.
327 Summary: passwd authentication helper for Squid
328 Summary(pl): Obs³uga uwierzytelniania passwd dla squida
329 Group: Networking/Admin
330 Requires: %{name} = %{epoch}:%{version}-%{release}
332 %description passwd_auth
333 This is an authentication module for the Squid proxy server to
334 authenticate users with separate passwd file.
336 %description passwd_auth -l pl
337 Jest to modu³ uwierzytelniania proxy, który pozwala na
338 uwierzytelnianie u¿ytkowników proxy poprzez oddzielny plik passwd.
341 Summary: NTLM authentication helper for Squid
342 Summary(pl): Obs³uga uwierzytelniania NTLM dla squida
343 Group: Networking/Admin
344 Requires: %{name} = %{epoch}:%{version}-%{release}
346 %description ntlm_auth
347 This is an authentication module for the Squid proxy server to
348 authenticate users on NTLM.
350 %description ntlm_auth -l pl
351 Jest to modu³ uwierzytelniania proxy, który pozwala na
352 uwierzytelnianie u¿ytkowników proxy poprzez NTLM.
355 Summary: IP external ACL helper for Squid
356 Summary(pl): Wsparcie kontroli dostêpu przez IP dla squida
357 Group: Networking/Admin
358 Requires: %{name} = %{epoch}:%{version}-%{release}
361 This is an external ACL module for the Squid proxy server to limit
362 access for users based on IP address.
364 %description ip_acl -l pl
365 Jest to modu³ kontroli dostêpu (ACL) do proxy, który pozwala na
366 ograniczenie dostêpu u¿ytkowników proxy na podstawie ich adresu IP.
369 Summary: LDAP group external ACL helper for Squid
370 Summary(pl): Wsparcie kontroli dostêpu przez grupy LDAP dla squida
371 Group: Networking/Admin
372 Requires: %{name} = %{epoch}:%{version}-%{release}
374 %description ldap_acl
375 This is an external ACL module for the Squid proxy server to limit
376 access for users based on LDAP group membership.
378 %description ldap_acl -l pl
379 Jest to modu³ kontroli dostêpu (ACL) do proxy, który pozwala na
380 ograniczenie dostêpu u¿ytkowników proxy na podstawie ich
381 przynale¿no¶ci do grup LDAP.
384 Summary: UNIX group external ACL helper for Squid
385 Summary(pl): Wsparcie kontroli dostêpu przez grupy UNIX dla squida
386 Group: Networking/Admin
387 Requires: %{name} = %{epoch}:%{version}-%{release}
389 %description unix_acl
390 This is an external ACL module for the Squid proxy server to limit
391 access for users based on UNIX group membership.
393 %description unix_acl -l pl
394 Jest to modu³ kontroli dostêpu (ACL) do proxy, który pozwala na
395 ograniczenie dostêpu u¿ytkowników proxy na podstawie ich
396 przynale¿no¶ci do grup UNIX.
399 Summary: NT domain group external ACL helper for Squid
400 Summary(pl): Wsparcie kontroli dostêpu przez grupy w domenie NT dla squida
401 Group: Networking/Admin
402 Requires: %{name} = %{epoch}:%{version}-%{release}
404 %description wbinfo_acl
405 This is an external ACL module for the Squid proxy server to limit
406 access 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
417 Requires: %{name} = %{epoch}:%{version}-%{release}
419 %description winbind_acl
420 This is an external ACL module for the Squid proxy server to limit
421 access for users based on NT domain group membership based on Samba
422 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 z pakietu
428 Samba 2.2.4 lub wy¿szego.
431 Summary: Perl scripts for Squid
432 Summary(pl): Skrypty perlowe dla Squida
433 Group: Networking/Admin
434 Requires: %{name} = %{epoch}:%{version}-%{release}
437 This package contains Perl scripts and contributed programs for Squid.
439 %description scripts -l pl
440 Ten pakiet zawiera skrypty perlowe i dodatkowe programy dla Squida.
444 # Bug fixes from Squid home page:
463 %{?with_combined_log:%patch112 -p1}
468 %{__sed} -i -e '1s#!.*bin/perl#!%{__perl}#' {contrib,scripts,helpers/*/*}/*.pl
476 --datadir=%{_datadir}/squid \
477 --disable-ipf-transparent \
480 --enable-basic-auth-helpers=yes \
481 --enable-cache-digests \
483 --enable-delay-pools \
484 --enable-digest-auth-helpers=yes \
485 --enable-err-language=English \
486 --enable-external-acl-helpers=yes \
487 --enable-forw-via-db \
490 --enable-linux-netfilter \
491 --enable-ntlm-auth-helpers=yes \
492 --enable-referer-log \
493 --enable-removal-policies="lru heap" \
496 --enable-storeio="aufs,coss,diskd,null,ufs" \
497 --enable-underscores \
498 --enable-useragent-log \
499 --enable-x-accelerator-vary \
500 --localstatedir=/var \
501 --sysconfdir=%{_sysconfdir} \
502 --with-auth-on-acceleration \
509 rm -rf $RPM_BUILD_ROOT
510 install -d $RPM_BUILD_ROOT%{_cgidir} \
511 $RPM_BUILD_ROOT/etc/{pam.d,rc.d/init.d,security,sysconfig,logrotate.d} \
512 $RPM_BUILD_ROOT{%{_sbindir},%{_bindir},%{_libexecdir}/contrib} \
513 $RPM_BUILD_ROOT%{_mandir}/man8 \
514 $RPM_BUILD_ROOT%{_datadir}/squid \
515 $RPM_BUILD_ROOT/var/{cache,log{,/archiv}}/squid
518 DESTDIR=$RPM_BUILD_ROOT
520 cp -a contrib/*.pl $RPM_BUILD_ROOT%{_libexecdir}/contrib
521 install scripts/*.pl $RPM_BUILD_ROOT%{_libexecdir}
523 install %{SOURCE7} $RPM_BUILD_ROOT/etc/pam.d/squid
524 touch $RPM_BUILD_ROOT/etc/security/blacklist.squid
526 mv -f $RPM_BUILD_ROOT%{_libdir}/squid/cachemgr.cgi $RPM_BUILD_ROOT%{_cgidir}
528 cd $RPM_BUILD_ROOT/etc/squid
529 cp -f squid.conf{,.default}
530 patch -p0 < %{SOURCE5}
533 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/squid
534 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/squid
535 install %{SOURCE6} $RPM_BUILD_ROOT/etc/logrotate.d/squid
537 touch $RPM_BUILD_ROOT/var/log/squid/{access,cache,store}.log
539 # These two files start squid. They are replaced by /etc/rc.d/init.d script.
540 rm -f $RPM_BUILD_ROOT%{_bindir}/R*
542 # cp, to have re-entrant install
545 # dunno why, but manual is not installed
546 mv docs/squid.8 $RPM_BUILD_ROOT%{_mandir}/man8
547 # We don't want Makefiles as docs...
550 # We don't like message: rpm found unpackaged files ...
551 rm -f $RPM_BUILD_ROOT/etc/squid/msntauth.conf.default \
552 $RPM_BUILD_ROOT/etc/squid/squid.conf.orig
554 > $RPM_BUILD_ROOT/var/cache/squid/netdb_state
555 > $RPM_BUILD_ROOT/var/cache/squid/swap.state
556 > $RPM_BUILD_ROOT/var/cache/squid/swap.state.clean
557 > $RPM_BUILD_ROOT/var/cache/squid/swap.state.last-clean
560 rm -rf $RPM_BUILD_ROOT
563 %groupadd -g 91 squid
564 %useradd -o -u 91 -s /bin/false -g squid -c "SQUID http caching daemon" -d /var/cache/squid squid
565 %addusertogroup stats squid
567 [ -L %{_datadir}/squid/errors ] && rm -f %{_datadir}/squid/errors || :
570 if ! grep -q "^visible_hostname" /etc/squid/squid.conf; then
571 hostname=`/bin/hostname -f 2>/dev/null` || hostname='localhost'
572 echo visible_hostname $hostname >> /etc/squid/squid.conf
575 /sbin/chkconfig --add squid
576 if [ "$1" = "1" ]; then
577 /sbin/service squid init >&2
579 %service squid restart
582 if [ "$1" = "0" ]; then
583 /sbin/chkconfig --del squid
586 # nuke squid cache if uninstalling
587 rm -rf /var/cache/squid/??
591 if [ "$1" = "0" ]; then
596 %triggerpostun -- squid < 7:2.5.STABLE7-5
597 %addusertogroup stats squid
600 %defattr(644,root,root,755)
601 %doc CONTRIBUTORS COPYRIGHT CREDITS README ChangeLog QUICKSTART RELEASENOTES.html SPONSORS
602 %doc docs/* src/mib.txt FAQ*.html book-full.html
603 %attr(755,root,root) %{_bindir}/squidclient
604 %attr(755,root,root) %{_libexecdir}/diskd
605 # YES, it has to be suid root, it sends ICMP packets.
606 %attr(4754,root,squid) %{_libexecdir}/pinger
607 %attr(755,root,root) %{_libexecdir}/unlinkd
608 %attr(755,root,root) %{_libexecdir}/fakeauth_auth
609 %attr(755,root,root) %{_sbindir}/*
611 %attr(755,root,root) %dir %{_sysconfdir}
613 %attr(754,root,root) /etc/rc.d/init.d/squid
614 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/squid
615 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/squid
616 %attr(640,root,squid) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/squid.conf
617 %attr(640,root,squid) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mime.conf
618 %attr(640,root,root) %{_sysconfdir}/mime.conf.default
619 %attr(640,root,root) %{_sysconfdir}/squid.conf.default
621 %dir %{_datadir}/squid
622 %dir %{_datadir}/squid/errors
623 %{_datadir}/squid/icons
624 %{_datadir}/squid/mib.txt
625 %lang(bg) %{_datadir}/squid/errors/Bulgarian
626 %lang(ca) %{_datadir}/squid/errors/Catalan
627 %lang(cs) %{_datadir}/squid/errors/Czech
628 %lang(da) %{_datadir}/squid/errors/Danish
629 %lang(nl) %{_datadir}/squid/errors/Dutch
630 %{_datadir}/squid/errors/English
631 %lang(et) %{_datadir}/squid/errors/Estonian
632 %lang(fi) %{_datadir}/squid/errors/Finnish
633 %lang(fr) %{_datadir}/squid/errors/French
634 %lang(de) %{_datadir}/squid/errors/German
635 %lang(el) %{_datadir}/squid/errors/Greek
636 %lang(he) %{_datadir}/squid/errors/Hebrew
637 %lang(hu) %{_datadir}/squid/errors/Hungarian
638 %lang(it) %{_datadir}/squid/errors/Italian
639 %lang(ja) %{_datadir}/squid/errors/Japanese
640 %lang(ko) %{_datadir}/squid/errors/Korean
641 %lang(lt) %{_datadir}/squid/errors/Lithuanian
642 %lang(pl) %{_datadir}/squid/errors/Polish
643 %lang(pt) %{_datadir}/squid/errors/Portuguese
644 %lang(ro) %{_datadir}/squid/errors/Romanian
645 %lang(ru) %{_datadir}/squid/errors/Russian-1251
646 %lang(ru) %{_datadir}/squid/errors/Russian-koi8-r
647 %lang(zh_CN) %{_datadir}/squid/errors/Simplify_Chinese
648 %lang(sk) %{_datadir}/squid/errors/Slovak
649 %lang(es) %{_datadir}/squid/errors/Spanish
650 %lang(sr) %{_datadir}/squid/errors/Serbian
651 %lang(sv) %{_datadir}/squid/errors/Swedish
652 %lang(zh_TW) %{_datadir}/squid/errors/Traditional_Chinese
653 %lang(tr) %{_datadir}/squid/errors/Turkish
655 %attr(755,root,root) %dir %{_libexecdir}
657 %attr(770,root,squid) %dir /var/log/archiv/squid
658 %attr(770,root,squid) %dir /var/log/squid
659 %attr(660,root,squid) %ghost /var/log/squid/*
661 %attr(770,root,squid) %dir /var/cache/squid
662 %ghost /var/cache/squid/netdb_state
663 %ghost /var/cache/squid/swap.state
664 %ghost /var/cache/squid/swap.state.clean
665 %ghost /var/cache/squid/swap.state.last-clean
666 %{_mandir}/man8/squid.8*
669 %defattr(644,root,root,755)
670 %attr(640,root,squid) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cachemgr.conf
671 %attr(755,root,root) %{_cgidir}/*
672 %{_mandir}/man8/cachemgr.cgi.8*
675 %defattr(644,root,root,755)
676 %doc helpers/basic_auth/LDAP/README
677 %attr(755,root,root) %{_libexecdir}/%{name}_ldap_auth
678 %{_mandir}/man8/%{name}_ldap_auth.*
681 %defattr(644,root,root,755)
682 %doc helpers/basic_auth/PAM/pam_auth.c
683 %config(noreplace) /etc/pam.d/squid
684 %config(noreplace) /etc/security/blacklist.squid
685 %attr(755,root,root) %{_libexecdir}/pam_auth
686 %{_mandir}/man8/pam_auth.8*
689 %defattr(644,root,root,755)
690 %doc helpers/basic_auth/SMB/{README,ChangeLog,smb_auth.sh}
691 %doc helpers/basic_auth/multi-domain-NTLM/*
692 %attr(755,root,root) %{_libexecdir}/smb_auth*
695 %defattr(644,root,root,755)
696 %doc helpers/basic_auth/MSNT/README*
697 %attr(755,root,root) %{_libexecdir}/msnt_auth
698 %attr(640,root,squid) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/msntauth.conf
701 %defattr(644,root,root,755)
702 %attr(755,root,root) %{_libexecdir}/yp_auth
705 %defattr(644,root,root,755)
706 %attr(755,root,root) %{_libexecdir}/ncsa_auth
709 %defattr(644,root,root,755)
710 %doc helpers/basic_auth/SASL/{README,squid_sasl*}
711 %attr(755,root,root) %{_libexecdir}/sasl_auth
714 %defattr(644,root,root,755)
715 %attr(755,root,root) %{_libexecdir}/wb_auth
717 %files getpwname_auth
718 %defattr(644,root,root,755)
719 %attr(755,root,root) %{_libexecdir}/getpwname_auth
722 %defattr(644,root,root,755)
723 %attr(755,root,root) %{_libexecdir}/digest_pw_auth
726 %defattr(644,root,root,755)
727 %doc helpers/ntlm_auth/no_check/{README*,no_check.pl}
728 %attr(755,root,root) %{_libexecdir}/wb_ntlmauth
729 %attr(755,root,root) %{_libexecdir}/ntlm_auth
732 %defattr(644,root,root,755)
733 %doc helpers/external_acl/ip_user/{README,example*}
734 %attr(755,root,root) %{_libexecdir}/ip_user_check
737 %defattr(644,root,root,755)
738 %attr(755,root,root) %{_libexecdir}/squid_ldap_group
739 %{_mandir}/man8/%{name}_ldap_group.*
742 %defattr(644,root,root,755)
743 %doc helpers/external_acl/unix_group/README
744 %attr(755,root,root) %{_libexecdir}/squid_unix_group
745 %{_mandir}/man8/%{name}_unix_group.*
748 %defattr(644,root,root,755)
749 %attr(755,root,root) %{_libexecdir}/wbinfo_group.pl
752 %defattr(644,root,root,755)
753 %doc helpers/external_acl/winbind_group/readme.txt
754 %attr(755,root,root) %{_libexecdir}/wb_group
757 %defattr(644,root,root,755)
758 %attr(755,root,root) %{_libexecdir}/*.pl
759 %attr(755,root,root) %{_libexecdir}/contrib