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