]> git.pld-linux.org Git - packages/squid.git/blame_incremental - squid.spec
- strip pre 3.0 changelog
[packages/squid.git] / squid.spec
... / ...
CommitLineData
1# TODO
2# - REVIEW patches and configuration
3# - use /usr/lib/cgi-bin instead of /home/services
4# - ZPH TOS -
5# For this to work correctly, you will need to patch your linux
6# kernel with the TOS preserving ZPH patch.
7# The kernel patch can be downloaded from http://zph.bratcheda.org
8#
9# Conditional build:
10%bcond_with combined_log # enables apache-like combined log format
11#
12Summary: SQUID Internet Object Cache
13Summary(es.UTF-8): proxy/cache para WWW/FTP/gopher
14Summary(pl.UTF-8): Uniwersalny serwer proxy-cache
15Summary(pt_BR.UTF-8): Cache Squid de objetos Internet
16Summary(ru.UTF-8): Squid - кэш объектов Internet
17Summary(uk.UTF-8): Squid - кеш об'єктів Internet
18Summary(zh_CN.UTF-8): SQUID 高速缓冲代理服务器
19Name: squid
20Version: 3.0.STABLE9
21# review patches before stable release
22Release: 0.1
23Epoch: 7
24License: GPL v2
25Group: Networking/Daemons
26Source0: http://www.squid-cache.org/Versions/v3/3.0/%{name}-%{version}.tar.bz2
27# Source0-md5: 4009abfbf33d86f40db3ec4280716a0e
28# http://www.squid-cache.org/Doc/FAQ/FAQ.tar.gz
29Source1: %{name}-FAQ.tar.gz
30# Source1-md5: cb9a955f8cda9cc166e086fccd412a43
31Source2: %{name}.init
32Source3: %{name}.sysconfig
33# http://squid-docs.sourceforge.net/latest/zip-files/book-full-html.zip
34Source4: http://squid-docs.sourceforge.net/latest/zip-files/book-full-html.zip
35# Source4-md5: 4f3b6dab1de9cbb847df89d8b417378a
36Source5: %{name}.conf.patch
37Source6: %{name}.logrotate
38Source7: %{name}.pamd
39# Bug fixes from Squid home page, please include URL
40# lets have fun - there is no patches... yet:)
41# Other patches:
42# http://zph.bratcheda.org/
43Patch0: %{name}_hit_miss_mark.patch
44Patch1: %{name}-fhs.patch
45Patch2: %{name}-location.patch
46Patch4: %{name}-libnsl_fixes.patch
47Patch5: %{name}-crash-on-ENOSPC.patch
48Patch7: %{name}-empty-referer.patch
49Patch8: %{name}-2.5.STABLE4-apache-like-combined-log.patch
50Patch9: %{name}-auth_on_acceleration.patch
51Patch10: %{name}-ppc-m32.patch
52URL: http://www.squid-cache.org/
53BuildRequires: autoconf
54BuildRequires: automake
55BuildRequires: cyrus-sasl-devel >= 2.1.0
56BuildRequires: db-devel
57BuildRequires: libltdl-devel
58BuildRequires: openldap-devel >= 2.3.0
59BuildRequires: openssl-devel >= 0.9.7d
60BuildRequires: pam-devel
61BuildRequires: perl-base
62BuildRequires: rpmbuild(macros) >= 1.268
63BuildRequires: sed >= 4.0
64BuildRequires: unzip
65Requires(post): /bin/hostname
66Requires(post): fileutils
67Requires(post): findutils
68Requires(post): grep
69Requires(post,preun): /sbin/chkconfig
70Requires(postun): /usr/sbin/groupdel
71Requires(postun): /usr/sbin/userdel
72Requires(pre): /bin/id
73Requires(pre): /usr/bin/getgid
74Requires(pre): /usr/lib/rpm/user_group.sh
75Requires(pre): /usr/sbin/groupadd
76Requires(pre): /usr/sbin/useradd
77Requires: rc-scripts >= 0.2.0
78Requires: setup >= 2.4.6
79Provides: group(squid)
80# epoll enabled by default:
81Requires: uname(release) >= 2.6
82Provides: user(squid)
83Conflicts: logrotate < 3.7-4
84BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
85
86%define _libexecdir %{_libdir}/%{name}
87%define _sysconfdir /etc/%{name}
88%define _cgidir /home/services/httpd/cgi-bin
89
90%description
91Squid is a high-performance proxy caching server for web clients,
92supporting FTP, gopher, and HTTP data objects. Unlike traditional
93caching software, Squid handles all requests in a single,
94non-blocking, I/O-driven process. Squid keeps meta data and especially
95hot objects cached in RAM, caches DNS lookups, supports non-blocking
96DNS lookups, and implements negative caching of failed requests. If
97you are tight on memory, check out the NOVM version of this package.
98Squid supports SSL, extensive access controls, and full request
99logging. By using the lightweight Internet Cache Protocol, Squid
100caches can be arranged in a hierarchy or mesh for additional bandwidth
101savings. Squid consists of a main server program squid, a Domain Name
102System lookup program dnsserver, a program for retrieving FTP data
103ftpget, and some management and client tools. When squid starts up, it
104spawns a configurable number of dnsserver processes, each of which can
105perform a single, blocking Domain Name System (DNS) lookup. This
106reduces the amount of time the cache waits for DNS lookups. Squid is
107derived from the ARPA-funded Harvest project.
108
109%description -l es.UTF-8
110Squid es un servidor proxy con caché de alto desempeño para clientes
111web, soportando FTP, gopher y HTTP. Diferentemente de softwares
112tradicionales de caché squid manipula todas las requisiciones en un
113único proceso sin bloqueos, direccionado a E/S. Mantienen metadatos y
114objetos frecuentemente pedidos en uno caché en memoria RAM. Hace caché
115de resoluciones DNS, soporta resoluciones DNS sin bloqueo y implementa
116un caché negativo de requisiciones que fallen. Si tiene poca memoria
117da un vistazo en la versión NOVM de este paquete. También soporta SSL,
118controles extensivos de acceso y registro (log) completo de las
119requisiciones. Usando el ligero Protocolo de Caches Internet (ICP)
120puede ser usado en una jerarquía de servidores para mayor ahorro de la
121banda de comunicación. Está compuesto del programa squid (servidor
122principal), del programa dnsserver (para resolución DNS), del programa
123ftpget (para transmisiones ftp) y otras herramientas clientes y para
124administración. Cuando squid se inicia, dispara un número configurable
125de procesos dnsserver, cada uno pudiendo ejecutar solamente una
126resolución DNS con poder de bloquear. Esto reduce el tiempo que el
127caché espera por resoluciones DNS. Fue derivado del proyecto Harvest,
128financiado por la ARPA.
129
130%description -l pl.UTF-8
131Squid jest wysoce wydajnym serwerem proxy-cache dla przeglądarek WWW,
132klientów FTP i gopher. Squid przechowuje najczęściej pobierane dane w
133pamięci RAM i zapamiętuje odwołania do DNS. Squid oferuje wsparcie dla
134SSL, rozbudowaną kontrolę dostępu oraz pełne rejestrowanie pobieranych
135danych. Dzięki użyciu protokołu ICP (Internet Cache Protocol), serwer
136squid można łączyć w hierarchię, zwiększając ich efektywność. Pakiet
137squid obejmuje: główny program serwera squid, program dostarczający
138informacji z DNS dnsserver, program odbierający dane FTP ftpget, oraz
139pomocnicze programy do zarządzania. Squid wywodzi się ze
140sponsorowanego przez ARPA projektu Harvest.
141
142%description -l pt_BR.UTF-8
143O Squid é um servidor proxy com cache de alta performance para
144clientes web, suportando FTP, gopher e HTTP. Diferentemente de
145softwares tradicionais de cache o squid manipula todas as requisições
146em um único processo sem bloqueios, direcionado a E/S.
147
148Mantém meta dados e objetos freqüentemente pedidos num cache em
149memória RAM. Faz cache de resoluções DNS, suporta resoluções DNS sem
150bloqueio e implementa um cache negativo de requisições que falharem.
151Se você tem pouca memória dê uma olhada na versão NOVM deste pacote.
152
153Também suporta SSL, controles extensivos de acesso e registro (log)
154completo das requisições. Usando o leve Protocolo de Caches Internet
155(ICP) ele pode ser usado em uma hierarquia de servidores para maior
156economia de banda de comunicação.
157
158Ele consiste do programa squid (servidor principal), do programa
159dnsserver (para resolução DNS), do programa ftpget (para transmissões
160ftp) e outras ferramentas clientes e para gerenciamento. Quando o
161squid é inicializado ele dispara um número configurável de processos
162dnsserver, cada um podendo executar somente uma resolução DNS
163bloqueante. Isto reduz o tempo que o cache espera por resoluções DNS.
164
165Foi derivado do projeto Harvest, financiado pela ARPA.
166
167%description -l ru.UTF-8
168Squid - это высокопроизводительный кэширующий прокси-сервер для
169клиентов web, поддерживающий объекты данных типа FTP, gopher и HTTP. В
170отличие от традиционных кэширующих программ, Squid обрабатывает все
171запросы при помощи одного неблокирующегося, управляемого
172вводом-выводом процесса.
173
174Этот пакет имеет встроенную поддержку базы данных сетевых ICMP-проб
175(Netdb).
176
177%description -l uk.UTF-8
178Squid - це кешуючий проксі-сервер для web-клієнтів, що підтримує
179об'єкти даних типу FTP, gopher та HTTP. На відміну від традиційних
180кешуючих програм, Squid обробляє всі запити за допомогою одного
181неблокуючого, керованого вводом-виводом процесу.
182
183Цей пакет має вбудовану підтримку бази даних мережевих ICMP-проб
184(Netdb).
185
186%package cachemgr
187Summary: CGI script for Squid management
188Summary(pl.UTF-8): Skrypt CGI do zarządzania Squidem przez WWW
189Group: Networking/Admin
190Requires: %{name} = %{epoch}:%{version}-%{release}
191Requires: webserver
192
193%description cachemgr
194Cachemgr.cgi is a CGI script that allows administrator to chceck
195various informations about Squid via WWW.
196
197%description cachemgr -l pl.UTF-8
198Cachemgr.cgi jest skryptem CGI, który pozwala administratorowi
199zapoznać się z informacjami o pracy Squida poprzez WWW.
200
201%package ldap_auth
202Summary: LDAP authentication helper for Squid
203Summary(pl.UTF-8): Obsługa uwierzytelniania LDAP dla squida
204Group: Networking/Admin
205Requires: %{name} = %{epoch}:%{version}-%{release}
206
207%description ldap_auth
208This Squid helper allows authentication against LDAP directories using
209the "simple authentication" (plain-text).
210
211%description ldap_auth -l pl.UTF-8
212Pakiet ten pozwala na uwierzytelnianie przez LDAP za pomocą prostego
213uwierzytelniania (otwartym tekstem).
214
215%package pam_auth
216Summary: PAM authentication helper for Squid
217Summary(pl.UTF-8): Obsługa uwierzytelniania PAM dla squida
218Group: Networking/Admin
219Requires: %{name} = %{epoch}:%{version}-%{release}
220Requires: pam >= 0.77.3
221
222%description pam_auth
223This program authenticates users against a PAM configured
224authentication service "squid". This allows you to authenticate Squid
225users to any authentication source for which you have a PAM module.
226
227%description pam_auth -l pl.UTF-8
228Program ten pozwala na uwierzytelnianie użytkowników squida w dowolnym
229źródle posiadającym moduł PAM.
230
231%package smb_auth
232Summary: SMB authentication helper for Squid
233Summary(pl.UTF-8): Obsługa uwierzytelniania SMB dla squida
234Group: Networking/Admin
235Requires: %{name} = %{epoch}:%{version}-%{release}
236
237%description smb_auth
238This is a proxy authentication module. With smb_auth you can
239authenticate proxy users against an SMB server like Windows NT or
240Samba.
241
242%description smb_auth -l pl.UTF-8
243To jest moduł uwierzytelniania proxy. Przy pomocy smb_auth można
244uwierzytelniać użytkowników proxy na serwerach SMB, jak Windows NT czy
245Samba.
246
247%package msnt_auth
248Summary: MSNT domain authentication helper for Squid
249Summary(pl.UTF-8): Obsługa uwierzytelniania w domenie MSNT dla squida
250Group: Networking/Admin
251Requires: %{name} = %{epoch}:%{version}-%{release}
252
253%description msnt_auth
254This is an authentication module for the Squid proxy server to
255authenticate users on an NT domain.
256
257%description msnt_auth -l pl.UTF-8
258Jest to moduł uwierzytelniania proxy, który pozwala na
259uwierzytelnianie użytkowników proxy w domenie NT.
260
261%package yp_auth
262Summary: YP authentication helper for Squid
263Summary(pl.UTF-8): Obsługa uwierzytelniania YP dla squida
264Group: Networking/Admin
265Requires: %{name} = %{epoch}:%{version}-%{release}
266
267%description yp_auth
268This is an authentication module for the Squid proxy server to
269authenticate users on YP.
270
271%description yp_auth -l pl.UTF-8
272Jest to moduł uwierzytelniania proxy, który pozwala na
273uwierzytelnianie użytkowników proxy poprzez YP.
274
275%package ncsa_auth
276Summary: NCSA httpd style authentication helper for Squid
277Summary(pl.UTF-8): Obsługa uwierzytelniania NCSA httpd dla squida
278Group: Networking/Admin
279Requires: %{name} = %{epoch}:%{version}-%{release}
280
281%description ncsa_auth
282This module uses a NCSA httpd style password file for authentication.
283
284%description ncsa_auth -l pl.UTF-8
285Moduł uwierzytelniania proxy używający pliku haseł jak w NCSA httpd.
286
287%package sasl_auth
288Summary: SASL authentication helper for Squid
289Summary(pl.UTF-8): Obsługa uwierzytelniania SASL dla squida
290Group: Networking/Admin
291Requires: %{name} = %{epoch}:%{version}-%{release}
292
293%description sasl_auth
294This is an authentication module for the Squid proxy server to
295authenticate users via SASL.
296
297%description sasl_auth -l pl.UTF-8
298Jest to moduł uwierzytelniania proxy, który pozwala na
299uwierzytelnianie użytkowników proxy poprzez SASL.
300
301%package getpwname_auth
302Summary: getpwname authentication helper for Squid
303Summary(pl.UTF-8): Obsługa uwierzytelniania getpwname dla squida
304Group: Networking/Admin
305Requires: %{name} = %{epoch}:%{version}-%{release}
306
307%description getpwname_auth
308This is an authentication module for the Squid proxy server to
309authenticate users using getpwname.
310
311%description getpwname_auth -l pl.UTF-8
312Jest to moduł uwierzytelniania proxy, który pozwala na
313uwierzytelnianie użytkowników proxy poprzez getpwname.
314
315%package passwd_auth
316Summary: passwd authentication helper for Squid
317Summary(pl.UTF-8): Obsługa uwierzytelniania passwd dla squida
318Group: Networking/Admin
319Requires: %{name} = %{epoch}:%{version}-%{release}
320
321%description passwd_auth
322This is an authentication module for the Squid proxy server to
323authenticate users with separate passwd file.
324
325%description passwd_auth -l pl.UTF-8
326Jest to moduł uwierzytelniania proxy, który pozwala na
327uwierzytelnianie użytkowników proxy poprzez oddzielny plik passwd.
328
329%package ntlm_auth
330Summary: NTLM authentication helper for Squid
331Summary(pl.UTF-8): Obsługa uwierzytelniania NTLM dla squida
332Group: Networking/Admin
333Requires: %{name} = %{epoch}:%{version}-%{release}
334
335%description ntlm_auth
336This is an authentication module for the Squid proxy server to
337authenticate users on NTLM.
338
339%description ntlm_auth -l pl.UTF-8
340Jest to moduł uwierzytelniania proxy, który pozwala na
341uwierzytelnianie użytkowników proxy poprzez NTLM.
342
343%package digest_ldap_auth
344Summary: LDAP authentication helper for Squid
345Summary(pl.UTF-8): Obsługa uwierzytelniania LDAP dla squida
346Group: Networking/Admin
347Requires: %{name} = %{epoch}:%{version}-%{release}
348
349%description digest_ldap_auth
350This is an authentication module for the Squid proxy server to
351authenticate users on LDAP.
352
353%description digest_ldap_auth -l pl.UTF-8
354Jest to moduł uwierzytelniania proxy, który pozwala na
355uwierzytelnianie użytkowników proxy poprzez LDAP.
356
357%package ip_acl
358Summary: IP external ACL helper for Squid
359Summary(pl.UTF-8): Wsparcie kontroli dostępu przez IP dla squida
360Group: Networking/Admin
361Requires: %{name} = %{epoch}:%{version}-%{release}
362
363%description ip_acl
364This is an external ACL module for the Squid proxy server to limit
365access for users based on IP address.
366
367%description ip_acl -l pl.UTF-8
368Jest to moduł kontroli dostępu (ACL) do proxy, który pozwala na
369ograniczenie dostępu użytkowników proxy na podstawie ich adresu IP.
370
371%package ldap_acl
372Summary: LDAP group external ACL helper for Squid
373Summary(pl.UTF-8): Wsparcie kontroli dostępu przez grupy LDAP dla squida
374Group: Networking/Admin
375Requires: %{name} = %{epoch}:%{version}-%{release}
376
377%description ldap_acl
378This is an external ACL module for the Squid proxy server to limit
379access for users based on LDAP group membership.
380
381%description ldap_acl -l pl.UTF-8
382Jest to moduł kontroli dostępu (ACL) do proxy, który pozwala na
383ograniczenie dostępu użytkowników proxy na podstawie ich
384przynależności do grup LDAP.
385
386%package unix_acl
387Summary: UNIX group external ACL helper for Squid
388Summary(pl.UTF-8): Wsparcie kontroli dostępu przez grupy UNIX dla squida
389Group: Networking/Admin
390Requires: %{name} = %{epoch}:%{version}-%{release}
391
392%description unix_acl
393This is an external ACL module for the Squid proxy server to limit
394access for users based on UNIX group membership.
395
396%description unix_acl -l pl.UTF-8
397Jest to moduł kontroli dostępu (ACL) do proxy, który pozwala na
398ograniczenie dostępu użytkowników proxy na podstawie ich
399przynależności do grup UNIX.
400
401%package wbinfo_acl
402Summary: NT domain group external ACL helper for Squid
403Summary(pl.UTF-8): Wsparcie kontroli dostępu przez grupy w domenie NT dla squida
404Group: Networking/Admin
405Requires: %{name} = %{epoch}:%{version}-%{release}
406
407%description wbinfo_acl
408This is an external ACL module for the Squid proxy server to limit
409access for users based on NT domain group membership using wbinfo.
410
411%description wbinfo_acl -l pl.UTF-8
412Jest to moduł kontroli dostępu (ACL) do proxy, który pozwala na
413ograniczenie dostępu użytkowników proxy na podstawie ich
414przynależności do grup w domenie NT przy użyciu wbinfo.
415
416%package session_acl
417Summary: Squid session tracking external acl group helper
418Group: Networking/Admin
419Requires: %{name} = %{epoch}:%{version}-%{release}
420
421%description session_acl
422This helper maintains a concept of sessions by monitoring requests and
423timing out sessions if no requests have been seen for the idle timeout
424timer.
425
426%package scripts
427Summary: Perl scripts for Squid
428Summary(pl.UTF-8): Skrypty perlowe dla Squida
429Group: Networking/Admin
430Requires: %{name} = %{epoch}:%{version}-%{release}
431
432%description scripts
433This package contains Perl scripts and contributed programs for Squid.
434
435%description scripts -l pl.UTF-8
436Ten 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
442# Other patches:
443%patch0 -p1
444%patch1 -p1
445%patch2 -p1
446%patch4 -p1
447%patch5 -p1
448#%patch7 -p1
449%{?with_combined_log:%patch8 -p1}
450%patch9 -p1
451%ifarch ppc
452%patch10 -p1
453%endif
454
455%{__sed} -i -e '1s#!.*bin/perl#!%{__perl}#' {contrib,scripts,helpers/*/*}/*.pl
456
457%build
458%{__libtoolize}
459%{__aclocal}
460%{__autoconf}
461%{__autoheader}
462%{__automake}
463%configure \
464 --datadir=%{_datadir}/squid \
465 --enable-arp-acl \
466 --enable-auth="basic,digest,negotiate,ntlm" \
467 --enable-basic-auth-helpers="LDAP,MSNT,NCSA,PAM,SASL,SMB,YP,getpwnam,multi-domain-NTLM" \
468 --enable-cache-digests \
469 --enable-coss-aio-ops \
470 --enable-delay-pools \
471 --enable-digest-auth-helpers="ldap,password" \
472 --enable-err-language=English \
473 --enable-esi \
474 --enable-external-acl-helpers="ip_user,ldap_group,session,unix_group,wbinfo_group" \
475 --enable-follow-x-forwarded-for \
476 --enable-forward-log \
477 --enable-forw-via-db \
478 --enable-htcp \
479 --enable-icap-client \
480 --enable-icmp \
481 --enable-kill-parent-hack \
482 --enable-large-cache-files \
483 --enable-linux-netfilter \
484 --enable-linux-tproxy \
485 --enable-multicast-miss \
486 --enable-ntlm-auth-helpers="SMB,fakeauth,no_check" \
487 --enable-ntlm-fail-open \
488 --enable-referer-log \
489 --enable-removal-policies="heap,lru" \
490 --enable-snmp \
491 --enable-ssl \
492 --enable-storeio="aufs,diskd,null,ufs" \
493 --enable-useragent-log \
494 --enable-x-accelerator-vary \
495 --localstatedir=/var \
496 --sysconfdir=%{_sysconfdir} \
497 --with-auth-on-acceleration \
498 --with-large-files \
499 --with-maxfd=32768 \
500 --with-pthreads \
501 --enable-zph-qos
502
503%{__make}
504
505%install
506rm -rf $RPM_BUILD_ROOT
507install -d $RPM_BUILD_ROOT%{_cgidir} \
508 $RPM_BUILD_ROOT/etc/{pam.d,rc.d/init.d,security,sysconfig,logrotate.d} \
509 $RPM_BUILD_ROOT{%{_sbindir},%{_bindir},%{_libexecdir}/contrib} \
510 $RPM_BUILD_ROOT%{_mandir}/man8 \
511 $RPM_BUILD_ROOT%{_datadir}/squid \
512 $RPM_BUILD_ROOT/var/{cache,log{,/archive}}/squid
513
514%{__make} install \
515 DESTDIR=$RPM_BUILD_ROOT
516
517cp -a contrib/*.pl $RPM_BUILD_ROOT%{_libexecdir}/contrib
518install scripts/*.pl $RPM_BUILD_ROOT%{_libexecdir}
519
520install %{SOURCE7} $RPM_BUILD_ROOT/etc/pam.d/squid
521touch $RPM_BUILD_ROOT/etc/security/blacklist.squid
522
523mv -f $RPM_BUILD_ROOT%{_libdir}/squid/cachemgr.cgi $RPM_BUILD_ROOT%{_cgidir}
524
525cd $RPM_BUILD_ROOT/etc/squid
526cp -f squid.conf{,.default}
527%{__patch} -p0 < %{SOURCE5}
528rm -f *~ *.orig
529cd -
530
531install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/squid
532install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/squid
533install %{SOURCE6} $RPM_BUILD_ROOT/etc/logrotate.d/squid
534
535touch $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.
538rm -f $RPM_BUILD_ROOT%{_bindir}/R*
539
540# cp, to have re-entrant install
541rm -rf docs
542cp -a doc docs
543# dunno why, but manual is not installed
544mv docs/squid.8 $RPM_BUILD_ROOT%{_mandir}/man8
545# We don't want Makefiles as docs...
546rm -f docs/Makefile*
547
548# We don't like message: rpm found unpackaged files ...
549rm -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
558rm -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
568if ! 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
571fi
572
573/sbin/chkconfig --add squid
574if [ "$1" = "1" ]; then
575 /sbin/service squid init >&2
576fi
577%service squid restart
578
579%preun
580if [ "$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/??
586fi
587
588%postun
589if [ "$1" = "0" ]; then
590 %userremove squid
591 %groupremove squid
592fi
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%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(am) %{_datadir}/squid/errors/Armenian
624%lang(az) %{_datadir}/squid/errors/Azerbaijani
625%lang(bg) %{_datadir}/squid/errors/Bulgarian
626%lang(ca) %{_datadir}/squid/errors/Catalan
627%lang(cs) %{_datadir}/squid/errors/Czech
628%lang(da) %{_datadir}/squid/errors/Danish
629%lang(nl) %{_datadir}/squid/errors/Dutch
630%{_datadir}/squid/errors/English
631%lang(et) %{_datadir}/squid/errors/Estonian
632%lang(fi) %{_datadir}/squid/errors/Finnish
633%lang(fr) %{_datadir}/squid/errors/French
634%lang(de) %{_datadir}/squid/errors/German
635%lang(el) %{_datadir}/squid/errors/Greek
636%lang(he) %{_datadir}/squid/errors/Hebrew
637%lang(hu) %{_datadir}/squid/errors/Hungarian
638%lang(it) %{_datadir}/squid/errors/Italian
639%lang(ja) %{_datadir}/squid/errors/Japanese
640%lang(ko) %{_datadir}/squid/errors/Korean
641%lang(lt) %{_datadir}/squid/errors/Lithuanian
642%lang(pl) %{_datadir}/squid/errors/Polish
643%lang(pt) %{_datadir}/squid/errors/Portuguese
644%lang(ro) %{_datadir}/squid/errors/Romanian
645%lang(ru) %{_datadir}/squid/errors/Russian-1251
646%lang(ru) %{_datadir}/squid/errors/Russian-koi8-r
647%lang(zh_CN) %{_datadir}/squid/errors/Simplify_Chinese
648%lang(sk) %{_datadir}/squid/errors/Slovak
649%lang(es) %{_datadir}/squid/errors/Spanish
650%lang(sr) %{_datadir}/squid/errors/Serbian
651%lang(sv) %{_datadir}/squid/errors/Swedish
652%lang(zh_TW) %{_datadir}/squid/errors/Traditional_Chinese
653%lang(tr) %{_datadir}/squid/errors/Turkish
654%lang(uk) %{_datadir}/squid/errors/Ukrainian*
655%dir %{_libexecdir}
656
657%attr(770,root,squid) %dir /var/log/archive/squid
658%attr(770,root,squid) %dir /var/log/squid
659%attr(660,root,squid) %ghost /var/log/squid/*
660
661%attr(770,root,squid) %dir /var/cache/squid
662%ghost /var/cache/squid/netdb_state
663%ghost /var/cache/squid/swap.state
664%ghost /var/cache/squid/swap.state.clean
665%ghost /var/cache/squid/swap.state.last-clean
666%{_mandir}/man8/squid.8*
667
668%files cachemgr
669%defattr(644,root,root,755)
670%attr(640,root,squid) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cachemgr.conf
671%attr(755,root,root) %{_cgidir}/*
672%{_mandir}/man8/cachemgr.cgi.8*
673
674%files ldap_auth
675%defattr(644,root,root,755)
676%doc helpers/basic_auth/LDAP/README
677%attr(755,root,root) %{_libexecdir}/%{name}_ldap_auth
678%{_mandir}/man8/%{name}_ldap_auth.*
679
680%files pam_auth
681%defattr(644,root,root,755)
682%doc helpers/basic_auth/PAM/pam_auth.c
683%config(noreplace) /etc/pam.d/squid
684%config(noreplace) /etc/security/blacklist.squid
685%attr(755,root,root) %{_libexecdir}/pam_auth
686%{_mandir}/man8/pam_auth.8*
687
688%files smb_auth
689%defattr(644,root,root,755)
690%doc helpers/basic_auth/SMB/{README,ChangeLog,smb_auth.sh}
691%doc helpers/basic_auth/multi-domain-NTLM/*
692%attr(755,root,root) %{_libexecdir}/smb_auth*
693
694%files msnt_auth
695%defattr(644,root,root,755)
696%doc helpers/basic_auth/MSNT/README*
697%attr(755,root,root) %{_libexecdir}/msnt_auth
698%attr(640,root,squid) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/msntauth.conf
699
700%files yp_auth
701%defattr(644,root,root,755)
702%attr(755,root,root) %{_libexecdir}/yp_auth
703
704%files ncsa_auth
705%defattr(644,root,root,755)
706%attr(755,root,root) %{_libexecdir}/ncsa_auth
707%{_mandir}/man8/ncsa_auth.8*
708
709%files sasl_auth
710%defattr(644,root,root,755)
711%doc helpers/basic_auth/SASL/{README,squid_sasl*}
712%attr(755,root,root) %{_libexecdir}/sasl_auth
713
714%files getpwname_auth
715%defattr(644,root,root,755)
716%attr(755,root,root) %{_libexecdir}/getpwname_auth
717
718%files passwd_auth
719%defattr(644,root,root,755)
720%attr(755,root,root) %{_libexecdir}/digest_pw_auth
721
722%files ntlm_auth
723%defattr(644,root,root,755)
724%doc helpers/ntlm_auth/no_check/{README*,no_check.pl}
725%attr(755,root,root) %{_libexecdir}/ntlm_auth
726
727%files digest_ldap_auth
728%defattr(644,root,root,755)
729%attr(755,root,root) %{_libexecdir}/digest_ldap_auth
730
731%files ip_acl
732%defattr(644,root,root,755)
733%doc helpers/external_acl/ip_user/{README,example*}
734%attr(755,root,root) %{_libexecdir}/ip_user_check
735
736%files ldap_acl
737%defattr(644,root,root,755)
738%attr(755,root,root) %{_libexecdir}/squid_ldap_group
739%{_mandir}/man8/%{name}_ldap_group.*
740
741%files unix_acl
742%defattr(644,root,root,755)
743%doc helpers/external_acl/unix_group/README
744%attr(755,root,root) %{_libexecdir}/squid_unix_group
745%{_mandir}/man8/%{name}_unix_group.*
746
747%files wbinfo_acl
748%defattr(644,root,root,755)
749%attr(755,root,root) %{_libexecdir}/wbinfo_group.pl
750
751%files session_acl
752%defattr(644,root,root,755)
753%attr(755,root,root) %{_libexecdir}/squid_session
754%{_mandir}/man8/%{name}_session.8*
755
756%files scripts
757%defattr(644,root,root,755)
758%attr(755,root,root) %{_libexecdir}/*.pl
759%attr(755,root,root) %{_libexecdir}/contrib
This page took 0.031134 seconds and 4 git commands to generate.