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