]> git.pld-linux.org Git - packages/squid.git/blob - squid.spec
- updated to 2.5.STABLE13
[packages/squid.git] / squid.spec
1 #
2 # Conditional build:
3 %bcond_with     combined_log    # enables apache-like combined log format
4 #
5 Summary:        SQUID Internet Object Cache
6 Summary(es):    proxy/cache para www/ftp/gopher
7 Summary(pl):    Uniwersalny proxy-cache server
8 Summary(pt_BR): Cache Squid de objetos Internet
9 Summary(ru):    Squid - ËÜÛ ÏÂßÅËÔÏ× Internet
10 Summary(uk):    Squid - ËÅÛ ÏÂ'¤ËԦנInternet
11 Summary(zh_CN): SQUID ¸ßËÙ»º³å´úÀí·þÎñÆ÷
12 Name:           squid
13 Version:        2.5.STABLE13
14 Release:        1
15 Epoch:          7
16 License:        GPL v2
17 Group:          Networking/Daemons
18 Source0:        http://www.squid-cache.org/Versions/v2/2.5/%{name}-%{version}.tar.bz2
19 # Source0-md5:  3e64468e123be1246d17486dab6bee87
20 # http://www.squid-cache.org/Doc/FAQ/FAQ.tar.gz
21 Source1:        %{name}-FAQ.tar.gz
22 # Source1-md5:  cb9a955f8cda9cc166e086fccd412a43
23 Source2:        %{name}.init
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
30 Source7:        %{name}.pamd
31 # Bug fixes from Squid home page, please include URL
32 # Other patches:
33 Patch100:       http://www.sed.pl/~mrk/qos/%{name}_hit_miss_mark.patch
34 Patch101:       %{name}-fhs.patch
35 Patch102:       %{name}-location.patch
36 Patch103:       %{name}-domainmatch.patch
37 Patch104:       %{name}-libnsl_fixes.patch
38 Patch105:       %{name}-ac_fix.patch
39 Patch106:       %{name}-crash-on-ENOSPC.patch
40 Patch107:       %{name}-nolibs.patch
41 Patch108:       http://piorun.ds.pg.gda.pl/~blues/patches/%{name}-more_FD-new.patch
42 Patch109:       %{name}-empty-referer.patch
43 Patch110:       %{name}-align.patch
44 Patch111:       %{name}-2.5.STABLE4-apache-like-combined-log.patch
45 URL:            http://www.squid-cache.org/
46 BuildRequires:  autoconf
47 BuildRequires:  automake
48 BuildRequires:  cyrus-sasl-devel >= 1.5.27
49 BuildRequires:  openldap-devel
50 BuildRequires:  openssl-devel >= 0.9.6m
51 BuildRequires:  pam-devel
52 BuildRequires:  perl
53 PreReq:         rc-scripts >= 0.2.0
54 Requires(pre):  /bin/id
55 Requires(pre):  /usr/bin/getgid
56 Requires(pre):  /usr/sbin/groupadd
57 Requires(pre):  /usr/sbin/useradd
58 Requires(post,preun):   /sbin/chkconfig
59 Requires(post): fileutils
60 Requires(post): findutils
61 Requires(post): grep
62 Requires(post): /bin/hostname
63 Requires(postun):       /usr/sbin/groupdel
64 Requires(postun):       /usr/sbin/userdel
65 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
66
67 %define         _libexecdir     %{_libdir}/%{name}
68 %define         _sysconfdir     /etc/%{name}
69 %define         _cgidir         /home/httpd/cgi-bin
70
71 %description
72 Squid is a high-performance proxy caching server for web clients,
73 supporting FTP, gopher, and HTTP data objects. Unlike traditional
74 caching software, Squid handles all requests in a single,
75 non-blocking, I/O-driven process. Squid keeps meta data and especially
76 hot objects cached in RAM, caches DNS lookups, supports non-blocking
77 DNS lookups, and implements negative caching of failed requests. If
78 you are tight on memory, check out the NOVM version of this package.
79 Squid supports SSL, extensive access controls, and full request
80 logging. By using the lightweight Internet Cache Protocol, Squid
81 caches can be arranged in a hierarchy or mesh for additional bandwidth
82 savings. Squid consists of a main server program squid, a Domain Name
83 System lookup program dnsserver, a program for retrieving FTP data
84 ftpget, and some management and client tools. When squid starts up, it
85 spawns a configurable number of dnsserver processes, each of which can
86 perform a single, blocking Domain Name System (DNS) lookup. This
87 reduces the amount of time the cache waits for DNS lookups. Squid is
88 derived from the ARPA-funded Harvest project.
89
90 %description -l es
91 Squid es un servidor proxy con caché de alto desempeño para clientes
92 web, soportando FTP, gopher y HTTP. Diferentemente de softwares
93 tradicionales de caché squid manipula todas las requisiciones en un
94 único proceso sin bloqueos, direccionado a E/S. Mantienen metadatos y
95 objetos frecuentemente pedidos en uno caché en memoria RAM. Hace caché
96 de resoluciones DNS, soporta resoluciones DNS sin bloqueo y implementa
97 un caché negativo de requisiciones que fallen. Si tiene poca memoria
98 da un vistazo en la versión NOVM de este paquete. También soporta SSL,
99 controles extensivos de acceso y registro (log) completo de las
100 requisiciones. Usando el ligero Protocolo de Caches Internet (ICP)
101 puede ser usado en una jerarquía de servidores para mayor ahorro de la
102 banda de comunicación. Está compuesto del programa squid (servidor
103 principal), del programa dnsserver (para resolución DNS), del programa
104 ftpget (para transmisiones ftp) y otras herramientas clientes y para
105 administración. Cuando squid se inicia, dispara un número configurable
106 de procesos dnsserver, cada uno pudiendo ejecutar solamente una
107 resolución DNS con poder de bloquear. Esto reduce el tiempo que el
108 caché espera por resoluciones DNS. Fue derivado del proyecto Harvest,
109 financiado por la ARPA.
110
111 %description -l pl
112 Squid jest wysoce wydajnym serwerem proxy-cache dla przegl±darek WWW,
113 klientów FTP i gopher. Squid przechowuje najczê¶ciej pobierane dane w
114 pamiêci RAM i zapamiêtuje odwo³ania do DNS. Squid oferuje wsparcie dla
115 SSL, rozbudowan± kontrolê dostêpu oraz pe³ne rejestrowanie pobieranych
116 danych. Dziêki u¿yciu protoko³u ICP (Internet Cache Protocol), serwer
117 squid mo¿na ³±czyæ w hierarchiê, zwiêkszaj±c ich efektywno¶æ. Pakiet
118 squid obejmuje: g³ówny program serwera squid, program dostarczaj±cy
119 informacji z DNS dnsserver, program odbieraj±cy dane FTP ftpget, oraz
120 pomocnicze programy do zarz±dzania. Squid wywodzi siê ze
121 sponsorowanego przez ARPA projektu Harvest.
122
123 %description -l pt_BR
124 O Squid é um servidor proxy com cache de alta performance para
125 clientes web, suportando FTP, gopher e HTTP. Diferentemente de
126 softwares tradicionais de cache o squid manipula todas as requisições
127 em um único processo sem bloqueios, direcionado a E/S.
128
129 Mantém meta dados e objetos freqüentemente pedidos num cache em
130 memória RAM. Faz cache de resoluções DNS, suporta resoluções DNS sem
131 bloqueio e implementa um cache negativo de requisições que falharem.
132 Se você tem pouca memória dê uma olhada na versão NOVM deste pacote.
133
134 Também suporta SSL, controles extensivos de acesso e registro (log)
135 completo das requisições. Usando o leve Protocolo de Caches Internet
136 (ICP) ele pode ser usado em uma hierarquia de servidores para maior
137 economia de banda de comunicação.
138
139 Ele consiste do programa squid (servidor principal), do programa
140 dnsserver (para resolução DNS), do programa ftpget (para transmissões
141 ftp) e outras ferramentas clientes e para gerenciamento. Quando o
142 squid é inicializado ele dispara um número configurável de processos
143 dnsserver, cada um podendo executar somente uma resolução DNS
144 bloqueante. Isto reduz o tempo que o cache espera por resoluções DNS.
145
146 Foi derivado do projeto Harvest, financiado pela ARPA.
147
148 %description -l ru
149 Squid - ÜÔÏ ×ÙÓÏËÏÐÒÏÉÚ×ÏÄÉÔÅÌØÎÙÊ ËÜÛÉÒÕÀÝÉÊ ÐÒÏËÓÉ-ÓÅÒ×ÅÒ ÄÌÑ
150 ËÌÉÅÎÔÏ× web, ÐÏÄÄÅÒÖÉ×ÁÀÝÉÊ ÏÂßÅËÔÙ ÄÁÎÎÙÈ ÔÉÐÁ FTP, gopher É HTTP. ÷
151 ÏÔÌÉÞÉÅ ÏÔ ÔÒÁÄÉÃÉÏÎÎÙÈ ËÜÛÉÒÕÀÝÉÈ ÐÒÏÇÒÁÍÍ, Squid ÏÂÒÁÂÁÔÙ×ÁÅÔ ×ÓÅ
152 ÚÁÐÒÏÓÙ ÐÒÉ ÐÏÍÏÝÉ ÏÄÎÏÇÏ ÎÅÂÌÏËÉÒÕÀÝÅÇÏÓÑ, ÕÐÒÁ×ÌÑÅÍÏÇÏ
153 ××ÏÄÏÍ-×Ù×ÏÄÏÍ ÐÒÏÃÅÓÓÁ.
154
155 üÔÏÔ ÐÁËÅÔ ÉÍÅÅÔ ×ÓÔÒÏÅÎÎÕÀ ÐÏÄÄÅÒÖËÕ ÂÁÚÙ ÄÁÎÎÙÈ ÓÅÔÅ×ÙÈ ICMP-ÐÒÏÂ
156 (Netdb).
157
158 %description -l uk
159 Squid - ÃÅ ËÅÛÕÀÞÉÊ ÐÒÏËÓ¦-ÓÅÒ×ÅÒ ÄÌÑ web-Ë̦¤ÎÔ¦×, ÝϠЦÄÔÒÉÍÕ¤
160 ÏÂ'¤ËÔÉ ÄÁÎÉÈ ÔÉÐÕ FTP, gopher ÔÁ HTTP. îÁ ×¦ÄͦÎՠצĠÔÒÁÄÉæÊÎÉÈ
161 ËÅÛÕÀÞÉÈ ÐÒÏÇÒÁÍ, Squid ÏÂÒÏÂÌѤ ×Ó¦ ÚÁÐÉÔÉ ÚÁ ÄÏÐÏÍÏÇÏÀ ÏÄÎÏÇÏ
162 ÎÅÂÌÏËÕÀÞÏÇÏ, ËÅÒÏ×ÁÎÏÇÏ ××ÏÄÏÍ-×É×ÏÄÏÍ ÐÒÏÃÅÓÕ.
163
164 ãÅÊ ÐÁËÅÔ ÍÁ¤ ×ÂÕÄÏ×ÁÎՠЦÄÔÒÉÍËÕ ÂÁÚÉ ÄÁÎÉÈ ÍÅÒÅÖÅ×ÉÈ ICMP-ÐÒÏÂ
165 (Netdb).
166
167 %package cachemgr
168 Summary:        CGI script for Squid management
169 Summary(pl):    Skrypt CGI do zarz±dzania Squidem przez WWW
170 Group:          Networking/Admin
171 Requires:       %{name} = %{epoch}:%{version}-%{release}
172 Requires:       httpd
173
174 %description cachemgr
175 Cachemgr.cgi is a CGI script that allows administrator to chceck
176 various informations about Squid via WWW.
177
178 %description cachemgr -l pl
179 Cachemgr.cgi jest skryptem CGI, który pozwala administratorowi
180 zapoznaæ siê z informacjami o pracy Squida poprzez WWW.
181
182 %package ldap_auth
183 Summary:        LDAP authentication helper for Squid
184 Summary(pl):    Obs³uga uwierzytelniania LDAP dla squida
185 Group:          Networking/Admin
186 Requires:       %{name} = %{epoch}:%{version}-%{release}
187
188 %description ldap_auth
189 This Squid helper allows authentication against LDAP directories using
190 the "simple authentication" (plain-text).
191
192 %description ldap_auth -l pl
193 Pakiet ten pozwala na uwierzytelnianie przez LDAP za pomoc± prostego
194 uwierzytelniania (otwartym tekstem).
195
196 %package pam_auth
197 Summary:        PAM authentication helper for Squid
198 Summary(pl):    Obs³uga uwierzytelniania PAM dla squida
199 Group:          Networking/Admin
200 Requires:       %{name} = %{epoch}:%{version}-%{release}
201 Requires:       pam >= 0.77.3
202
203 %description pam_auth
204 This program authenticates users against a PAM configured
205 authentication service "squid". This allows you to authenticate Squid
206 users to any authentication source for which you have a PAM module.
207
208 %description pam_auth -l pl
209 Program ten pozwala na uwierzytelnianie u¿ytkowników squida w dowolnym
210 ¼ródle posiadaj±cym modu³ PAM.
211
212 %package smb_auth
213 Summary:        SMB authentication helper for Squid
214 Summary(pl):    Obs³uga uwierzytelniania SMB dla squida
215 Group:          Networking/Admin
216 Requires:       %{name} = %{epoch}:%{version}-%{release}
217
218 %description smb_auth
219 This is a proxy authentication module. With smb_auth you can
220 authenticate proxy users against an SMB server like Windows NT or
221 Samba.
222
223 %description smb_auth -l pl
224 To jest modu³ uwierzytelniania proxy. Przy pomocy smb_auth mo¿na
225 uwierzytelniaæ u¿ytkowników proxy na serwerach SMB, jak Windows NT czy
226 Samba.
227
228 %package msnt_auth
229 Summary:        MSNT domain authentication helper for Squid
230 Summary(pl):    Obs³uga uwierzytelniania w domenie MSNT dla squida
231 Group:          Networking/Admin
232 Requires:       %{name} = %{epoch}:%{version}-%{release}
233
234 %description msnt_auth
235 This is an authentication module for the Squid proxy server to
236 authenticate users on an NT domain.
237
238 %description msnt_auth -l pl
239 Jest to modu³ uwierzytelniania proxy, który pozwala na
240 uwierzytelnianie u¿ytkowników proxy w domenie NT.
241
242 %package yp_auth
243 Summary:        YP authentication helper for Squid
244 Summary(pl):    Obs³uga uwierzytelniania YP dla squida
245 Group:          Networking/Admin
246 Requires:       %{name} = %{epoch}:%{version}-%{release}
247
248 %description yp_auth
249 This is an authentication module for the Squid proxy server to
250 authenticate users on YP.
251
252 %description yp_auth -l pl
253 Jest to modu³ uwierzytelniania proxy, który pozwala na
254 uwierzytelnianie u¿ytkowników proxy poprzez YP.
255
256 %package ncsa_auth
257 Summary:        NCSA httpd style authentication helper for Squid
258 Summary(pl):    Obs³uga uwierzytelniania NCSA httpd dla squida
259 Group:          Networking/Admin
260 Requires:       %{name} = %{epoch}:%{version}-%{release}
261
262 %description ncsa_auth
263 This module uses a NCSA httpd style password file for authentication.
264
265 %description ncsa_auth -l pl
266 Modu³ uwierzytelniania proxy u¿ywaj±cy pliku hase³ jak w NCSA httpd.
267
268 %package sasl_auth
269 Summary:        SASL authentication helper for Squid
270 Summary(pl):    Obs³uga uwierzytelniania SASL dla squida
271 Group:          Networking/Admin
272 Requires:       %{name} = %{epoch}:%{version}-%{release}
273
274 %description sasl_auth
275 This is an authentication module for the Squid proxy server to
276 authenticate users via SASL.
277
278 %description sasl_auth -l pl
279 Jest to modu³ uwierzytelniania proxy, który pozwala na
280 uwierzytelnianie u¿ytkowników proxy poprzez SASL.
281
282 %package winbind_auth
283 Summary:        WINBIND authentication helper for Squid
284 Summary(pl):    Obs³uga uwierzytelniania WINBIND dla squida
285 Group:          Networking/Admin
286 Requires:       %{name} = %{epoch}:%{version}-%{release}
287
288 %description winbind_auth
289 This is an authentication module for the Squid proxy server to
290 authenticate users via WINBIND.
291
292 %description winbind_auth -l pl
293 Jest to modu³ uwierzytelniania proxy, który pozwala na
294 uwierzytelnianie u¿ytkowników proxy poprzez WINBIND.
295
296 %package getpwname_auth
297 Summary:        getpwname authentication helper for Squid
298 Summary(pl):    Obs³uga uwierzytelniania getpwname dla squida
299 Group:          Networking/Admin
300 Requires:       %{name} = %{epoch}:%{version}-%{release}
301
302 %description getpwname_auth
303 This is an authentication module for the Squid proxy server to
304 authenticate users using getpwname.
305
306 %description getpwname_auth -l pl
307 Jest to modu³ uwierzytelniania proxy, który pozwala na
308 uwierzytelnianie u¿ytkowników proxy poprzez getpwname.
309
310 %package passwd_auth
311 Summary:        passwd authentication helper for Squid
312 Summary(pl):    Obs³uga uwierzytelniania passwd dla squida
313 Group:          Networking/Admin
314 Requires:       %{name} = %{epoch}:%{version}-%{release}
315
316 %description passwd_auth
317 This is an authentication module for the Squid proxy server to
318 authenticate users with separate passwd file.
319
320 %description passwd_auth -l pl
321 Jest to modu³ uwierzytelniania proxy, który pozwala na
322 uwierzytelnianie u¿ytkowników proxy poprzez oddzielny plik passwd.
323
324 %package ntlm_auth
325 Summary:        NTLM authentication helper for Squid
326 Summary(pl):    Obs³uga uwierzytelniania NTLM dla squida
327 Group:          Networking/Admin
328 Requires:       %{name} = %{epoch}:%{version}-%{release}
329
330 %description ntlm_auth
331 This is an authentication module for the Squid proxy server to
332 authenticate users on NTLM.
333
334 %description ntlm_auth -l pl
335 Jest to modu³ uwierzytelniania proxy, który pozwala na
336 uwierzytelnianie u¿ytkowników proxy poprzez NTLM.
337
338 %package ip_acl
339 Summary:        IP external ACL helper for Squid
340 Summary(pl):    Wsparcie kontroli dostêpu przez IP dla squida
341 Group:          Networking/Admin
342 Requires:       %{name} = %{epoch}:%{version}-%{release}
343
344 %description ip_acl
345 This is an external ACL module for the Squid proxy server to limit
346 access for users based on IP address.
347
348 %description ip_acl -l pl
349 Jest to modu³ kontroli dostêpu (ACL) do proxy, który pozwala na
350 ograniczenie dostêpu u¿ytkowników proxy na podstawie ich adresu IP.
351
352 %package ldap_acl
353 Summary:        LDAP group external ACL helper for Squid
354 Summary(pl):    Wsparcie kontroli dostêpu przez grupy LDAP dla squida
355 Group:          Networking/Admin
356 Requires:       %{name} = %{epoch}:%{version}-%{release}
357
358 %description ldap_acl
359 This is an external ACL module for the Squid proxy server to limit
360 access for users based on LDAP group membership.
361
362 %description ldap_acl -l pl
363 Jest to modu³ kontroli dostêpu (ACL) do proxy, który pozwala na
364 ograniczenie dostêpu u¿ytkowników proxy na podstawie ich
365 przynale¿no¶ci do grup LDAP.
366
367 %package unix_acl
368 Summary:        UNIX group external ACL helper for Squid
369 Summary(pl):    Wsparcie kontroli dostêpu przez grupy UNIX dla squida
370 Group:          Networking/Admin
371 Requires:       %{name} = %{epoch}:%{version}-%{release}
372
373 %description unix_acl
374 This is an external ACL module for the Squid proxy server to limit
375 access for users based on UNIX group membership.
376
377 %description unix_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 UNIX.
381
382 %package wbinfo_acl
383 Summary:        NT domain group external ACL helper for Squid
384 Summary(pl):    Wsparcie kontroli dostêpu przez grupy w domenie NT dla squida
385 Group:          Networking/Admin
386 Requires:       %{name} = %{epoch}:%{version}-%{release}
387
388 %description wbinfo_acl
389 This is an external ACL module for the Squid proxy server to limit
390 access for users based on NT domain group membership using wbinfo.
391
392 %description wbinfo_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 w domenie NT przy u¿yciu wbinfo.
396
397 %package winbind_acl
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
401 Requires:       %{name} = %{epoch}:%{version}-%{release}
402
403 %description winbind_acl
404 This is an external ACL module for the Squid proxy server to limit
405 access for users based on NT domain group membership based on Samba
406 Winbindd from Samba 2.2.4 or greater.
407
408 %description winbind_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 oparty na Samba Winbindd z pakietu
412 Samba 2.2.4 lub wy¿szego.
413
414 %prep
415 %setup -q -a1 -a4
416 # Bug fixes from Squid home page:
417 # Other patches:
418 %patch100 -p1
419 %patch101 -p1
420 %patch102 -p1
421 %patch103 -p1
422 %patch104 -p1
423 %patch105 -p1
424 %patch106 -p1
425 %patch107 -p1
426 %patch108 -p1
427 %patch109 -p1
428 %patch110 -p1
429 %{?with_combined_log:%patch111 -p1}
430
431 %build
432 %{__aclocal}
433 %{__autoconf}
434 %{__automake}
435 %configure \
436         --datadir=%{_datadir}/squid \
437         --disable-ipf-transparent \
438         --enable-arp-acl \
439         --enable-auth=yes \
440         --enable-basic-auth-helpers=yes \
441         --enable-cache-digests \
442         --enable-carp \
443         --enable-delay-pools \
444         --enable-digest-auth-helpers=yes \
445         --enable-err-language=English \
446         --enable-external-acl-helpers=yes \
447         --enable-forw-via-db \
448         --enable-htcp \
449         --enable-icmp \
450         --enable-ntlm-auth-helpers=yes \
451         --enable-referer-log \
452         --enable-removal-policies="lru heap" \
453         --enable-ssl \
454         --enable-snmp \
455         --enable-storeio="aufs,coss,diskd,null,ufs" \
456         --enable-underscores \
457         --enable-useragent-log \
458         --enable-x-accelerator-vary \
459         --localstatedir=/var \
460         --sysconfdir=%{_sysconfdir} \
461         --with-pthreads
462
463 %{__make}
464
465 perl -pi -e 's#%{_prefix}/.*bin/perl#%{_bindir}/perl#g' contrib/*
466 perl -pi -e 's#%{_prefix}/.*bin/perl#%{_bindir}/perl#g' scripts/*
467 find helpers/ -type f | xargs perl -pi -e 's#%{_prefix}/.*bin/perl#%{_bindir}/perl#g'
468
469 %install
470 rm -rf $RPM_BUILD_ROOT
471 install -d $RPM_BUILD_ROOT%{_cgidir} \
472         $RPM_BUILD_ROOT/etc/{pam.d,rc.d/init.d,security,sysconfig,logrotate.d} \
473         $RPM_BUILD_ROOT{%{_sbindir},%{_bindir},%{_libexecdir}/contrib} \
474         $RPM_BUILD_ROOT%{_mandir}/man8 \
475         $RPM_BUILD_ROOT%{_datadir}/squid \
476         $RPM_BUILD_ROOT/var/{cache,log{,/archiv}}/squid
477
478 %{__make} install \
479         DESTDIR=$RPM_BUILD_ROOT
480
481 cp -a contrib/*.pl $RPM_BUILD_ROOT%{_libexecdir}/contrib
482 install scripts/*.pl $RPM_BUILD_ROOT%{_libexecdir}
483
484 install %{SOURCE7} $RPM_BUILD_ROOT/etc/pam.d/squid
485 touch $RPM_BUILD_ROOT/etc/security/blacklist.squid
486
487 mv -f $RPM_BUILD_ROOT%{_libdir}/squid/cachemgr.cgi $RPM_BUILD_ROOT%{_cgidir}
488
489 cd $RPM_BUILD_ROOT/etc/squid
490 cp -f squid.conf{,.default}
491 patch -p0 < %{SOURCE5}
492 cd -
493
494 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/squid
495 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/squid
496 install %{SOURCE6} $RPM_BUILD_ROOT/etc/logrotate.d/squid
497
498 touch $RPM_BUILD_ROOT/var/log/squid/{access,cache,store}.log
499
500 # These two files start squid. They are replaced by /etc/rc.d/init.d script.
501 rm -f $RPM_BUILD_ROOT%{_bindir}/R*
502
503 # dunno why, but manual is not installed
504 mv doc/squid.8 $RPM_BUILD_ROOT%{_mandir}/man8
505
506 # We don't want Makefiles as docs...
507 rm -f doc/Makefile*
508
509 # We don't like message: rpm found unpackaged files ...
510 rm -f $RPM_BUILD_ROOT/etc/squid/msntauth.conf.default \
511         $RPM_BUILD_ROOT/etc/squid/squid.conf.orig
512
513 %clean
514 rm -rf $RPM_BUILD_ROOT
515
516 %pre
517 if [ -n "`getgid squid`" ]; then
518         if [ "`getgid squid`" != "91" ]; then
519                 echo "Error: group squid doesn't have gid=91. Correct this before installing squid." 1>&2
520                 exit 1
521         fi
522 else
523         /usr/sbin/groupadd -g 91 -r -f squid 1>&2 || :
524 fi
525 if [ -n "`id -u squid 2>/dev/null`" ]; then
526         if [ "`id -u squid`" != "91" ]; then
527                 echo "Error: user squid doesn't have uid=91. Correct this before installing squid." 1>&2
528                 exit 1
529         fi
530 else
531         /usr/sbin/useradd -M -o -r -u 91 -s /bin/false \
532                 -g squid -c "SQUID http caching daemon" -d /var/cache/squid squid 1>&2 || :
533 fi
534 [ -L %{_datadir}/squid/errors ] && rm -rf %{_datadir}/squid/errors || :
535
536 %post
537 if ! grep -q "^visible_hostname" /etc/squid/squid.conf; then
538         echo visible_hostname `/bin/hostname -f` >> /etc/squid/squid.conf
539 fi
540
541 if [ "$1" = "1" ]; then
542         /sbin/chkconfig --add squid
543         echo "Run \"/etc/rc.d/init.d/squid start\" to start squid." >&2
544 else
545         if [ -f /var/lock/subsys/squid ]; then
546                 /etc/rc.d/init.d/squid restart >&2
547         fi
548 fi
549
550 %preun
551 if [ "$1" = "0" ]; then
552         if [ -f /var/lock/subsys/squid ]; then
553                 /etc/rc.d/init.d/squid stop >&2
554         fi
555         /sbin/chkconfig --del squid
556 fi
557
558 %postun
559 if [ "$1" = "0" ]; then
560         /usr/sbin/userdel squid
561         /usr/sbin/groupdel squid
562 fi
563
564 %files
565 %defattr(644,root,root,755)
566 %doc CONTRIBUTORS COPYRIGHT CREDITS README ChangeLog QUICKSTART RELEASENOTES.html SPONSORS
567 %doc doc/* src/mib.txt FAQ*.html book-full.html
568 %attr(755,root,root) %{_bindir}/squidclient
569 %attr(755,root,root) %{_libexecdir}/diskd
570 # YES, it has to be suid root, it sends ICMP packets.
571 %attr(4754,root,squid) %{_libexecdir}/pinger
572 %attr(755,root,root) %{_libexecdir}/unlinkd
573 %attr(755,root,root) %{_libexecdir}/fakeauth_auth
574 %attr(755,root,root) %{_sbindir}/*
575
576 %attr(755,root,root) %dir %{_sysconfdir}
577
578 %attr(754,root,root) /etc/rc.d/init.d/squid
579 %attr(640,root,root) %config(noreplace) /etc/logrotate.d/squid
580 %attr(640,root,squid) %config(noreplace) /etc/sysconfig/squid
581 %attr(640,root,squid) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/squid.conf
582 %attr(640,root,squid) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mime.conf
583 %attr(640,root,root) %{_sysconfdir}/mime.conf.default
584 %attr(640,root,root) %{_sysconfdir}/squid.conf.default
585
586 %dir %{_datadir}/squid
587 %dir %{_datadir}/squid/errors
588 %{_datadir}/squid/icons
589 %{_datadir}/squid/mib.txt
590 %lang(bg) %{_datadir}/squid/errors/Bulgarian
591 %lang(ca) %{_datadir}/squid/errors/Catalan
592 %lang(cs) %{_datadir}/squid/errors/Czech
593 %lang(da) %{_datadir}/squid/errors/Danish
594 %lang(nl) %{_datadir}/squid/errors/Dutch
595 %{_datadir}/squid/errors/English
596 %lang(et) %{_datadir}/squid/errors/Estonian
597 %lang(fi) %{_datadir}/squid/errors/Finnish
598 %lang(fr) %{_datadir}/squid/errors/French
599 %lang(de) %{_datadir}/squid/errors/German
600 %lang(el) %{_datadir}/squid/errors/Greek
601 %lang(he) %{_datadir}/squid/errors/Hebrew
602 %lang(hu) %{_datadir}/squid/errors/Hungarian
603 %lang(it) %{_datadir}/squid/errors/Italian
604 %lang(ja) %{_datadir}/squid/errors/Japanese
605 %lang(ko) %{_datadir}/squid/errors/Korean
606 %lang(lt) %{_datadir}/squid/errors/Lithuanian
607 %lang(pl) %{_datadir}/squid/errors/Polish
608 %lang(pt) %{_datadir}/squid/errors/Portuguese
609 %lang(ro) %{_datadir}/squid/errors/Romanian
610 %lang(ru) %{_datadir}/squid/errors/Russian-1251
611 %lang(ru) %{_datadir}/squid/errors/Russian-koi8-r
612 %lang(zh_CN) %{_datadir}/squid/errors/Simplify_Chinese
613 %lang(sk) %{_datadir}/squid/errors/Slovak
614 %lang(es) %{_datadir}/squid/errors/Spanish
615 %lang(sr) %{_datadir}/squid/errors/Serbian
616 %lang(sv) %{_datadir}/squid/errors/Swedish
617 %lang(zh_TW) %{_datadir}/squid/errors/Traditional_Chinese
618 %lang(tr) %{_datadir}/squid/errors/Turkish
619
620 %attr(755,root,root) %dir %{_libexecdir}
621 %attr(755,root,root) %{_libexecdir}/*.pl
622 %attr(755,root,root) %{_libexecdir}/contrib
623
624 %attr(770,root,squid) %dir /var/log/archiv/squid
625 %attr(770,root,squid) %dir /var/log/squid
626 %attr(660,root,squid) %ghost /var/log/squid/*
627
628 %attr(770,root,squid) %dir /var/cache/squid
629 %{_mandir}/man8/squid.8*
630
631 %files cachemgr
632 %defattr(644,root,root,755)
633 %attr(640,root,squid) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cachemgr.conf
634 %attr(755,root,root) %{_cgidir}/*
635 %{_mandir}/man8/cachemgr.cgi.8*
636
637 %files ldap_auth
638 %defattr(644,root,root,755)
639 %doc helpers/basic_auth/LDAP/README
640 %attr(755,root,root) %{_libexecdir}/%{name}_ldap_auth
641 %attr(644,root,root) %{_mandir}/man8/%{name}_ldap_auth.*
642
643 %files pam_auth
644 %defattr(644,root,root,755)
645 %doc helpers/basic_auth/PAM/pam_auth.c
646 %config(noreplace) /etc/pam.d/squid
647 %config(noreplace) /etc/security/blacklist.squid
648 %attr(755,root,root) %{_libexecdir}/pam_auth
649 %{_mandir}/man8/pam_auth.8*
650
651 %files smb_auth
652 %defattr(644,root,root,755)
653 %doc helpers/basic_auth/SMB/{README,ChangeLog,smb_auth.sh}
654 %doc helpers/basic_auth/multi-domain-NTLM/*
655 %attr(755,root,root) %{_libexecdir}/smb_auth*
656
657 %files msnt_auth
658 %defattr(644,root,root,755)
659 %doc helpers/basic_auth/MSNT/README*
660 %attr(755,root,root) %{_libexecdir}/msnt_auth
661 %attr(640,root,squid) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/msntauth.conf
662
663 %files yp_auth
664 %defattr(644,root,root,755)
665 %attr(755,root,root) %{_libexecdir}/yp_auth
666
667 %files ncsa_auth
668 %defattr(644,root,root,755)
669 %attr(755,root,root) %{_libexecdir}/ncsa_auth
670
671 %files sasl_auth
672 %defattr(644,root,root,755)
673 %doc helpers/basic_auth/SASL/{README,squid_sasl*}
674 %attr(755,root,root) %{_libexecdir}/sasl_auth
675
676 %files winbind_auth
677 %defattr(644,root,root,755)
678 %attr(755,root,root) %{_libexecdir}/wb_auth
679
680 %files getpwname_auth
681 %defattr(644,root,root,755)
682 %attr(755,root,root) %{_libexecdir}/getpwname_auth
683
684 %files passwd_auth
685 %defattr(644,root,root,755)
686 %attr(755,root,root) %{_libexecdir}/digest_pw_auth
687
688 %files ntlm_auth
689 %defattr(644,root,root,755)
690 %doc helpers/ntlm_auth/no_check/{README*,no_check.pl}
691 %attr(755,root,root) %{_libexecdir}/wb_ntlmauth
692 %attr(755,root,root) %{_libexecdir}/ntlm_auth
693
694 %files ip_acl
695 %defattr(644,root,root,755)
696 %doc helpers/external_acl/ip_user/{README,example*}
697 %attr(755,root,root) %{_libexecdir}/ip_user_check
698
699 %files ldap_acl
700 %defattr(644,root,root,755)
701 %attr(755,root,root) %{_libexecdir}/squid_ldap_group
702 %attr(644,root,root) %{_mandir}/man8/%{name}_ldap_group.*
703
704 %files unix_acl
705 %defattr(644,root,root,755)
706 %doc helpers/external_acl/unix_group/README
707 %attr(755,root,root) %{_libexecdir}/squid_unix_group
708 %attr(644,root,root) %{_mandir}/man8/%{name}_unix_group.*
709
710 %files wbinfo_acl
711 %defattr(644,root,root,755)
712 %attr(755,root,root) %{_libexecdir}/wbinfo_group.pl
713
714 %files winbind_acl
715 %defattr(644,root,root,755)
716 %doc helpers/external_acl/winbind_group/readme.txt
717 %attr(755,root,root) %{_libexecdir}/wb_group
This page took 0.089459 seconds and 3 git commands to generate.