]> git.pld-linux.org Git - packages/squid.git/blob - squid.spec
788662f756970e93f1a4efa508590e239de04eb0
[packages/squid.git] / squid.spec
1 # TODO
2 # - use /usr/lib/cgi-bin instead of /home/services
3 # - test fd-config.patch (works in Fedora)
4 # - test new hit_miss_mark.patch (ZPH TOS)
5 #
6 # Conditional build:
7 %bcond_with     combined_log    # enables apache-like combined log format
8 #
9 Summary:        SQUID Internet Object Cache
10 Summary(es.UTF-8):      proxy/cache para WWW/FTP/gopher
11 Summary(pl.UTF-8):      Uniwersalny serwer proxy-cache
12 Summary(pt_BR.UTF-8):   Cache Squid de objetos Internet
13 Summary(ru.UTF-8):      Squid - кэш объектов Internet
14 Summary(uk.UTF-8):      Squid - кеш об'єктів Internet
15 Summary(zh_CN.UTF-8):   SQUID 高速缓冲代理服务器
16 Name:           squid
17 Version:        2.6.STABLE13
18 Release:        0.3
19 Epoch:          7
20 License:        GPL v2
21 Group:          Networking/Daemons
22 Source0:        http://www.squid-cache.org/Versions/v2/2.6/%{name}-%{version}.tar.bz2
23 # Source0-md5:  fdc4ece264b47bab1b112d8f6f842b8b
24 # http://www.squid-cache.org/Doc/FAQ/FAQ.tar.gz
25 Source1:        %{name}-FAQ.tar.gz
26 # Source1-md5:  cb9a955f8cda9cc166e086fccd412a43
27 Source2:        %{name}.init
28 Source3:        %{name}.sysconfig
29 # http://squid-docs.sourceforge.net/latest/zip-files/book-full-html.zip
30 Source4:        %{name}-book-full-html.zip
31 # Source4-md5:  4f3b6dab1de9cbb847df89d8b417378a
32 Source5:        %{name}.conf.patch
33 Source6:        %{name}.logrotate
34 Source7:        %{name}.pamd
35 # Bug fixes from Squid home page, please include URL
36 # lets have fun - there is no patches... yet :)
37 # Other patches:
38 # http://www.it-academy.bg/zph/
39 Patch100:       %{name}_hit_miss_mark.patch
40 Patch101:       %{name}-fhs.patch
41 Patch102:       %{name}-location.patch
42 Patch103:       %{name}-domainmatch.patch
43 Patch104:       %{name}-libnsl_fixes.patch
44 Patch106:       %{name}-crash-on-ENOSPC.patch
45 Patch107:       %{name}-newssl.patch
46 Patch109:       %{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 URL:            http://www.squid-cache.org/
53 BuildRequires:  autoconf
54 BuildRequires:  automake
55 BuildRequires:  cyrus-sasl-devel >= 2.1.0
56 BuildRequires:  db-devel
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.UTF-8
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.UTF-8
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.UTF-8
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.UTF-8
164 Squid - это высокопроизводительный кэширующий прокси-сервер для
165 клиентов web, поддерживающий объекты данных типа FTP, gopher и HTTP. В
166 отличие от традиционных кэширующих программ, Squid обрабатывает все
167 запросы при помощи одного неблокирующегося, управляемого
168 вводом-выводом процесса.
169
170 Этот пакет имеет встроенную поддержку базы данных сетевых ICMP-проб
171 (Netdb).
172
173 %description -l uk.UTF-8
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.UTF-8):      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.UTF-8
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.UTF-8):      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.UTF-8
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.UTF-8):      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.UTF-8
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.UTF-8):      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.UTF-8
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.UTF-8):      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.UTF-8
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.UTF-8):      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.UTF-8
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.UTF-8):      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.UTF-8
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.UTF-8):      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.UTF-8
294 Jest to moduł uwierzytelniania proxy, który pozwala na
295 uwierzytelnianie użytkowników proxy poprzez SASL.
296
297 %package getpwname_auth
298 Summary:        getpwname authentication helper for Squid
299 Summary(pl.UTF-8):      Obsługa uwierzytelniania getpwname dla squida
300 Group:          Networking/Admin
301 Requires:       %{name} = %{epoch}:%{version}-%{release}
302
303 %description getpwname_auth
304 This is an authentication module for the Squid proxy server to
305 authenticate users using getpwname.
306
307 %description getpwname_auth -l pl.UTF-8
308 Jest to moduł uwierzytelniania proxy, który pozwala na
309 uwierzytelnianie użytkowników proxy poprzez getpwname.
310
311 %package passwd_auth
312 Summary:        passwd authentication helper for Squid
313 Summary(pl.UTF-8):      Obsługa uwierzytelniania passwd dla squida
314 Group:          Networking/Admin
315 Requires:       %{name} = %{epoch}:%{version}-%{release}
316
317 %description passwd_auth
318 This is an authentication module for the Squid proxy server to
319 authenticate users with separate passwd file.
320
321 %description passwd_auth -l pl.UTF-8
322 Jest to moduł uwierzytelniania proxy, który pozwala na
323 uwierzytelnianie użytkowników proxy poprzez oddzielny plik passwd.
324
325 %package ntlm_auth
326 Summary:        NTLM authentication helper for Squid
327 Summary(pl.UTF-8):      Obsługa uwierzytelniania NTLM dla squida
328 Group:          Networking/Admin
329 Requires:       %{name} = %{epoch}:%{version}-%{release}
330
331 %description ntlm_auth
332 This is an authentication module for the Squid proxy server to
333 authenticate users on NTLM.
334
335 %description ntlm_auth -l pl.UTF-8
336 Jest to moduł uwierzytelniania proxy, który pozwala na
337 uwierzytelnianie użytkowników proxy poprzez NTLM.
338
339 %package digest_ldap_auth
340 Summary:        LDAP authentication helper for Squid
341 Summary(pl.UTF-8):      Obsługa uwierzytelniania LDAP dla squida
342 Group:          Networking/Admin
343 Requires:       %{name} = %{epoch}:%{version}-%{release}
344
345 %description digest_ldap_auth
346 This is an authentication module for the Squid proxy server to
347 authenticate users on LDAP.
348
349 %description digest_ldap_auth -l pl.UTF-8
350 Jest to moduł uwierzytelniania proxy, który pozwala na
351 uwierzytelnianie użytkowników proxy poprzez LDAP.
352
353 %package ip_acl
354 Summary:        IP external ACL helper for Squid
355 Summary(pl.UTF-8):      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.UTF-8
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.UTF-8):      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.UTF-8
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.UTF-8):      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.UTF-8
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.UTF-8):      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.UTF-8
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 session_acl
413 Summary:        Squid session tracking external acl group helper
414 Group:          Networking/Admin
415 Requires:       %{name} = %{epoch}:%{version}-%{release}
416
417 %description session_acl
418 This  helper maintains a concept of sessions by monitoring requests and
419 timing out sessions if no requests have been seen for the idle  timeout
420 timer.
421
422 %package scripts
423 Summary:        Perl scripts for Squid
424 Summary(pl.UTF-8):      Skrypty perlowe dla Squida
425 Group:          Networking/Admin
426 Requires:       %{name} = %{epoch}:%{version}-%{release}
427
428 %description scripts
429 This package contains Perl scripts and contributed programs for Squid.
430
431 %description scripts -l pl.UTF-8
432 Ten pakiet zawiera skrypty perlowe i dodatkowe programy dla Squida.
433
434 %prep
435 %setup -q -a1 -a4
436 # Bug fixes from Squid home page:
437
438 # Other patches:
439 %patch100 -p1
440 %patch101 -p1
441 %patch102 -p1
442 %patch103 -p1
443 %patch104 -p1
444 %patch106 -p1
445 %patch107 -p1
446 %patch109 -p1
447 %patch110 -p1
448 %patch111 -p1
449 %{?with_combined_log:%patch112 -p1}
450 %patch113 -p1
451 %patch114 -p1
452
453 %{__sed} -i -e '1s#!.*bin/perl#!%{__perl}#' {contrib,scripts,helpers/*/*}/*.pl
454
455 %build
456 %{__aclocal}
457 %{__autoconf}
458 %{__autoheader}
459 %{__automake}
460 %configure \
461         --datadir=%{_datadir}/squid \
462         --enable-storeio="aufs,coss,diskd,null,ufs" \
463         --enable-removal-policies="heap,lru" \
464         --enable-icmp \
465         --enable-delay-pools \
466         --enable-useragent-log \
467         --enable-referer-log \
468         --enable-kill-parent-hack \
469         --enable-forward-log \
470         --enable-multicast-miss \
471         --enable-snmp \
472         --enable-arp-acl \
473         --enable-htcp \
474         --enable-ssl \
475         --enable-forw-via-db \
476         --enable-cache-digests \
477         --enable-err-language=English \
478         --enable-coss-aio-ops \
479         --enable-linux-netfilter \
480         --enable-large-cache-files \
481         --enable-auth="basic,digest,negotiate,ntlm" \
482         --enable-basic-auth-helpers="LDAP,MSNT,NCSA,PAM,SASL,SMB,YP,getpwnam,multi-domain-NTLM" \
483         --enable-digest-auth-helpers="ldap,password" \
484         --enable-external-acl-helpers="ip_user,ldap_group,session,unix_group,wbinfo_group" \
485         --enable-ntlm-auth-helpers="SMB,fakeauth,no_check" \
486         --enable-ntlm-fail-open \
487         --enable-x-accelerator-vary \
488         --enable-follow-x-forwarded-for \
489         --localstatedir=/var \
490         --sysconfdir=%{_sysconfdir} \
491         --with-auth-on-acceleration \
492         --with-pthreads \
493         --with-large-files \
494         --enable-fd-config \
495         --with-maxfd=32768
496
497 %{__make}
498
499 %install
500 rm -rf $RPM_BUILD_ROOT
501 install -d $RPM_BUILD_ROOT%{_cgidir} \
502         $RPM_BUILD_ROOT/etc/{pam.d,rc.d/init.d,security,sysconfig,logrotate.d} \
503         $RPM_BUILD_ROOT{%{_sbindir},%{_bindir},%{_libexecdir}/contrib} \
504         $RPM_BUILD_ROOT%{_mandir}/man8 \
505         $RPM_BUILD_ROOT%{_datadir}/squid \
506         $RPM_BUILD_ROOT/var/{cache,log{,/archive}}/squid
507
508 %{__make} install \
509         DESTDIR=$RPM_BUILD_ROOT
510
511 cp -a contrib/*.pl $RPM_BUILD_ROOT%{_libexecdir}/contrib
512 install scripts/*.pl $RPM_BUILD_ROOT%{_libexecdir}
513
514 install %{SOURCE7} $RPM_BUILD_ROOT/etc/pam.d/squid
515 touch $RPM_BUILD_ROOT/etc/security/blacklist.squid
516
517 mv -f $RPM_BUILD_ROOT%{_libdir}/squid/cachemgr.cgi $RPM_BUILD_ROOT%{_cgidir}
518
519 cd $RPM_BUILD_ROOT/etc/squid
520 cp -f squid.conf{,.default}
521 patch -p0 < %{SOURCE5}
522 cd -
523
524 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/squid
525 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/squid
526 install %{SOURCE6} $RPM_BUILD_ROOT/etc/logrotate.d/squid
527
528 touch $RPM_BUILD_ROOT/var/log/squid/{access,cache,store}.log
529
530 # These two files start squid. They are replaced by /etc/rc.d/init.d script.
531 rm -f $RPM_BUILD_ROOT%{_bindir}/R*
532
533 # cp, to have re-entrant install
534 rm -rf docs
535 cp -a doc docs
536 # dunno why, but manual is not installed
537 mv docs/squid.8 $RPM_BUILD_ROOT%{_mandir}/man8
538 # We don't want Makefiles as docs...
539 rm -f docs/Makefile*
540
541 # We don't like message: rpm found unpackaged files ...
542 rm -f $RPM_BUILD_ROOT/etc/squid/msntauth.conf.default \
543         $RPM_BUILD_ROOT/etc/squid/squid.conf.orig
544
545 > $RPM_BUILD_ROOT/var/cache/squid/netdb_state
546 > $RPM_BUILD_ROOT/var/cache/squid/swap.state
547 > $RPM_BUILD_ROOT/var/cache/squid/swap.state.clean
548 > $RPM_BUILD_ROOT/var/cache/squid/swap.state.last-clean
549
550 %clean
551 rm -rf $RPM_BUILD_ROOT
552
553 %pre
554 %groupadd -g 91 squid
555 %useradd -o -u 91 -s /bin/false -g squid -c "SQUID http caching daemon" -d /var/cache/squid squid
556 %addusertogroup stats squid
557
558 [ -L %{_datadir}/squid/errors ] && rm -f %{_datadir}/squid/errors || :
559
560 %post
561 if ! grep -q "^visible_hostname" /etc/squid/squid.conf; then
562         hostname=`/bin/hostname -f 2>/dev/null` || hostname='localhost'
563         echo visible_hostname $hostname >> /etc/squid/squid.conf
564 fi
565
566 /sbin/chkconfig --add squid
567 if [ "$1" = "1" ]; then
568         /sbin/service squid init >&2
569 fi
570 %service squid restart
571
572 %preun
573 if [ "$1" = "0" ]; then
574         /sbin/chkconfig --del squid
575         %service squid stop
576
577         # nuke squid cache if uninstalling
578         rm -rf /var/cache/squid/??
579 fi
580
581 %postun
582 if [ "$1" = "0" ]; then
583         %userremove squid
584         %groupremove squid
585 fi
586
587 %triggerpostun -- squid < 7:2.5.STABLE7-5
588 %addusertogroup stats squid
589
590 %files
591 %defattr(644,root,root,755)
592 %doc CONTRIBUTORS COPYRIGHT CREDITS README ChangeLog QUICKSTART RELEASENOTES.html SPONSORS
593 %doc docs/* src/mib.txt FAQ*.html book-full.html
594 %attr(755,root,root) %{_bindir}/squidclient
595 %attr(755,root,root) %{_bindir}/cossdump
596 %attr(755,root,root) %{_libexecdir}/diskd-daemon
597 # YES, it has to be suid root, it sends ICMP packets.
598 %attr(4754,root,squid) %{_libexecdir}/pinger
599 %attr(755,root,root) %{_libexecdir}/unlinkd
600 %attr(755,root,root) %{_libexecdir}/fakeauth_auth
601 %attr(755,root,root) %{_sbindir}/*
602
603 %attr(755,root,root) %dir %{_sysconfdir}
604
605 %attr(754,root,root) /etc/rc.d/init.d/squid
606 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/squid
607 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/squid
608 %attr(640,root,squid) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/squid.conf
609 %attr(640,root,squid) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mime.conf
610 %attr(640,root,root) %{_sysconfdir}/mime.conf.default
611 %attr(640,root,root) %{_sysconfdir}/squid.conf.default
612
613 %dir %{_datadir}/squid
614 %dir %{_datadir}/squid/errors
615 %{_datadir}/squid/icons
616 %{_datadir}/squid/mib.txt
617 %lang(az) %{_datadir}/squid/errors/Azerbaijani
618 %lang(bg) %{_datadir}/squid/errors/Bulgarian
619 %lang(ca) %{_datadir}/squid/errors/Catalan
620 %lang(cs) %{_datadir}/squid/errors/Czech
621 %lang(da) %{_datadir}/squid/errors/Danish
622 %lang(nl) %{_datadir}/squid/errors/Dutch
623 %{_datadir}/squid/errors/English
624 %lang(et) %{_datadir}/squid/errors/Estonian
625 %lang(fi) %{_datadir}/squid/errors/Finnish
626 %lang(fr) %{_datadir}/squid/errors/French
627 %lang(de) %{_datadir}/squid/errors/German
628 %lang(el) %{_datadir}/squid/errors/Greek
629 %lang(he) %{_datadir}/squid/errors/Hebrew
630 %lang(hu) %{_datadir}/squid/errors/Hungarian
631 %lang(it) %{_datadir}/squid/errors/Italian
632 %lang(ja) %{_datadir}/squid/errors/Japanese
633 %lang(ko) %{_datadir}/squid/errors/Korean
634 %lang(lt) %{_datadir}/squid/errors/Lithuanian
635 %lang(pl) %{_datadir}/squid/errors/Polish
636 %lang(pt) %{_datadir}/squid/errors/Portuguese
637 %lang(ro) %{_datadir}/squid/errors/Romanian
638 %lang(ru) %{_datadir}/squid/errors/Russian-1251
639 %lang(ru) %{_datadir}/squid/errors/Russian-koi8-r
640 %lang(zh_CN) %{_datadir}/squid/errors/Simplify_Chinese
641 %lang(sk) %{_datadir}/squid/errors/Slovak
642 %lang(es) %{_datadir}/squid/errors/Spanish
643 %lang(sr) %{_datadir}/squid/errors/Serbian
644 %lang(sv) %{_datadir}/squid/errors/Swedish
645 %lang(zh_TW) %{_datadir}/squid/errors/Traditional_Chinese
646 %lang(tr) %{_datadir}/squid/errors/Turkish
647
648 %attr(755,root,root) %dir %{_libexecdir}
649
650 %attr(770,root,squid) %dir /var/log/archive/squid
651 %attr(770,root,squid) %dir /var/log/squid
652 %attr(660,root,squid) %ghost /var/log/squid/*
653
654 %attr(770,root,squid) %dir /var/cache/squid
655 %ghost /var/cache/squid/netdb_state
656 %ghost /var/cache/squid/swap.state
657 %ghost /var/cache/squid/swap.state.clean
658 %ghost /var/cache/squid/swap.state.last-clean
659 %{_mandir}/man8/squid.8*
660
661 %files cachemgr
662 %defattr(644,root,root,755)
663 %attr(640,root,squid) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cachemgr.conf
664 %attr(755,root,root) %{_cgidir}/*
665 %{_mandir}/man8/cachemgr.cgi.8*
666
667 %files ldap_auth
668 %defattr(644,root,root,755)
669 %doc helpers/basic_auth/LDAP/README
670 %attr(755,root,root) %{_libexecdir}/%{name}_ldap_auth
671 %{_mandir}/man8/%{name}_ldap_auth.*
672
673 %files pam_auth
674 %defattr(644,root,root,755)
675 %doc helpers/basic_auth/PAM/pam_auth.c
676 %config(noreplace) /etc/pam.d/squid
677 %config(noreplace) /etc/security/blacklist.squid
678 %attr(755,root,root) %{_libexecdir}/pam_auth
679 %{_mandir}/man8/pam_auth.8*
680
681 %files smb_auth
682 %defattr(644,root,root,755)
683 %doc helpers/basic_auth/SMB/{README,ChangeLog,smb_auth.sh}
684 %doc helpers/basic_auth/multi-domain-NTLM/*
685 %attr(755,root,root) %{_libexecdir}/smb_auth*
686
687 %files msnt_auth
688 %defattr(644,root,root,755)
689 %doc helpers/basic_auth/MSNT/README*
690 %attr(755,root,root) %{_libexecdir}/msnt_auth
691 %attr(640,root,squid) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/msntauth.conf
692
693 %files yp_auth
694 %defattr(644,root,root,755)
695 %attr(755,root,root) %{_libexecdir}/yp_auth
696
697 %files ncsa_auth
698 %defattr(644,root,root,755)
699 %attr(755,root,root) %{_libexecdir}/ncsa_auth
700 %{_mandir}/man8/ncsa_auth.8*
701
702 %files sasl_auth
703 %defattr(644,root,root,755)
704 %doc helpers/basic_auth/SASL/{README,squid_sasl*}
705 %attr(755,root,root) %{_libexecdir}/sasl_auth
706
707 %files getpwname_auth
708 %defattr(644,root,root,755)
709 %attr(755,root,root) %{_libexecdir}/getpwname_auth
710
711 %files passwd_auth
712 %defattr(644,root,root,755)
713 %attr(755,root,root) %{_libexecdir}/digest_pw_auth
714
715 %files ntlm_auth
716 %defattr(644,root,root,755)
717 %doc helpers/ntlm_auth/no_check/{README*,no_check.pl}
718 %attr(755,root,root) %{_libexecdir}/ntlm_auth
719
720 %files digest_ldap_auth
721 %defattr(644,root,root,755)
722 %attr(755,root,root) %{_libexecdir}/digest_ldap_auth
723
724 %files ip_acl
725 %defattr(644,root,root,755)
726 %doc helpers/external_acl/ip_user/{README,example*}
727 %attr(755,root,root) %{_libexecdir}/ip_user_check
728
729 %files ldap_acl
730 %defattr(644,root,root,755)
731 %attr(755,root,root) %{_libexecdir}/squid_ldap_group
732 %{_mandir}/man8/%{name}_ldap_group.*
733
734 %files unix_acl
735 %defattr(644,root,root,755)
736 %doc helpers/external_acl/unix_group/README
737 %attr(755,root,root) %{_libexecdir}/squid_unix_group
738 %{_mandir}/man8/%{name}_unix_group.*
739
740 %files wbinfo_acl
741 %defattr(644,root,root,755)
742 %attr(755,root,root) %{_libexecdir}/wbinfo_group.pl
743
744 %files session_acl
745 %defattr(644,root,root,755)
746 %attr(755,root,root) %{_libexecdir}/squid_session
747 %{_mandir}/man8/%{name}_session.8*
748
749 %files scripts
750 %defattr(644,root,root,755)
751 %attr(755,root,root) %{_libexecdir}/*.pl
752 %attr(755,root,root) %{_libexecdir}/contrib
This page took 0.094513 seconds and 2 git commands to generate.