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