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