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