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