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