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