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