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