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