Summary(uk.UTF-8): Squid - кеш об'єктів Internet
Summary(zh_CN.UTF-8): SQUID 高速缓冲代理服务器
Name: squid
-Version: 3.1.8
-# review patches before stable release
-Release: 0.1
+Version: 3.1.20
+Release: 3
Epoch: 7
License: GPL v2
Group: Networking/Daemons
Source0: http://www.squid-cache.org/Versions/v3/3.1/%{name}-%{version}.tar.bz2
-# Source0-md5: a8160dfba55ab7c400c622b72d39fc13
-# 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: 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
-# lets have fun - there is no patches... yet:)
-# Other patches:
-# http://zph.bratcheda.org/
-Source8: %{name}-cachemgr-apache.conf
-Patch1: %{name}-fhs.patch
-Patch2: %{name}-location.patch
-Patch3: %{name}-crash-on-ENOSPC.patch
-Patch4: %{name}-empty-referer.patch
-Patch5: %{name}-2.5.STABLE4-apache-like-combined-log.patch
-Patch6: %{name}-ppc-m32.patch
-Patch7: %{name}-cachemgr-webapp.patch
+# Source0-md5: c4d733a383c0508fd0746d64a2d7278a
+Source1: %{name}.init
+Source2: %{name}.sysconfig
+Source3: http://squid-docs.sourceforge.net/latest/zip-files/book-full-html.zip
+# Source3-md5: 4f3b6dab1de9cbb847df89d8b417378a
+Source4: %{name}.conf.patch
+Source5: %{name}.logrotate
+Source6: %{name}.pamd
+Source7: %{name}-cachemgr-apache.conf
+Patch0: %{name}-fhs.patch
+Patch1: %{name}-location.patch
+Patch2: %{name}-crash-on-ENOSPC.patch
+Patch3: %{name}-empty-referer.patch
+Patch4: %{name}-2.5.STABLE4-apache-like-combined-log.patch
+Patch5: %{name}-ppc-m32.patch
+Patch6: %{name}-cachemgr-webapp.patch
+Patch7: %{name}-ecap.patch
URL: http://www.squid-cache.org/
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: db-devel
BuildRequires: expat-devel
BuildRequires: heimdal-devel
+BuildRequires: libcap-devel
+BuildRequires: libecap-devel
BuildRequires: libltdl-devel
+BuildRequires: libstdc++-devel
+BuildRequires: libtool
BuildRequires: libxml2-devel
BuildRequires: openldap-devel >= 2.3.0
BuildRequires: openssl-devel >= 0.9.7d
Requires(post,preun): /sbin/chkconfig
Requires(postun): /usr/sbin/groupdel
Requires(postun): /usr/sbin/userdel
-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): /bin/id
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
+# TPROXYv4 (v2 disabled b/c it breaks v4)
+#Suggests: uname(release) >= 2.6.28.3
Provides: user(squid)
-Conflicts: logrotate < 3.7-4
+Conflicts: logrotate < 3.8.0
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _webapps /etc/webapps
%description kerb_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.
+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 kerb_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.
+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
Group: Networking/Admin
%description radius_auth
-This helper allows Squid to connect to a RADIUS server to validate
-the user name and password of Basic HTTP authentication.
+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
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ń.
+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
Ten pakiet zawiera skrypty perlowe i dodatkowe programy dla Squida.
%prep
-%setup -q -a1 -a4
-# Bug fixes from Squid home page:
-
-# Other patches:
+%setup -q -a3
+%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
-%patch4 -p1
-%{?with_combined_log:%patch5 -p1}
+%{?with_combined_log:%patch4 -p1}
%ifarch ppc
-%patch6 -p1
+%patch5 -p1
%endif
+%patch6 -p1
%patch7 -p1
%{__sed} -i -e '1s#!.*bin/perl#!%{__perl}#' {contrib,scripts,helpers/*/*}/*.pl
--enable-forw-via-db \
--enable-htcp \
--enable-icap-client \
+ --enable-ecap \
--enable-icmp \
--enable-kill-parent-hack \
--enable-large-cache-files \
--enable-linux-netfilter \
- --enable-linux-tproxy \
+ --disable-linux-tproxy \
--enable-multicast-miss \
--enable-referer-log \
--enable-removal-policies="heap,lru" \
cp -a contrib/*.pl $RPM_BUILD_ROOT%{_libexecdir}/contrib
install scripts/*.pl $RPM_BUILD_ROOT%{_libexecdir}
-install %{SOURCE7} $RPM_BUILD_ROOT/etc/pam.d/squid
+install %{SOURCE6} $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
+cp -a %{SOURCE7} $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/apache.conf
+cp -a %{SOURCE7} $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/httpd.conf
rm $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/cachemgr.conf.default
cd $RPM_BUILD_ROOT/etc/squid
-%{__patch} -p0 < %{SOURCE5}
+%{__patch} -p0 < %{SOURCE4}
rm *.default squid.conf.documented
cd -
-install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/squid
-install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/squid
-install %{SOURCE6} $RPM_BUILD_ROOT/etc/logrotate.d/squid
+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
%files
%defattr(644,root,root,755)
%doc CONTRIBUTORS COPYRIGHT CREDITS README ChangeLog QUICKSTART
-%doc RELEASENOTES.html SPONSORS docs/* src/mib.txt FAQ*.html book-full.html
+%doc RELEASENOTES.html SPONSORS docs/* src/mib.txt book-full.html
%doc src/squid.conf.default src/squid.conf.documented src/mime.conf.default
%doc errors/TRANSLATORS
%attr(755,root,root) %{_bindir}/squidclient
%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(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(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-sg
%lang(zh_CN) %{_datadir}/squid/errors/zh-tw
%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
+%dir %{_cgidir}
%attr(755,root,root) %{_cgidir}/cachemgr.cgi
%{_mandir}/man8/cachemgr.cgi.8*