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