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