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