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