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