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