X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=squid.spec;h=fd2dea17840c31edd5d7c4e61e3910770c5c9e3b;hb=7075aa00154b6f74bcc244d60fb2cd6b7402973c;hp=52a8fd341bd7961b8a407ed5ff531b50a3015216;hpb=c8e93bac44a4230db2ad84a3cb76ba613f515b27;p=packages%2Fsquid.git diff --git a/squid.spec b/squid.spec index 52a8fd3..fd2dea1 100644 --- a/squid.spec +++ b/squid.spec @@ -1,61 +1,69 @@ # TODO -# - check http://security.gentoo.org/glsa/glsa-200509-06.xml +# - 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 +# - Installed (but unpackaged) file(s) found: +# /usr/share/squid/errors/templates/ERR_ACCESS_DENIED +# /usr/share/squid/errors/templates/ERR_ZERO_SIZE_OBJECT # # Conditional build: %bcond_with combined_log # enables apache-like combined log format # Summary: SQUID Internet Object Cache -Summary(es): proxy/cache para WWW/FTP/gopher -Summary(pl): Uniwersalny serwer proxy-cache -Summary(pt_BR): Cache Squid de objetos Internet -Summary(ru): Squid - ËÜÛ ÏÂßÅËÔÏ× Internet -Summary(uk): Squid - ËÅÛ ÏÂ'¤ËÔ¦× Internet -Summary(zh_CN): SQUID ¸ßËÙ»º³å´úÀí·þÎñÆ÷ +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: 2.5.STABLE12 -Release: 2.4 +Version: 3.0.STABLE16 +# review patches before stable release +Release: 0.1 Epoch: 7 License: GPL v2 Group: Networking/Daemons -Source0: http://www.squid-cache.org/Versions/v2/2.5/%{name}-%{version}.tar.bz2 -# Source0-md5: 7354255015b3772a1e024dfac173e48c +Source0: http://www.squid-cache.org/Versions/v3/3.0/%{name}-%{version}.tar.bz2 +# Source0-md5: aa039a2c75404a496f0e99a278599e00 # http://www.squid-cache.org/Doc/FAQ/FAQ.tar.gz Source1: %{name}-FAQ.tar.gz # Source1-md5: cb9a955f8cda9cc166e086fccd412a43 Source2: %{name}.init Source3: %{name}.sysconfig # http://squid-docs.sourceforge.net/latest/zip-files/book-full-html.zip -Source4: %{name}-book-full-html.zip +Source4: http://squid-docs.sourceforge.net/latest/zip-files/book-full-html.zip # Source4-md5: 4f3b6dab1de9cbb847df89d8b417378a Source5: %{name}.conf.patch Source6: %{name}.logrotate Source7: %{name}.pamd # Bug fixes from Squid home page, please include URL -Patch0: http://www.squid-cache.org/Versions/v2/2.5/bugs/%{name}-2.5.STABLE12-setenv.patch +# lets have fun - there is no patches... yet:) # Other patches: -Patch100: http://www.sed.pl/~mrk/qos/%{name}_hit_miss_mark.patch -Patch101: %{name}-fhs.patch -Patch102: %{name}-location.patch -Patch103: %{name}-domainmatch.patch -Patch104: %{name}-libnsl_fixes.patch -Patch105: %{name}-ac_fix.patch -Patch106: %{name}-crash-on-ENOSPC.patch -Patch107: %{name}-newssl.patch -Patch108: %{name}-nolibs.patch -Patch109: http://piorun.ds.pg.gda.pl/~blues/patches/%{name}-more_FD-new.patch -Patch110: %{name}-empty-referer.patch -Patch111: %{name}-align.patch -Patch112: %{name}-2.5.STABLE4-apache-like-combined-log.patch -Patch113: %{name}-auth_on_acceleration.patch +# http://zph.bratcheda.org/ +Source8: %{name}-cachemgr-apache.conf +Patch0: %{name}_hit_miss_mark.patch +Patch1: %{name}-fhs.patch +Patch2: %{name}-location.patch +Patch4: %{name}-libnsl_fixes.patch +Patch5: %{name}-crash-on-ENOSPC.patch +Patch7: %{name}-empty-referer.patch +Patch8: %{name}-2.5.STABLE4-apache-like-combined-log.patch +Patch9: %{name}-auth_on_acceleration.patch +Patch10: %{name}-ppc-m32.patch +Patch11: %{name}-cachemgr-webapp.patch URL: http://www.squid-cache.org/ BuildRequires: autoconf BuildRequires: automake BuildRequires: cyrus-sasl-devel >= 2.1.0 -BuildRequires: openldap-devel +BuildRequires: db-devel +BuildRequires: libltdl-devel +BuildRequires: openldap-devel >= 2.3.0 BuildRequires: openssl-devel >= 0.9.7d BuildRequires: pam-devel BuildRequires: perl-base -BuildRequires: rpmbuild(macros) >= 1.202 +BuildRequires: rpmbuild(macros) >= 1.268 BuildRequires: sed >= 4.0 BuildRequires: unzip Requires(post): /bin/hostname @@ -65,20 +73,26 @@ Requires(post): grep Requires(post,preun): /sbin/chkconfig Requires(postun): /usr/sbin/groupdel Requires(postun): /usr/sbin/userdel -Requires(pre): /bin/id +Requires(pre,triggerpostun): /bin/id 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,triggerpostun): /usr/sbin/usermod Requires: rc-scripts >= 0.2.0 Requires: setup >= 2.4.6 Provides: group(squid) +# epoll enabled by default: +Requires: uname(release) >= 2.6 Provides: user(squid) +Conflicts: logrotate < 3.7-4 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) +%define _webapps /etc/webapps +%define _webapp cachemgr %define _libexecdir %{_libdir}/%{name} %define _sysconfdir /etc/%{name} -%define _cgidir /home/services/httpd/cgi-bin +%define _cgidir %{_prefix}/lib/cgi-bin/%{_webapp} %description Squid is a high-performance proxy caching server for web clients, @@ -99,117 +113,120 @@ 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 -Squid es un servidor proxy con caché de alto desempeño para clientes +%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é +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, +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 +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 +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, +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 -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 +%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 -O Squid é um servidor proxy com cache de alta performance para +%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. +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. +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 +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. +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 +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. +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 -Squid - ÜÔÏ ×ÙÓÏËÏÐÒÏÉÚ×ÏÄÉÔÅÌØÎÙÊ ËÜÛÉÒÕÀÝÉÊ ÐÒÏËÓÉ-ÓÅÒ×ÅÒ ÄÌÑ -ËÌÉÅÎÔÏ× web, ÐÏÄÄÅÒÖÉ×ÁÀÝÉÊ ÏÂßÅËÔÙ ÄÁÎÎÙÈ ÔÉÐÁ FTP, gopher É HTTP. ÷ -ÏÔÌÉÞÉÅ ÏÔ ÔÒÁÄÉÃÉÏÎÎÙÈ ËÜÛÉÒÕÀÝÉÈ ÐÒÏÇÒÁÍÍ, Squid ÏÂÒÁÂÁÔÙ×ÁÅÔ ×ÓÅ -ÚÁÐÒÏÓÙ ÐÒÉ ÐÏÍÏÝÉ ÏÄÎÏÇÏ ÎÅÂÌÏËÉÒÕÀÝÅÇÏÓÑ, ÕÐÒÁ×ÌÑÅÍÏÇÏ -××ÏÄÏÍ-×Ù×ÏÄÏÍ ÐÒÏÃÅÓÓÁ. +%description -l ru.UTF-8 +Squid - это высокопроизводительный кэширующий прокси-сервер для +клиентов web, поддерживающий объекты данных типа FTP, gopher и HTTP. В +отличие от традиционных кэширующих программ, Squid обрабатывает все +запросы при помощи одного неблокирующегося, управляемого +вводом-выводом процесса. -üÔÏÔ ÐÁËÅÔ ÉÍÅÅÔ ×ÓÔÒÏÅÎÎÕÀ ÐÏÄÄÅÒÖËÕ ÂÁÚÙ ÄÁÎÎÙÈ ÓÅÔÅ×ÙÈ ICMP-ÐÒÏ +Этот пакет имеет встроенную поддержку базы данных сетевых ICMP-проб (Netdb). -%description -l uk -Squid - ÃÅ ËÅÛÕÀÞÉÊ ÐÒÏËÓ¦-ÓÅÒ×ÅÒ ÄÌÑ web-Ë̦¤ÎÔ¦×, ÝÏ Ð¦ÄÔÒÉÍÕ¤ -ÏÂ'¤ËÔÉ ÄÁÎÉÈ ÔÉÐÕ FTP, gopher ÔÁ HTTP. îÁ צÄͦÎÕ ×¦Ä ÔÒÁÄÉæÊÎÉÈ -ËÅÛÕÀÞÉÈ ÐÒÏÇÒÁÍ, Squid ÏÂÒÏÂÌѤ ×Ó¦ ÚÁÐÉÔÉ ÚÁ ÄÏÐÏÍÏÇÏÀ ÏÄÎÏÇÏ -ÎÅÂÌÏËÕÀÞÏÇÏ, ËÅÒÏ×ÁÎÏÇÏ ××ÏÄÏÍ-×É×ÏÄÏÍ ÐÒÏÃÅÓÕ. +%description -l uk.UTF-8 +Squid - це кешуючий проксі-сервер для web-клієнтів, що підтримує +об'єкти даних типу FTP, gopher та HTTP. На відміну від традиційних +кешуючих програм, Squid обробляє всі запити за допомогою одного +неблокуючого, керованого вводом-виводом процесу. -ãÅÊ ÐÁËÅÔ ÍÁ¤ ×ÂÕÄÏ×ÁÎÕ Ð¦ÄÔÒÉÍËÕ ÂÁÚÉ ÄÁÎÉÈ ÍÅÒÅÖÅ×ÉÈ ICMP-ÐÒÏ +Цей пакет має вбудовану підтримку бази даних мережевих ICMP-проб (Netdb). %package cachemgr Summary: CGI script for Squid management -Summary(pl): Skrypt CGI do zarz±dzania Squidem przez WWW -Group: Networking/Admin -Requires: %{name} = %{epoch}:%{version}-%{release} -Requires: httpd +Summary(pl.UTF-8): Skrypt CGI do zarządzania Squidem przez WWW +Group: Applications/WWW +# does not require squid locally +Requires: group(http) +Requires: webapps +Requires: webserver +Requires: webserver(access) +Requires: webserver(alias) +Requires: webserver(cgi) %description cachemgr -Cachemgr.cgi is a CGI script that allows administrator to chceck +Cachemgr.cgi is a CGI script that allows administrator to check various informations about Squid via WWW. -%description cachemgr -l pl -Cachemgr.cgi jest skryptem CGI, który pozwala administratorowi -zapoznaæ siê z informacjami o pracy Squida poprzez WWW. +%description cachemgr -l pl.UTF-8 +Cachemgr.cgi jest skryptem CGI, który pozwala administratorowi +zapoznać się z informacjami o pracy Squida poprzez WWW. %package ldap_auth Summary: LDAP authentication helper for Squid -Summary(pl): Obs³uga uwierzytelniania LDAP dla squida +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 -Pakiet ten pozwala na uwierzytelnianie przez LDAP za pomoc± prostego +%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): Obs³uga uwierzytelniania PAM dla squida +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 @@ -217,139 +234,130 @@ 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 -Program ten pozwala na uwierzytelnianie u¿ytkowników squida w dowolnym -¼ródle posiadaj±cym modu³ PAM. +%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): Obs³uga uwierzytelniania SMB dla squida +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 -To jest modu³ uwierzytelniania proxy. Przy pomocy smb_auth mo¿na -uwierzytelniaæ u¿ytkowników proxy na serwerach SMB, jak Windows NT czy +%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): Obs³uga uwierzytelniania w domenie MSNT dla squida +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 -Jest to modu³ uwierzytelniania proxy, który pozwala na -uwierzytelnianie u¿ytkowników proxy w domenie NT. +%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 yp_auth Summary: YP authentication helper for Squid -Summary(pl): Obs³uga uwierzytelniania YP dla squida +Summary(pl.UTF-8): Obsługa uwierzytelniania YP dla squida Group: Networking/Admin -Requires: %{name} = %{epoch}:%{version}-%{release} %description yp_auth This is an authentication module for the Squid proxy server to authenticate users on YP. -%description yp_auth -l pl -Jest to modu³ uwierzytelniania proxy, który pozwala na -uwierzytelnianie u¿ytkowników proxy poprzez YP. +%description yp_auth -l pl.UTF-8 +Jest to moduł uwierzytelniania proxy, który pozwala na +uwierzytelnianie użytkowników proxy poprzez YP. %package ncsa_auth Summary: NCSA httpd style authentication helper for Squid -Summary(pl): Obs³uga uwierzytelniania NCSA httpd dla squida +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 -Modu³ uwierzytelniania proxy u¿ywaj±cy pliku hase³ jak w NCSA httpd. +%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): Obs³uga uwierzytelniania SASL dla squida +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 -Jest to modu³ uwierzytelniania proxy, który pozwala na -uwierzytelnianie u¿ytkowników proxy poprzez SASL. - -%package winbind_auth -Summary: WINBIND authentication helper for Squid -Summary(pl): Obs³uga uwierzytelniania WINBIND dla squida -Group: Networking/Admin -Requires: %{name} = %{epoch}:%{version}-%{release} - -%description winbind_auth -This is an authentication module for the Squid proxy server to -authenticate users via WINBIND. - -%description winbind_auth -l pl -Jest to modu³ uwierzytelniania proxy, który pozwala na -uwierzytelnianie u¿ytkowników proxy poprzez WINBIND. +%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): Obs³uga uwierzytelniania getpwname dla squida +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 -Jest to modu³ uwierzytelniania proxy, który pozwala na -uwierzytelnianie u¿ytkowników proxy poprzez 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): Obs³uga uwierzytelniania passwd dla squida +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 -Jest to modu³ uwierzytelniania proxy, który pozwala na -uwierzytelnianie u¿ytkowników proxy poprzez oddzielny plik passwd. +%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): Obs³uga uwierzytelniania NTLM dla squida +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 -Jest to modu³ uwierzytelniania proxy, który pozwala na -uwierzytelnianie u¿ytkowników proxy poprzez 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 digest_ldap_auth +Summary: LDAP authentication helper for Squid +Summary(pl.UTF-8): Obsługa uwierzytelniania LDAP dla squida +Group: Networking/Admin + +%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): Wsparcie kontroli dostêpu przez IP dla squida +Summary(pl.UTF-8): Wsparcie kontroli dostępu przez IP dla squida Group: Networking/Admin Requires: %{name} = %{epoch}:%{version}-%{release} @@ -357,13 +365,13 @@ Requires: %{name} = %{epoch}:%{version}-%{release} 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 -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. +%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): Wsparcie kontroli dostêpu przez grupy LDAP dla squida +Summary(pl.UTF-8): Wsparcie kontroli dostępu przez grupy LDAP dla squida Group: Networking/Admin Requires: %{name} = %{epoch}:%{version}-%{release} @@ -371,14 +379,14 @@ Requires: %{name} = %{epoch}:%{version}-%{release} 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 -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. +%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): Wsparcie kontroli dostêpu przez grupy UNIX dla squida +Summary(pl.UTF-8): Wsparcie kontroli dostępu przez grupy UNIX dla squida Group: Networking/Admin Requires: %{name} = %{epoch}:%{version}-%{release} @@ -386,14 +394,14 @@ Requires: %{name} = %{epoch}:%{version}-%{release} 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 -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. +%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): Wsparcie kontroli dostêpu przez grupy w domenie NT dla squida +Summary(pl.UTF-8): Wsparcie kontroli dostępu przez grupy w domenie NT dla squida Group: Networking/Admin Requires: %{name} = %{epoch}:%{version}-%{release} @@ -401,107 +409,114 @@ Requires: %{name} = %{epoch}:%{version}-%{release} 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 -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. +%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 winbind_acl -Summary: NT domain group external ACL helper for Squid -Summary(pl): Wsparcie kontroli dostêpu przez grupy w domenie NT dla squida +%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 winbind_acl -This is an external ACL module for the Squid proxy server to limit -access for users based on NT domain group membership based on Samba -Winbindd from Samba 2.2.4 or greater. +%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 winbind_acl -l pl -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 oparty na Samba Winbindd z pakietu -Samba 2.2.4 lub wy¿szego. +%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 scripts Summary: Perl scripts for Squid -Summary(pl): Skrypty perlowe dla Squida +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 +%description scripts -l pl.UTF-8 Ten pakiet zawiera skrypty perlowe i dodatkowe programy dla Squida. %prep %setup -q -a1 -a4 # Bug fixes from Squid home page: -%patch0 -p1 + # Other patches: -%patch100 -p1 -%patch101 -p1 -%patch102 -p1 -%patch103 -p1 -%patch104 -p1 -%patch105 -p1 -%patch106 -p1 -%patch107 -p1 -%patch108 -p1 -%patch109 -p1 -%patch110 -p1 -%patch111 -p1 -%{?with_combined_log:%patch112 -p1} -%patch113 -p1 +#%patch0 -p1 +%patch1 -p1 +%patch2 -p1 +%patch4 -p1 +%patch5 -p1 +#%patch7 -p1 +%{?with_combined_log:%patch8 -p1} +%patch9 -p1 +%ifarch ppc +%patch10 -p1 +%endif +%patch11 -p1 %{__sed} -i -e '1s#!.*bin/perl#!%{__perl}#' {contrib,scripts,helpers/*/*}/*.pl %build +%{__libtoolize} %{__aclocal} %{__autoconf} %{__autoheader} %{__automake} %configure \ --datadir=%{_datadir}/squid \ - --disable-ipf-transparent \ --enable-arp-acl \ - --enable-auth=yes \ - --enable-basic-auth-helpers=yes \ + --enable-auth="basic,digest,negotiate,ntlm" \ + --enable-basic-auth-helpers="LDAP,MSNT,NCSA,PAM,SASL,SMB,YP,getpwnam,multi-domain-NTLM" \ --enable-cache-digests \ - --enable-carp \ + --enable-coss-aio-ops \ --enable-delay-pools \ - --enable-digest-auth-helpers=yes \ + --enable-digest-auth-helpers="ldap,password" \ --enable-err-language=English \ - --enable-external-acl-helpers=yes \ + --enable-esi \ + --enable-external-acl-helpers="ip_user,ldap_group,session,unix_group,wbinfo_group" \ + --enable-follow-x-forwarded-for \ + --enable-forward-log \ --enable-forw-via-db \ --enable-htcp \ + --enable-icap-client \ --enable-icmp \ + --enable-kill-parent-hack \ + --enable-large-cache-files \ --enable-linux-netfilter \ - --enable-ntlm-auth-helpers=yes \ + --enable-linux-tproxy \ + --enable-multicast-miss \ + --enable-ntlm-auth-helpers="SMB,fakeauth,no_check" \ + --enable-ntlm-fail-open \ --enable-referer-log \ - --enable-removal-policies="lru heap" \ - --enable-ssl \ + --enable-removal-policies="heap,lru" \ --enable-snmp \ - --enable-storeio="aufs,coss,diskd,null,ufs" \ - --enable-underscores \ + --enable-ssl \ + --enable-storeio="aufs,diskd,null,ufs" \ --enable-useragent-log \ --enable-x-accelerator-vary \ --localstatedir=/var \ --sysconfdir=%{_sysconfdir} \ --with-auth-on-acceleration \ - --with-pthreads + --with-large-files \ + --with-maxfd=32768 \ + --with-pthreads \ + --enable-zph-qos %{__make} %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT%{_cgidir} \ +install -d $RPM_BUILD_ROOT{%{_cgidir},%{_webapps}/%{_webapp}} \ $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{,/archiv}}/squid + $RPM_BUILD_ROOT/var/{cache,log{,/archive}}/squid %{__make} install \ DESTDIR=$RPM_BUILD_ROOT @@ -513,10 +528,13 @@ install %{SOURCE7} $RPM_BUILD_ROOT/etc/pam.d/squid touch $RPM_BUILD_ROOT/etc/security/blacklist.squid mv -f $RPM_BUILD_ROOT%{_libdir}/squid/cachemgr.cgi $RPM_BUILD_ROOT%{_cgidir} +cp -a %{SOURCE8} $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/apache.conf +cp -a %{SOURCE8} $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/httpd.conf +rm -f $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/cachemgr.conf.default cd $RPM_BUILD_ROOT/etc/squid -cp -f squid.conf{,.default} -patch -p0 < %{SOURCE5} +%{__patch} -p0 < %{SOURCE5} +rm -f *~ *.orig mime.conf.default squid.conf.default cd - install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/squid @@ -540,17 +558,14 @@ rm -f docs/Makefile* rm -f $RPM_BUILD_ROOT/etc/squid/msntauth.conf.default \ $RPM_BUILD_ROOT/etc/squid/squid.conf.orig -> $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 +:> $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 %clean rm -rf $RPM_BUILD_ROOT -%triggerpostun -- squid < 7:2.5.STABLE7-5 -%addusertogroup stats squid - %pre %groupadd -g 91 squid %useradd -o -u 91 -s /bin/false -g squid -c "SQUID http caching daemon" -d /var/cache/squid squid @@ -564,22 +579,16 @@ if ! grep -q "^visible_hostname" /etc/squid/squid.conf; then echo visible_hostname $hostname >> /etc/squid/squid.conf fi +/sbin/chkconfig --add squid if [ "$1" = "1" ]; then - /sbin/chkconfig --add squid - /etc/rc.d/init.d/squid init >&2 - echo "Run \"/etc/rc.d/init.d/squid start\" to start squid." >&2 -else - if [ -f /var/lock/subsys/squid ]; then - /etc/rc.d/init.d/squid restart >&2 - fi + /sbin/service squid init >&2 fi +%service squid restart %preun if [ "$1" = "0" ]; then - if [ -f /var/lock/subsys/squid ]; then - /etc/rc.d/init.d/squid stop >&2 - fi /sbin/chkconfig --del squid + %service squid stop # nuke squid cache if uninstalling rm -rf /var/cache/squid/?? @@ -591,10 +600,31 @@ if [ "$1" = "0" ]; then %groupremove squid fi +%triggerpostun -- squid < 7:2.5.STABLE7-5 +%addusertogroup stats squid + +%triggerin cachemgr -- apache1 < 1.3.37-3, apache1-base +%webapp_register apache %{_webapp} + +%triggerun cachemgr -- apache1 < 1.3.37-3, apache1-base +%webapp_unregister apache %{_webapp} + +%triggerin cachemgr -- apache < 2.2.0, apache-base +%webapp_register httpd %{_webapp} + +%triggerun cachemgr -- apache < 2.2.0, apache-base +%webapp_unregister httpd %{_webapp} + +%triggerpostun -- cachemgr < 7:3.0.STABLE10-0.2 +if [ -f %{_sysconfdir}/cachemgr.conf.rpmsave ]; then + cp -f %{_webapps}/%{_webapp}/cachemgr.conf{,.rpmsave} + mv -f %{_sysconfdir}/cachemgr.conf.rpmsave %{_webapps}/%{_webapp}/cachemgr.conf +fi + %files %defattr(644,root,root,755) %doc CONTRIBUTORS COPYRIGHT CREDITS README ChangeLog QUICKSTART RELEASENOTES.html SPONSORS -%doc docs/* src/mib.txt FAQ*.html book-full.html +%doc docs/* src/mib.txt FAQ*.html book-full.html src/squid.conf.default src/mime.conf.default %attr(755,root,root) %{_bindir}/squidclient %attr(755,root,root) %{_libexecdir}/diskd # YES, it has to be suid root, it sends ICMP packets. @@ -603,20 +633,20 @@ fi %attr(755,root,root) %{_libexecdir}/fakeauth_auth %attr(755,root,root) %{_sbindir}/* -%attr(755,root,root) %dir %{_sysconfdir} - %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,squid) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/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,root) %{_sysconfdir}/mime.conf.default -%attr(640,root,root) %{_sysconfdir}/squid.conf.default %dir %{_datadir}/squid %dir %{_datadir}/squid/errors %{_datadir}/squid/icons %{_datadir}/squid/mib.txt +%lang(am) %{_datadir}/squid/errors/Armenian +%lang(az) %{_datadir}/squid/errors/Azerbaijani %lang(bg) %{_datadir}/squid/errors/Bulgarian %lang(ca) %{_datadir}/squid/errors/Catalan %lang(cs) %{_datadir}/squid/errors/Czech @@ -646,10 +676,11 @@ fi %lang(sv) %{_datadir}/squid/errors/Swedish %lang(zh_TW) %{_datadir}/squid/errors/Traditional_Chinese %lang(tr) %{_datadir}/squid/errors/Turkish +%lang(uk) %{_datadir}/squid/errors/Ukrainian* +%{_datadir}/squid/errors/templates +%dir %{_libexecdir} -%attr(755,root,root) %dir %{_libexecdir} - -%attr(770,root,squid) %dir /var/log/archiv/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/* @@ -662,8 +693,11 @@ fi %files cachemgr %defattr(644,root,root,755) -%attr(640,root,squid) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cachemgr.conf -%attr(755,root,root) %{_cgidir}/* +%dir %attr(750,root,http) %{_webapps}/%{_webapp} +%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webapps}/%{_webapp}/apache.conf +%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webapps}/%{_webapp}/httpd.conf +%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_webapps}/%{_webapp}/cachemgr.conf +%attr(755,root,root) %{_cgidir}/cachemgr.cgi %{_mandir}/man8/cachemgr.cgi.8* %files ldap_auth @@ -699,16 +733,13 @@ fi %files ncsa_auth %defattr(644,root,root,755) %attr(755,root,root) %{_libexecdir}/ncsa_auth +%{_mandir}/man8/ncsa_auth.8* %files sasl_auth %defattr(644,root,root,755) %doc helpers/basic_auth/SASL/{README,squid_sasl*} %attr(755,root,root) %{_libexecdir}/sasl_auth -%files winbind_auth -%defattr(644,root,root,755) -%attr(755,root,root) %{_libexecdir}/wb_auth - %files getpwname_auth %defattr(644,root,root,755) %attr(755,root,root) %{_libexecdir}/getpwname_auth @@ -720,9 +751,12 @@ fi %files ntlm_auth %defattr(644,root,root,755) %doc helpers/ntlm_auth/no_check/{README*,no_check.pl} -%attr(755,root,root) %{_libexecdir}/wb_ntlmauth %attr(755,root,root) %{_libexecdir}/ntlm_auth +%files digest_ldap_auth +%defattr(644,root,root,755) +%attr(755,root,root) %{_libexecdir}/digest_ldap_auth + %files ip_acl %defattr(644,root,root,755) %doc helpers/external_acl/ip_user/{README,example*} @@ -743,10 +777,10 @@ fi %defattr(644,root,root,755) %attr(755,root,root) %{_libexecdir}/wbinfo_group.pl -%files winbind_acl +%files session_acl %defattr(644,root,root,755) -%doc helpers/external_acl/winbind_group/readme.txt -%attr(755,root,root) %{_libexecdir}/wb_group +%attr(755,root,root) %{_libexecdir}/squid_session +%{_mandir}/man8/%{name}_session.8* %files scripts %defattr(644,root,root,755)