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