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