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