2 # - check http://security.gentoo.org/glsa/glsa-200509-06.xml
5 %bcond_with combined_log # enables apache-like combined log format
7 Summary: SQUID Internet Object Cache
8 Summary(es): proxy/cache para WWW/FTP/gopher
9 Summary(pl): Uniwersalny serwer proxy-cache
10 Summary(pt_BR): Cache Squid de objetos Internet
11 Summary(ru): Squid - ËÜÛ ÏÂßÅËÔÏ× Internet
12 Summary(uk): Squid - ËÅÛ ÏÂ'¤ËÔ¦× Internet
13 Summary(zh_CN): SQUID ¸ßËÙ»º³å´úÀí·þÎñÆ÷
19 Group: Networking/Daemons
20 Source0: http://www.squid-cache.org/Versions/v2/2.5/%{name}-%{version}.tar.bz2
21 # Source0-md5: 7354255015b3772a1e024dfac173e48c
22 # http://www.squid-cache.org/Doc/FAQ/FAQ.tar.gz
23 Source1: %{name}-FAQ.tar.gz
24 # Source1-md5: cb9a955f8cda9cc166e086fccd412a43
26 Source3: %{name}.sysconfig
27 # http://squid-docs.sourceforge.net/latest/zip-files/book-full-html.zip
28 Source4: %{name}-book-full-html.zip
29 # Source4-md5: 4f3b6dab1de9cbb847df89d8b417378a
30 Source5: %{name}.conf.patch
31 Source6: %{name}.logrotate
33 # Bug fixes from Squid home page, please include URL
34 Patch0: http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE12-setenv.patch
36 Patch100: http://www.sed.pl/~mrk/qos/%{name}_hit_miss_mark.patch
37 Patch101: %{name}-fhs.patch
38 Patch102: %{name}-location.patch
39 Patch103: %{name}-domainmatch.patch
40 Patch104: %{name}-libnsl_fixes.patch
41 Patch105: %{name}-ac_fix.patch
42 Patch106: %{name}-crash-on-ENOSPC.patch
43 Patch107: %{name}-newssl.patch
44 Patch108: %{name}-nolibs.patch
45 Patch109: http://piorun.ds.pg.gda.pl/~blues/patches/%{name}-more_FD-new.patch
46 Patch110: %{name}-empty-referer.patch
47 Patch111: %{name}-align.patch
48 Patch112: %{name}-2.5.STABLE4-apache-like-combined-log.patch
49 URL: http://www.squid-cache.org/
50 BuildRequires: autoconf
51 BuildRequires: automake
52 BuildRequires: cyrus-sasl-devel >= 2.1.0
53 BuildRequires: openldap-devel
54 BuildRequires: openssl-devel >= 0.9.7d
55 BuildRequires: pam-devel
56 BuildRequires: perl-base
57 BuildRequires: rpmbuild(macros) >= 1.202
59 PreReq: rc-scripts >= 0.2.0
60 PreReq: setup >= 2.4.6
61 Requires(pre): /bin/id
62 Requires(pre): /usr/bin/getgid
63 Requires(pre): /usr/lib/rpm/user_group.sh
64 Requires(pre): /usr/sbin/groupadd
65 Requires(pre): /usr/sbin/useradd
66 Requires(post,preun): /sbin/chkconfig
67 Requires(post): fileutils
68 Requires(post): findutils
70 Requires(post): /bin/hostname
71 Requires(postun): /usr/sbin/groupdel
72 Requires(postun): /usr/sbin/userdel
73 Provides: group(squid)
75 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
77 %define _libexecdir %{_libdir}/%{name}
78 %define _sysconfdir /etc/%{name}
79 %define _cgidir /home/services/httpd/cgi-bin
82 Squid is a high-performance proxy caching server for web clients,
83 supporting FTP, gopher, and HTTP data objects. Unlike traditional
84 caching software, Squid handles all requests in a single,
85 non-blocking, I/O-driven process. Squid keeps meta data and especially
86 hot objects cached in RAM, caches DNS lookups, supports non-blocking
87 DNS lookups, and implements negative caching of failed requests. If
88 you are tight on memory, check out the NOVM version of this package.
89 Squid supports SSL, extensive access controls, and full request
90 logging. By using the lightweight Internet Cache Protocol, Squid
91 caches can be arranged in a hierarchy or mesh for additional bandwidth
92 savings. Squid consists of a main server program squid, a Domain Name
93 System lookup program dnsserver, a program for retrieving FTP data
94 ftpget, and some management and client tools. When squid starts up, it
95 spawns a configurable number of dnsserver processes, each of which can
96 perform a single, blocking Domain Name System (DNS) lookup. This
97 reduces the amount of time the cache waits for DNS lookups. Squid is
98 derived from the ARPA-funded Harvest project.
101 Squid es un servidor proxy con caché de alto desempeño para clientes
102 web, soportando FTP, gopher y HTTP. Diferentemente de softwares
103 tradicionales de caché squid manipula todas las requisiciones en un
104 único proceso sin bloqueos, direccionado a E/S. Mantienen metadatos y
105 objetos frecuentemente pedidos en uno caché en memoria RAM. Hace caché
106 de resoluciones DNS, soporta resoluciones DNS sin bloqueo y implementa
107 un caché negativo de requisiciones que fallen. Si tiene poca memoria
108 da un vistazo en la versión NOVM de este paquete. También soporta SSL,
109 controles extensivos de acceso y registro (log) completo de las
110 requisiciones. Usando el ligero Protocolo de Caches Internet (ICP)
111 puede ser usado en una jerarquía de servidores para mayor ahorro de la
112 banda de comunicación. Está compuesto del programa squid (servidor
113 principal), del programa dnsserver (para resolución DNS), del programa
114 ftpget (para transmisiones ftp) y otras herramientas clientes y para
115 administración. Cuando squid se inicia, dispara un número configurable
116 de procesos dnsserver, cada uno pudiendo ejecutar solamente una
117 resolución DNS con poder de bloquear. Esto reduce el tiempo que el
118 caché espera por resoluciones DNS. Fue derivado del proyecto Harvest,
119 financiado por la ARPA.
122 Squid jest wysoce wydajnym serwerem proxy-cache dla przegl±darek WWW,
123 klientów FTP i gopher. Squid przechowuje najczê¶ciej pobierane dane w
124 pamiêci RAM i zapamiêtuje odwo³ania do DNS. Squid oferuje wsparcie dla
125 SSL, rozbudowan± kontrolê dostêpu oraz pe³ne rejestrowanie pobieranych
126 danych. Dziêki u¿yciu protoko³u ICP (Internet Cache Protocol), serwer
127 squid mo¿na ³±czyæ w hierarchiê, zwiêkszaj±c ich efektywno¶æ. Pakiet
128 squid obejmuje: g³ówny program serwera squid, program dostarczaj±cy
129 informacji z DNS dnsserver, program odbieraj±cy dane FTP ftpget, oraz
130 pomocnicze programy do zarz±dzania. Squid wywodzi siê ze
131 sponsorowanego przez ARPA projektu Harvest.
133 %description -l pt_BR
134 O Squid é um servidor proxy com cache de alta performance para
135 clientes web, suportando FTP, gopher e HTTP. Diferentemente de
136 softwares tradicionais de cache o squid manipula todas as requisições
137 em um único processo sem bloqueios, direcionado a E/S.
139 Mantém meta dados e objetos freqüentemente pedidos num cache em
140 memória RAM. Faz cache de resoluções DNS, suporta resoluções DNS sem
141 bloqueio e implementa um cache negativo de requisições que falharem.
142 Se você tem pouca memória dê uma olhada na versão NOVM deste pacote.
144 Também suporta SSL, controles extensivos de acesso e registro (log)
145 completo das requisições. Usando o leve Protocolo de Caches Internet
146 (ICP) ele pode ser usado em uma hierarquia de servidores para maior
147 economia de banda de comunicação.
149 Ele consiste do programa squid (servidor principal), do programa
150 dnsserver (para resolução DNS), do programa ftpget (para transmissões
151 ftp) e outras ferramentas clientes e para gerenciamento. Quando o
152 squid é inicializado ele dispara um número configurável de processos
153 dnsserver, cada um podendo executar somente uma resolução DNS
154 bloqueante. Isto reduz o tempo que o cache espera por resoluções DNS.
156 Foi derivado do projeto Harvest, financiado pela ARPA.
159 Squid - ÜÔÏ ×ÙÓÏËÏÐÒÏÉÚ×ÏÄÉÔÅÌØÎÙÊ ËÜÛÉÒÕÀÝÉÊ ÐÒÏËÓÉ-ÓÅÒ×ÅÒ ÄÌÑ
160 ËÌÉÅÎÔÏ× web, ÐÏÄÄÅÒÖÉ×ÁÀÝÉÊ ÏÂßÅËÔÙ ÄÁÎÎÙÈ ÔÉÐÁ FTP, gopher É HTTP. ÷
161 ÏÔÌÉÞÉÅ ÏÔ ÔÒÁÄÉÃÉÏÎÎÙÈ ËÜÛÉÒÕÀÝÉÈ ÐÒÏÇÒÁÍÍ, Squid ÏÂÒÁÂÁÔÙ×ÁÅÔ ×ÓÅ
162 ÚÁÐÒÏÓÙ ÐÒÉ ÐÏÍÏÝÉ ÏÄÎÏÇÏ ÎÅÂÌÏËÉÒÕÀÝÅÇÏÓÑ, ÕÐÒÁ×ÌÑÅÍÏÇÏ
163 ××ÏÄÏÍ-×Ù×ÏÄÏÍ ÐÒÏÃÅÓÓÁ.
165 üÔÏÔ ÐÁËÅÔ ÉÍÅÅÔ ×ÓÔÒÏÅÎÎÕÀ ÐÏÄÄÅÒÖËÕ ÂÁÚÙ ÄÁÎÎÙÈ ÓÅÔÅ×ÙÈ ICMP-ÐÒÏÂ
169 Squid - ÃÅ ËÅÛÕÀÞÉÊ ÐÒÏËÓ¦-ÓÅÒ×ÅÒ ÄÌÑ web-Ë̦¤ÎÔ¦×, ÝÏ Ð¦ÄÔÒÉÍÕ¤
170 ÏÂ'¤ËÔÉ ÄÁÎÉÈ ÔÉÐÕ FTP, gopher ÔÁ HTTP. îÁ צÄͦÎÕ ×¦Ä ÔÒÁÄÉæÊÎÉÈ
171 ËÅÛÕÀÞÉÈ ÐÒÏÇÒÁÍ, Squid ÏÂÒÏÂÌѤ ×Ó¦ ÚÁÐÉÔÉ ÚÁ ÄÏÐÏÍÏÇÏÀ ÏÄÎÏÇÏ
172 ÎÅÂÌÏËÕÀÞÏÇÏ, ËÅÒÏ×ÁÎÏÇÏ ××ÏÄÏÍ-×É×ÏÄÏÍ ÐÒÏÃÅÓÕ.
174 ãÅÊ ÐÁËÅÔ ÍÁ¤ ×ÂÕÄÏ×ÁÎÕ Ð¦ÄÔÒÉÍËÕ ÂÁÚÉ ÄÁÎÉÈ ÍÅÒÅÖÅ×ÉÈ ICMP-ÐÒÏÂ
178 Summary: CGI script for Squid management
179 Summary(pl): Skrypt CGI do zarz±dzania Squidem przez WWW
180 Group: Networking/Admin
181 Requires: %{name} = %{epoch}:%{version}-%{release}
184 %description cachemgr
185 Cachemgr.cgi is a CGI script that allows administrator to chceck
186 various informations about Squid via WWW.
188 %description cachemgr -l pl
189 Cachemgr.cgi jest skryptem CGI, który pozwala administratorowi
190 zapoznaæ siê z informacjami o pracy Squida poprzez WWW.
193 Summary: LDAP authentication helper for Squid
194 Summary(pl): Obs³uga uwierzytelniania LDAP dla squida
195 Group: Networking/Admin
196 Requires: %{name} = %{epoch}:%{version}-%{release}
198 %description ldap_auth
199 This Squid helper allows authentication against LDAP directories using
200 the "simple authentication" (plain-text).
202 %description ldap_auth -l pl
203 Pakiet ten pozwala na uwierzytelnianie przez LDAP za pomoc± prostego
204 uwierzytelniania (otwartym tekstem).
207 Summary: PAM authentication helper for Squid
208 Summary(pl): Obs³uga uwierzytelniania PAM dla squida
209 Group: Networking/Admin
210 Requires: %{name} = %{epoch}:%{version}-%{release}
211 Requires: pam >= 0.77.3
213 %description pam_auth
214 This program authenticates users against a PAM configured
215 authentication service "squid". This allows you to authenticate Squid
216 users to any authentication source for which you have a PAM module.
218 %description pam_auth -l pl
219 Program ten pozwala na uwierzytelnianie u¿ytkowników squida w dowolnym
220 ¼ródle posiadaj±cym modu³ PAM.
223 Summary: SMB authentication helper for Squid
224 Summary(pl): Obs³uga uwierzytelniania SMB dla squida
225 Group: Networking/Admin
226 Requires: %{name} = %{epoch}:%{version}-%{release}
228 %description smb_auth
229 This is a proxy authentication module. With smb_auth you can
230 authenticate proxy users against an SMB server like Windows NT or
233 %description smb_auth -l pl
234 To jest modu³ uwierzytelniania proxy. Przy pomocy smb_auth mo¿na
235 uwierzytelniaæ u¿ytkowników proxy na serwerach SMB, jak Windows NT czy
239 Summary: MSNT domain authentication helper for Squid
240 Summary(pl): Obs³uga uwierzytelniania w domenie MSNT dla squida
241 Group: Networking/Admin
242 Requires: %{name} = %{epoch}:%{version}-%{release}
244 %description msnt_auth
245 This is an authentication module for the Squid proxy server to
246 authenticate users on an NT domain.
248 %description msnt_auth -l pl
249 Jest to modu³ uwierzytelniania proxy, który pozwala na
250 uwierzytelnianie u¿ytkowników proxy w domenie NT.
253 Summary: YP authentication helper for Squid
254 Summary(pl): Obs³uga uwierzytelniania YP dla squida
255 Group: Networking/Admin
256 Requires: %{name} = %{epoch}:%{version}-%{release}
259 This is an authentication module for the Squid proxy server to
260 authenticate users on YP.
262 %description yp_auth -l pl
263 Jest to modu³ uwierzytelniania proxy, który pozwala na
264 uwierzytelnianie u¿ytkowników proxy poprzez YP.
267 Summary: NCSA httpd style authentication helper for Squid
268 Summary(pl): Obs³uga uwierzytelniania NCSA httpd dla squida
269 Group: Networking/Admin
270 Requires: %{name} = %{epoch}:%{version}-%{release}
272 %description ncsa_auth
273 This module uses a NCSA httpd style password file for authentication.
275 %description ncsa_auth -l pl
276 Modu³ uwierzytelniania proxy u¿ywaj±cy pliku hase³ jak w NCSA httpd.
279 Summary: SASL authentication helper for Squid
280 Summary(pl): Obs³uga uwierzytelniania SASL dla squida
281 Group: Networking/Admin
282 Requires: %{name} = %{epoch}:%{version}-%{release}
284 %description sasl_auth
285 This is an authentication module for the Squid proxy server to
286 authenticate users via SASL.
288 %description sasl_auth -l pl
289 Jest to modu³ uwierzytelniania proxy, który pozwala na
290 uwierzytelnianie u¿ytkowników proxy poprzez SASL.
292 %package winbind_auth
293 Summary: WINBIND authentication helper for Squid
294 Summary(pl): Obs³uga uwierzytelniania WINBIND dla squida
295 Group: Networking/Admin
296 Requires: %{name} = %{epoch}:%{version}-%{release}
298 %description winbind_auth
299 This is an authentication module for the Squid proxy server to
300 authenticate users via WINBIND.
302 %description winbind_auth -l pl
303 Jest to modu³ uwierzytelniania proxy, który pozwala na
304 uwierzytelnianie u¿ytkowników proxy poprzez WINBIND.
306 %package getpwname_auth
307 Summary: getpwname authentication helper for Squid
308 Summary(pl): Obs³uga uwierzytelniania getpwname dla squida
309 Group: Networking/Admin
310 Requires: %{name} = %{epoch}:%{version}-%{release}
312 %description getpwname_auth
313 This is an authentication module for the Squid proxy server to
314 authenticate users using getpwname.
316 %description getpwname_auth -l pl
317 Jest to modu³ uwierzytelniania proxy, który pozwala na
318 uwierzytelnianie u¿ytkowników proxy poprzez getpwname.
321 Summary: passwd authentication helper for Squid
322 Summary(pl): Obs³uga uwierzytelniania passwd dla squida
323 Group: Networking/Admin
324 Requires: %{name} = %{epoch}:%{version}-%{release}
326 %description passwd_auth
327 This is an authentication module for the Squid proxy server to
328 authenticate users with separate passwd file.
330 %description passwd_auth -l pl
331 Jest to modu³ uwierzytelniania proxy, który pozwala na
332 uwierzytelnianie u¿ytkowników proxy poprzez oddzielny plik passwd.
335 Summary: NTLM authentication helper for Squid
336 Summary(pl): Obs³uga uwierzytelniania NTLM dla squida
337 Group: Networking/Admin
338 Requires: %{name} = %{epoch}:%{version}-%{release}
340 %description ntlm_auth
341 This is an authentication module for the Squid proxy server to
342 authenticate users on NTLM.
344 %description ntlm_auth -l pl
345 Jest to modu³ uwierzytelniania proxy, który pozwala na
346 uwierzytelnianie u¿ytkowników proxy poprzez NTLM.
349 Summary: IP external ACL helper for Squid
350 Summary(pl): Wsparcie kontroli dostêpu przez IP dla squida
351 Group: Networking/Admin
352 Requires: %{name} = %{epoch}:%{version}-%{release}
355 This is an external ACL module for the Squid proxy server to limit
356 access for users based on IP address.
358 %description ip_acl -l pl
359 Jest to modu³ kontroli dostêpu (ACL) do proxy, który pozwala na
360 ograniczenie dostêpu u¿ytkowników proxy na podstawie ich adresu IP.
363 Summary: LDAP group external ACL helper for Squid
364 Summary(pl): Wsparcie kontroli dostêpu przez grupy LDAP dla squida
365 Group: Networking/Admin
366 Requires: %{name} = %{epoch}:%{version}-%{release}
368 %description ldap_acl
369 This is an external ACL module for the Squid proxy server to limit
370 access for users based on LDAP group membership.
372 %description ldap_acl -l pl
373 Jest to modu³ kontroli dostêpu (ACL) do proxy, który pozwala na
374 ograniczenie dostêpu u¿ytkowników proxy na podstawie ich
375 przynale¿no¶ci do grup LDAP.
378 Summary: UNIX group external ACL helper for Squid
379 Summary(pl): Wsparcie kontroli dostêpu przez grupy UNIX dla squida
380 Group: Networking/Admin
381 Requires: %{name} = %{epoch}:%{version}-%{release}
383 %description unix_acl
384 This is an external ACL module for the Squid proxy server to limit
385 access for users based on UNIX group membership.
387 %description unix_acl -l pl
388 Jest to modu³ kontroli dostêpu (ACL) do proxy, który pozwala na
389 ograniczenie dostêpu u¿ytkowników proxy na podstawie ich
390 przynale¿no¶ci do grup UNIX.
393 Summary: NT domain group external ACL helper for Squid
394 Summary(pl): Wsparcie kontroli dostêpu przez grupy w domenie NT dla squida
395 Group: Networking/Admin
396 Requires: %{name} = %{epoch}:%{version}-%{release}
398 %description wbinfo_acl
399 This is an external ACL module for the Squid proxy server to limit
400 access for users based on NT domain group membership using wbinfo.
402 %description wbinfo_acl -l pl
403 Jest to modu³ kontroli dostêpu (ACL) do proxy, który pozwala na
404 ograniczenie dostêpu u¿ytkowników proxy na podstawie ich
405 przynale¿no¶ci do grup w domenie NT przy u¿yciu wbinfo.
408 Summary: NT domain group external ACL helper for Squid
409 Summary(pl): Wsparcie kontroli dostêpu przez grupy w domenie NT dla squida
410 Group: Networking/Admin
411 Requires: %{name} = %{epoch}:%{version}-%{release}
413 %description winbind_acl
414 This is an external ACL module for the Squid proxy server to limit
415 access for users based on NT domain group membership based on Samba
416 Winbindd from Samba 2.2.4 or greater.
418 %description winbind_acl -l pl
419 Jest to modu³ kontroli dostêpu (ACL) do proxy, który pozwala na
420 ograniczenie dostêpu u¿ytkowników proxy na podstawie ich
421 przynale¿no¶ci do grup w domenie NT oparty na Samba Winbindd z pakietu
422 Samba 2.2.4 lub wy¿szego.
426 # Bug fixes from Squid home page:
441 %{?with_combined_log:%patch112 -p1}
448 --datadir=%{_datadir}/squid \
449 --disable-ipf-transparent \
452 --enable-basic-auth-helpers=yes \
453 --enable-cache-digests \
455 --enable-delay-pools \
456 --enable-digest-auth-helpers=yes \
457 --enable-err-language=English \
458 --enable-external-acl-helpers=yes \
459 --enable-forw-via-db \
462 --enable-linux-netfilter \
463 --enable-ntlm-auth-helpers=yes \
464 --enable-referer-log \
465 --enable-removal-policies="lru heap" \
468 --enable-storeio="aufs,coss,diskd,null,ufs" \
469 --enable-underscores \
470 --enable-useragent-log \
471 --enable-x-accelerator-vary \
472 --localstatedir=/var \
473 --sysconfdir=%{_sysconfdir} \
478 perl -pi -e 's#%{_prefix}/.*bin/perl#%{_bindir}/perl#g' contrib/*
479 perl -pi -e 's#%{_prefix}/.*bin/perl#%{_bindir}/perl#g' scripts/*
480 find helpers/ -type f | xargs perl -pi -e 's#%{_prefix}/.*bin/perl#%{_bindir}/perl#g'
483 rm -rf $RPM_BUILD_ROOT
484 install -d $RPM_BUILD_ROOT%{_cgidir} \
485 $RPM_BUILD_ROOT/etc/{pam.d,rc.d/init.d,security,sysconfig,logrotate.d} \
486 $RPM_BUILD_ROOT{%{_sbindir},%{_bindir},%{_libexecdir}/contrib} \
487 $RPM_BUILD_ROOT%{_mandir}/man8 \
488 $RPM_BUILD_ROOT%{_datadir}/squid \
489 $RPM_BUILD_ROOT/var/{cache,log{,/archiv}}/squid
492 DESTDIR=$RPM_BUILD_ROOT
494 cp -a contrib/*.pl $RPM_BUILD_ROOT%{_libexecdir}/contrib
495 install scripts/*.pl $RPM_BUILD_ROOT%{_libexecdir}
497 install %{SOURCE7} $RPM_BUILD_ROOT/etc/pam.d/squid
498 touch $RPM_BUILD_ROOT/etc/security/blacklist.squid
500 mv -f $RPM_BUILD_ROOT%{_libdir}/squid/cachemgr.cgi $RPM_BUILD_ROOT%{_cgidir}
502 cd $RPM_BUILD_ROOT/etc/squid
503 cp -f squid.conf{,.default}
504 patch -p0 < %{SOURCE5}
507 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/squid
508 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/squid
509 install %{SOURCE6} $RPM_BUILD_ROOT/etc/logrotate.d/squid
511 touch $RPM_BUILD_ROOT/var/log/squid/{access,cache,store}.log
513 # These two files start squid. They are replaced by /etc/rc.d/init.d script.
514 rm -f $RPM_BUILD_ROOT%{_bindir}/R*
516 # cp, to have re-entrant install
519 # dunno why, but manual is not installed
520 mv docs/squid.8 $RPM_BUILD_ROOT%{_mandir}/man8
521 # We don't want Makefiles as docs...
524 # We don't like message: rpm found unpackaged files ...
525 rm -f $RPM_BUILD_ROOT/etc/squid/msntauth.conf.default \
526 $RPM_BUILD_ROOT/etc/squid/squid.conf.orig
528 > $RPM_BUILD_ROOT/var/cache/squid/netdb_state
529 > $RPM_BUILD_ROOT/var/cache/squid/swap.state
530 > $RPM_BUILD_ROOT/var/cache/squid/swap.state.clean
531 > $RPM_BUILD_ROOT/var/cache/squid/swap.state.last-clean
534 rm -rf $RPM_BUILD_ROOT
536 %triggerpostun -- squid < 7:2.5.STABLE7-5
537 %addusertogroup stats squid
540 %groupadd -g 91 squid
541 %useradd -o -u 91 -s /bin/false -g squid -c "SQUID http caching daemon" -d /var/cache/squid squid
542 %addusertogroup stats squid
544 [ -L %{_datadir}/squid/errors ] && rm -rf %{_datadir}/squid/errors || :
547 if ! grep -q "^visible_hostname" /etc/squid/squid.conf; then
548 hostname=`/bin/hostname -f 2>/dev/null` || hostname='localhost'
549 echo visible_hostname $hostname >> /etc/squid/squid.conf
552 if [ "$1" = "1" ]; then
553 /sbin/chkconfig --add squid
554 /etc/rc.d/init.d/squid init >&2
555 echo "Run \"/etc/rc.d/init.d/squid start\" to start squid." >&2
557 if [ -f /var/lock/subsys/squid ]; then
558 /etc/rc.d/init.d/squid restart >&2
563 if [ "$1" = "0" ]; then
564 if [ -f /var/lock/subsys/squid ]; then
565 /etc/rc.d/init.d/squid stop >&2
567 /sbin/chkconfig --del squid
569 # nuke squid cache if uninstalling
570 rm -rf /var/cache/squid/??
574 if [ "$1" = "0" ]; then
580 %defattr(644,root,root,755)
581 %doc CONTRIBUTORS COPYRIGHT CREDITS README ChangeLog QUICKSTART RELEASENOTES.html SPONSORS
582 %doc docs/* src/mib.txt FAQ*.html book-full.html
583 %attr(755,root,root) %{_bindir}/squidclient
584 %attr(755,root,root) %{_libexecdir}/diskd
585 # YES, it has to be suid root, it sends ICMP packets.
586 %attr(4754,root,squid) %{_libexecdir}/pinger
587 %attr(755,root,root) %{_libexecdir}/unlinkd
588 %attr(755,root,root) %{_libexecdir}/fakeauth_auth
589 %attr(755,root,root) %{_sbindir}/*
591 %attr(755,root,root) %dir %{_sysconfdir}
593 %attr(754,root,root) /etc/rc.d/init.d/squid
594 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/squid
595 %attr(640,root,squid) %config(noreplace) /etc/sysconfig/squid
596 %attr(640,root,squid) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/squid.conf
597 %attr(640,root,squid) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mime.conf
598 %attr(640,root,root) %{_sysconfdir}/mime.conf.default
599 %attr(640,root,root) %{_sysconfdir}/squid.conf.default
601 %dir %{_datadir}/squid
602 %dir %{_datadir}/squid/errors
603 %{_datadir}/squid/icons
604 %{_datadir}/squid/mib.txt
605 %lang(bg) %{_datadir}/squid/errors/Bulgarian
606 %lang(ca) %{_datadir}/squid/errors/Catalan
607 %lang(cs) %{_datadir}/squid/errors/Czech
608 %lang(da) %{_datadir}/squid/errors/Danish
609 %lang(nl) %{_datadir}/squid/errors/Dutch
610 %{_datadir}/squid/errors/English
611 %lang(et) %{_datadir}/squid/errors/Estonian
612 %lang(fi) %{_datadir}/squid/errors/Finnish
613 %lang(fr) %{_datadir}/squid/errors/French
614 %lang(de) %{_datadir}/squid/errors/German
615 %lang(el) %{_datadir}/squid/errors/Greek
616 %lang(he) %{_datadir}/squid/errors/Hebrew
617 %lang(hu) %{_datadir}/squid/errors/Hungarian
618 %lang(it) %{_datadir}/squid/errors/Italian
619 %lang(ja) %{_datadir}/squid/errors/Japanese
620 %lang(ko) %{_datadir}/squid/errors/Korean
621 %lang(lt) %{_datadir}/squid/errors/Lithuanian
622 %lang(pl) %{_datadir}/squid/errors/Polish
623 %lang(pt) %{_datadir}/squid/errors/Portuguese
624 %lang(ro) %{_datadir}/squid/errors/Romanian
625 %lang(ru) %{_datadir}/squid/errors/Russian-1251
626 %lang(ru) %{_datadir}/squid/errors/Russian-koi8-r
627 %lang(zh_CN) %{_datadir}/squid/errors/Simplify_Chinese
628 %lang(sk) %{_datadir}/squid/errors/Slovak
629 %lang(es) %{_datadir}/squid/errors/Spanish
630 %lang(sr) %{_datadir}/squid/errors/Serbian
631 %lang(sv) %{_datadir}/squid/errors/Swedish
632 %lang(zh_TW) %{_datadir}/squid/errors/Traditional_Chinese
633 %lang(tr) %{_datadir}/squid/errors/Turkish
635 %attr(755,root,root) %dir %{_libexecdir}
636 %attr(755,root,root) %{_libexecdir}/*.pl
637 %attr(755,root,root) %{_libexecdir}/contrib
639 %attr(770,root,squid) %dir /var/log/archiv/squid
640 %attr(770,root,squid) %dir /var/log/squid
641 %attr(660,root,squid) %ghost /var/log/squid/*
643 %attr(770,root,squid) %dir /var/cache/squid
644 %ghost /var/cache/squid/netdb_state
645 %ghost /var/cache/squid/swap.state
646 %ghost /var/cache/squid/swap.state.clean
647 %ghost /var/cache/squid/swap.state.last-clean
648 %{_mandir}/man8/squid.8*
651 %defattr(644,root,root,755)
652 %attr(640,root,squid) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cachemgr.conf
653 %attr(755,root,root) %{_cgidir}/*
654 %{_mandir}/man8/cachemgr.cgi.8*
657 %defattr(644,root,root,755)
658 %doc helpers/basic_auth/LDAP/README
659 %attr(755,root,root) %{_libexecdir}/%{name}_ldap_auth
660 %{_mandir}/man8/%{name}_ldap_auth.*
663 %defattr(644,root,root,755)
664 %doc helpers/basic_auth/PAM/pam_auth.c
665 %config(noreplace) /etc/pam.d/squid
666 %config(noreplace) /etc/security/blacklist.squid
667 %attr(755,root,root) %{_libexecdir}/pam_auth
668 %{_mandir}/man8/pam_auth.8*
671 %defattr(644,root,root,755)
672 %doc helpers/basic_auth/SMB/{README,ChangeLog,smb_auth.sh}
673 %doc helpers/basic_auth/multi-domain-NTLM/*
674 %attr(755,root,root) %{_libexecdir}/smb_auth*
677 %defattr(644,root,root,755)
678 %doc helpers/basic_auth/MSNT/README*
679 %attr(755,root,root) %{_libexecdir}/msnt_auth
680 %attr(640,root,squid) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/msntauth.conf
683 %defattr(644,root,root,755)
684 %attr(755,root,root) %{_libexecdir}/yp_auth
687 %defattr(644,root,root,755)
688 %attr(755,root,root) %{_libexecdir}/ncsa_auth
691 %defattr(644,root,root,755)
692 %doc helpers/basic_auth/SASL/{README,squid_sasl*}
693 %attr(755,root,root) %{_libexecdir}/sasl_auth
696 %defattr(644,root,root,755)
697 %attr(755,root,root) %{_libexecdir}/wb_auth
699 %files getpwname_auth
700 %defattr(644,root,root,755)
701 %attr(755,root,root) %{_libexecdir}/getpwname_auth
704 %defattr(644,root,root,755)
705 %attr(755,root,root) %{_libexecdir}/digest_pw_auth
708 %defattr(644,root,root,755)
709 %doc helpers/ntlm_auth/no_check/{README*,no_check.pl}
710 %attr(755,root,root) %{_libexecdir}/wb_ntlmauth
711 %attr(755,root,root) %{_libexecdir}/ntlm_auth
714 %defattr(644,root,root,755)
715 %doc helpers/external_acl/ip_user/{README,example*}
716 %attr(755,root,root) %{_libexecdir}/ip_user_check
719 %defattr(644,root,root,755)
720 %attr(755,root,root) %{_libexecdir}/squid_ldap_group
721 %{_mandir}/man8/%{name}_ldap_group.*
724 %defattr(644,root,root,755)
725 %doc helpers/external_acl/unix_group/README
726 %attr(755,root,root) %{_libexecdir}/squid_unix_group
727 %{_mandir}/man8/%{name}_unix_group.*
730 %defattr(644,root,root,755)
731 %attr(755,root,root) %{_libexecdir}/wbinfo_group.pl
734 %defattr(644,root,root,755)
735 %doc helpers/external_acl/winbind_group/readme.txt
736 %attr(755,root,root) %{_libexecdir}/wb_group