]> git.pld-linux.org Git - packages/squid.git/blobdiff - squid.spec
- updated to 3.2.11
[packages/squid.git] / squid.spec
index 9238256b2994582c569c4122927a698a5e9bc67e..97228b537abb3bd47321e207ad3145c3a6d37d6a 100644 (file)
@@ -16,13 +16,13 @@ Summary(ru.UTF-8):  Squid - кэш объектов Internet
 Summary(uk.UTF-8):     Squid - кеш об'єктів Internet
 Summary(zh_CN.UTF-8):  SQUID 高速缓冲代理服务器
 Name:          squid
-Version:       3.2.3
+Version:       3.2.11
 Release:       1
 Epoch:         7
 License:       GPL v2
 Group:         Networking/Daemons
 Source0:       http://www.squid-cache.org/Versions/v3/3.2/%{name}-%{version}.tar.bz2
-# Source0-md5: b26171dfd397defd9ee113d555691b86
+# Source0-md5: cdd3612bed27e8d513b713004c78bf5b
 Source1:       %{name}.init
 Source2:       %{name}.sysconfig
 Source3:       http://squid-docs.sourceforge.net/latest/zip-files/book-full-html.zip
@@ -38,6 +38,11 @@ Patch2:              %{name}-crash-on-ENOSPC.patch
 Patch4:                %{name}-2.5.STABLE4-apache-like-combined-log.patch
 Patch5:                %{name}-ppc-m32.patch
 Patch6:                %{name}-cachemgr-webapp.patch
+# http://www.squid-cache.org/mail-archive/squid-dev/201207/0099.html
+# http://www.squid-cache.org/mail-archive/squid-dev/201207/att-0177/squidv3-vary-cache-1.patch
+Patch7:                squidv3-vary-cache-1.patch
+# http://www.squid-cache.org/mail-archive/squid-dev/201207/att-0177/squidv3-vary-headers-shm-hack.patch
+Patch8:                squidv3-vary-headers-shm-hack.patch
 URL:           http://www.squid-cache.org/
 BuildRequires: autoconf
 BuildRequires: automake
@@ -210,8 +215,9 @@ zapoznać się z informacjami o pracy Squida poprzez WWW.
 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
-Obsoletes:     squid-kerb_auth < %{version}-%{release}
-Provides:      squid-kerb_auth = %{version}-%{release}
+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
@@ -230,6 +236,7 @@ SPNEGO i żetony Kerberos RFC 1964 z Firefoksa w Linuksie.
 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
@@ -243,6 +250,7 @@ uwierzytelniania (otwartym tekstem).
 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
@@ -258,6 +266,7 @@ Program ten pozwala na uwierzytelnianie użytkowników squida w dowolnym
 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
@@ -273,6 +282,7 @@ Samba.
 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
@@ -286,8 +296,9 @@ uwierzytelnianie użytkowników proxy w domenie NT.
 Summary:       NIS authentication helper for Squid
 Summary(pl.UTF-8):     Obsługa uwierzytelniania NIS dla squida
 Group:         Networking/Admin
-Obsoletes:     squid-yp_auth < %{version}-%{release}
-Provides:      squid-yp_auth = %{version}-%{release}
+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
@@ -301,6 +312,7 @@ uwierzytelnianie użytkowników proxy poprzez NIS.
 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.
@@ -312,6 +324,7 @@ Moduł uwierzytelniania proxy używający pliku haseł jak w NCSA httpd.
 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
@@ -325,6 +338,7 @@ uwierzytelnianie użytkowników proxy poprzez SASL.
 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
@@ -338,6 +352,7 @@ uwierzytelnianie użytkowników proxy poprzez getpwname.
 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
@@ -351,6 +366,7 @@ uwierzytelnianie użytkowników proxy poprzez oddzielny plik passwd.
 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
@@ -364,6 +380,7 @@ uwierzytelnianie użytkowników proxy poprzez NTLM.
 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
@@ -377,6 +394,9 @@ serwer RADIUS.
 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
@@ -390,6 +410,7 @@ uwierzytelnianie użytkowników proxy poprzez bazę danych.
 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
@@ -403,8 +424,9 @@ uwierzytelnianie użytkowników proxy poprzez POP3.
 Summary:       Kerberos authentication helper for Squid
 Summary(pl.UTF-8):     Obsługa uwierzytelniania Kerberos dla squida
 Group:         Networking/Admin
-Requires:      %{name}-ntlm_auth
-Requires:      %{name}-kerberos_auth
+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
@@ -418,6 +440,7 @@ uwierzytelnianie użytkowników proxy poprzez Kerberosa.
 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
@@ -431,6 +454,7 @@ uwierzytelnianie użytkowników proxy poprzez eDirectory.
 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
@@ -542,8 +566,8 @@ 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.
+ograniczenie dostępu użytkowników proxy na podstawie ich uprawnień
+Kerberosowych lub NTLM-owych w LDAP.
 
 %package scripts
 Summary:       Perl scripts for Squid
@@ -567,6 +591,10 @@ Ten pakiet zawiera skrypty perlowe i dodatkowe programy dla Squida.
 %patch5 -p1
 %endif
 %patch6 -p1
+%patch7 -p1
+%patch8 -p1
+
+%{__sed} -i -e '1s#!.*bin/perl#!%{__perl}#' {contrib,scripts}/*.pl
 
 %build
 %{__libtoolize}
@@ -888,7 +916,8 @@ fi
 %defattr(644,root,root,755)
 %config(noreplace) /etc/pam.d/squid
 %config(noreplace) /etc/security/blacklist.squid
-%attr(755,root,root) %{_libexecdir}/basic_pam_auth
+# 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
@@ -952,7 +981,7 @@ fi
 
 %files db_auth
 %defattr(644,root,root,755)
-%{_libexecdir}/basic_db_auth
+%attr(755,root,root) %{_libexecdir}/basic_db_auth
 %{_mandir}/man8/basic_db_auth.8*
 
 %files pop3_auth
This page took 0.12446 seconds and 4 git commands to generate.