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