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