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