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