]> git.pld-linux.org Git - packages/squid.git/blobdiff - squid.spec
- applied upstream
[packages/squid.git] / squid.spec
index a7a766bc493df39659535f9978ee764381227b37..da716e9d5243744600e957dea78d5f88915dbe3e 100644 (file)
@@ -1,6 +1,9 @@
 # TODO
 # TODO
-# - use /usr/lib/cgi-bin instead of /home/services
-# - test new hit_miss_mark.patch (ZPH TOS)
+# - 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
 #
 # Conditional build:
 %bcond_with    combined_log    # enables apache-like combined log format
@@ -13,44 +16,42 @@ Summary(ru.UTF-8):  Squid - кэш объектов Internet
 Summary(uk.UTF-8):     Squid - кеш об'єктів Internet
 Summary(zh_CN.UTF-8):  SQUID 高速缓冲代理服务器
 Name:          squid
 Summary(uk.UTF-8):     Squid - кеш об'єктів Internet
 Summary(zh_CN.UTF-8):  SQUID 高速缓冲代理服务器
 Name:          squid
-Version:       2.6.STABLE18
-Release:       2
+Version:       3.1.20
+Release:       3
 Epoch:         7
 License:       GPL v2
 Group:         Networking/Daemons
 Epoch:         7
 License:       GPL v2
 Group:         Networking/Daemons
-Source0:       http://www.squid-cache.org/Versions/v2/2.6/%{name}-%{version}.tar.bz2
-# Source0-md5: eb49bc06ea1a40421b6f1ac9e76d1757
-# 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-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://www.it-academy.bg/zph/
-Patch0:                %{name}_hit_miss_mark.patch
-Patch1:                %{name}-fhs.patch
-Patch2:                %{name}-location.patch
-Patch3:                %{name}-domainmatch.patch
-Patch4:                %{name}-libnsl_fixes.patch
-Patch5:                %{name}-crash-on-ENOSPC.patch
-Patch6:                %{name}-newssl.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
+Source0:       http://www.squid-cache.org/Versions/v3/3.1/%{name}-%{version}.tar.bz2
+# 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: cyrus-sasl-devel >= 2.1.0
 BuildRequires: db-devel
 URL:           http://www.squid-cache.org/
 BuildRequires: autoconf
 BuildRequires: automake
 BuildRequires: cyrus-sasl-devel >= 2.1.0
 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
 BuildRequires: pam-devel
 BuildRequires: openldap-devel >= 2.3.0
 BuildRequires: openssl-devel >= 0.9.7d
 BuildRequires: pam-devel
@@ -65,23 +66,28 @@ Requires(post):     grep
 Requires(post,preun):  /sbin/chkconfig
 Requires(postun):      /usr/sbin/groupdel
 Requires(postun):      /usr/sbin/userdel
 Requires(post,preun):  /sbin/chkconfig
 Requires(postun):      /usr/sbin/groupdel
 Requires(postun):      /usr/sbin/userdel
-Requires(pre): /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): /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
 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)
 Provides:      user(squid)
-Conflicts:     logrotate < 3.7-4
+Conflicts:     logrotate < 3.8.0
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%define                _webapps        /etc/webapps
+%define                _webapp         cachemgr
 %define                _libexecdir     %{_libdir}/%{name}
 %define                _sysconfdir     /etc/%{name}
 %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,
 
 %description
 Squid is a high-performance proxy caching server for web clients,
@@ -182,23 +188,45 @@ Squid - це кешуючий проксі-сервер для web-клієнт
 %package cachemgr
 Summary:       CGI script for Squid management
 Summary(pl.UTF-8):     Skrypt CGI do zarządzania Squidem przez WWW
 %package cachemgr
 Summary:       CGI script for Squid management
 Summary(pl.UTF-8):     Skrypt CGI do zarządzania Squidem przez WWW
-Group:         Networking/Admin
-Requires:      %{name} = %{epoch}:%{version}-%{release}
+Group:         Applications/WWW
+# does not require squid locally
+Requires:      group(http)
+Requires:      webapps
 Requires:      webserver
 Requires:      webserver
+Requires:      webserver(access)
+Requires:      webserver(alias)
+Requires:      webserver(cgi)
 
 %description cachemgr
 
 %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.UTF-8
 Cachemgr.cgi jest skryptem CGI, który pozwala administratorowi
 zapoznać się z informacjami o pracy Squida poprzez WWW.
 
 various informations about Squid via 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 kerb_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
+
+%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.
+
+%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.
+
 %package ldap_auth
 Summary:       LDAP authentication helper for Squid
 Summary(pl.UTF-8):     Obsługa uwierzytelniania LDAP dla squida
 Group:         Networking/Admin
 %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
 
 %description ldap_auth
 This Squid helper allows authentication against LDAP directories using
@@ -212,7 +240,6 @@ uwierzytelniania (otwartym tekstem).
 Summary:       PAM authentication helper for Squid
 Summary(pl.UTF-8):     Obsługa uwierzytelniania PAM dla squida
 Group:         Networking/Admin
 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
 Requires:      pam >= 0.77.3
 
 %description pam_auth
@@ -228,7 +255,6 @@ 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
 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
 
 %description smb_auth
 This is a proxy authentication module. With smb_auth you can
@@ -244,7 +270,6 @@ Samba.
 Summary:       MSNT domain authentication helper for Squid
 Summary(pl.UTF-8):     Obsługa uwierzytelniania w domenie MSNT dla squida
 Group:         Networking/Admin
 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
 
 %description msnt_auth
 This is an authentication module for the Squid proxy server to
@@ -258,7 +283,6 @@ uwierzytelnianie użytkowników proxy w domenie NT.
 Summary:       YP authentication helper for Squid
 Summary(pl.UTF-8):     Obsługa uwierzytelniania YP dla squida
 Group:         Networking/Admin
 Summary:       YP authentication helper for Squid
 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
 
 %description yp_auth
 This is an authentication module for the Squid proxy server to
@@ -272,7 +296,6 @@ uwierzytelnianie użytkowników proxy poprzez YP.
 Summary:       NCSA httpd style authentication helper for Squid
 Summary(pl.UTF-8):     Obsługa uwierzytelniania NCSA httpd dla squida
 Group:         Networking/Admin
 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
 This module uses a NCSA httpd style password file for authentication.
@@ -284,7 +307,6 @@ 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
 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
 
 %description sasl_auth
 This is an authentication module for the Squid proxy server to
@@ -298,7 +320,6 @@ 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
 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
 
 %description getpwname_auth
 This is an authentication module for the Squid proxy server to
@@ -312,7 +333,6 @@ 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
 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
 
 %description passwd_auth
 This is an authentication module for the Squid proxy server to
@@ -326,7 +346,6 @@ 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
 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
 
 %description ntlm_auth
 This is an authentication module for the Squid proxy server to
@@ -336,11 +355,23 @@ authenticate users on NTLM.
 Jest to moduł uwierzytelniania proxy, który pozwala na
 uwierzytelnianie użytkowników proxy poprzez NTLM.
 
 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
+
+%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 digest_ldap_auth
 Summary:       LDAP authentication helper for Squid
 Summary(pl.UTF-8):     Obsługa uwierzytelniania LDAP dla squida
 Group:         Networking/Admin
 %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
 
 %description digest_ldap_auth
 This is an authentication module for the Squid proxy server to
@@ -410,7 +441,8 @@ 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
 przynależności do grup w domenie NT przy użyciu wbinfo.
 
 %package session_acl
-Summary:       Squid session tracking external acl group helper
+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}
 
 Group:         Networking/Admin
 Requires:      %{name} = %{epoch}:%{version}-%{release}
 
@@ -419,6 +451,11 @@ 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.
 
 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 scripts
 Summary:       Perl scripts for Squid
 Summary(pl.UTF-8):     Skrypty perlowe dla Squida
 %package scripts
 Summary:       Perl scripts for Squid
 Summary(pl.UTF-8):     Skrypty perlowe dla Squida
@@ -432,72 +469,76 @@ This package contains Perl scripts and contributed programs for Squid.
 Ten pakiet zawiera skrypty perlowe i dodatkowe programy dla Squida.
 
 %prep
 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
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
-%patch4 -p1
+%{?with_combined_log:%patch4 -p1}
+%ifarch ppc
 %patch5 -p1
 %patch5 -p1
+%endif
 %patch6 -p1
 %patch7 -p1
 %patch6 -p1
 %patch7 -p1
-%{?with_combined_log:%patch8 -p1}
-%patch9 -p1
-%ifarch ppc
-%patch10 -p1
-%endif
 
 %{__sed} -i -e '1s#!.*bin/perl#!%{__perl}#' {contrib,scripts,helpers/*/*}/*.pl
 
 %build
 
 %{__sed} -i -e '1s#!.*bin/perl#!%{__perl}#' {contrib,scripts,helpers/*/*}/*.pl
 
 %build
+%{__libtoolize}
 %{__aclocal}
 %{__autoconf}
 %{__autoheader}
 %{__automake}
 %configure \
 %{__aclocal}
 %{__autoconf}
 %{__autoheader}
 %{__automake}
 %configure \
+       --with-logdir=/var/log/squid \
+       --with-pidfile=/var/run/squid.pid \
        --datadir=%{_datadir}/squid \
        --datadir=%{_datadir}/squid \
-       --enable-storeio="aufs,coss,diskd,null,ufs" \
-       --enable-removal-policies="heap,lru" \
-       --enable-icmp \
-       --enable-delay-pools \
-       --enable-useragent-log \
-       --enable-referer-log \
-       --enable-kill-parent-hack \
-       --enable-forward-log \
-       --enable-multicast-miss \
-       --enable-snmp \
        --enable-arp-acl \
        --enable-arp-acl \
-       --enable-htcp \
-       --enable-ssl \
-       --enable-forw-via-db \
-       --enable-cache-digests \
-       --enable-err-language=English \
-       --enable-coss-aio-ops \
-       --enable-linux-netfilter \
-       --enable-large-cache-files \
        --enable-auth="basic,digest,negotiate,ntlm" \
        --enable-auth="basic,digest,negotiate,ntlm" \
-       --enable-basic-auth-helpers="LDAP,MSNT,NCSA,PAM,SASL,SMB,YP,getpwnam,multi-domain-NTLM" \
+       --enable-basic-auth-helpers="LDAP,MSNT,NCSA,PAM,SASL,SMB,YP,getpwnam,multi-domain-NTLM,squid_radius_auth" \
+       --enable-ntlm-auth-helpers="fakeauth,no_check,smb_lm" \
+       --enable-negotiate-auth-helpers="squid_kerb_auth" \
        --enable-digest-auth-helpers="ldap,password" \
        --enable-external-acl-helpers="ip_user,ldap_group,session,unix_group,wbinfo_group" \
        --enable-digest-auth-helpers="ldap,password" \
        --enable-external-acl-helpers="ip_user,ldap_group,session,unix_group,wbinfo_group" \
-       --enable-ntlm-auth-helpers="SMB,fakeauth,no_check" \
        --enable-ntlm-fail-open \
        --enable-ntlm-fail-open \
-       --enable-x-accelerator-vary \
+       --enable-cache-digests \
+       --enable-coss-aio-ops \
+       --enable-delay-pools \
+       --enable-err-language=English \
+       --enable-esi \
        --enable-follow-x-forwarded-for \
        --enable-follow-x-forwarded-for \
+       --enable-forward-log \
+       --enable-forw-via-db \
+       --enable-htcp \
+       --enable-icap-client \
+       --enable-ecap \
+       --enable-icmp \
+       --enable-kill-parent-hack \
+       --enable-large-cache-files \
+       --enable-linux-netfilter \
+       --disable-linux-tproxy \
+       --enable-multicast-miss \
+       --enable-referer-log \
+       --enable-removal-policies="heap,lru" \
+       --enable-snmp \
+       --enable-ssl \
+       --enable-ipv6 \
+       --enable-storeio="aufs,diskd,ufs" \
+       --enable-useragent-log \
+       --enable-x-accelerator-vary \
        --localstatedir=/var \
        --sysconfdir=%{_sysconfdir} \
        --with-auth-on-acceleration \
        --localstatedir=/var \
        --sysconfdir=%{_sysconfdir} \
        --with-auth-on-acceleration \
-       --with-pthreads \
        --with-large-files \
        --with-large-files \
-       --with-maxfd=32768
+       --with-maxfd=32768 \
+       --with-pthreads \
+       --enable-zph-qos
 
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
 %{__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/etc/{pam.d,rc.d/init.d,security,sysconfig,logrotate.d} \
        $RPM_BUILD_ROOT{%{_sbindir},%{_bindir},%{_libexecdir}/contrib} \
        $RPM_BUILD_ROOT%{_mandir}/man8 \
@@ -510,25 +551,26 @@ install -d $RPM_BUILD_ROOT%{_cgidir} \
 cp -a contrib/*.pl $RPM_BUILD_ROOT%{_libexecdir}/contrib
 install scripts/*.pl $RPM_BUILD_ROOT%{_libexecdir}
 
 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}
 touch $RPM_BUILD_ROOT/etc/security/blacklist.squid
 
 mv -f $RPM_BUILD_ROOT%{_libdir}/squid/cachemgr.cgi $RPM_BUILD_ROOT%{_cgidir}
+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
 
 cd $RPM_BUILD_ROOT/etc/squid
-cp -f squid.conf{,.default}
-%{__patch} -p0 < %{SOURCE5}
-rm -f *~ *.orig
+%{__patch} -p0 < %{SOURCE4}
+rm *.default squid.conf.documented
 cd -
 
 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
 
 
 touch $RPM_BUILD_ROOT/var/log/squid/{access,cache,store}.log
 
-# These two files start squid. They are replaced by /etc/rc.d/init.d script.
-rm -f $RPM_BUILD_ROOT%{_bindir}/R*
+rm $RPM_BUILD_ROOT%{_datadir}/squid/errors/{COPYRIGHT,TRANSLATORS}
 
 # cp, to have re-entrant install
 rm -rf docs
 
 # cp, to have re-entrant install
 rm -rf docs
@@ -536,16 +578,12 @@ cp -a doc docs
 # dunno why, but manual is not installed
 mv docs/squid.8 $RPM_BUILD_ROOT%{_mandir}/man8
 # We don't want Makefiles as docs...
 # dunno why, but manual is not installed
 mv docs/squid.8 $RPM_BUILD_ROOT%{_mandir}/man8
 # We don't want Makefiles as docs...
-rm -f docs/Makefile*
+rm docs/Makefile*
 
 
-# We don't like message: rpm found unpackaged files ...
-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
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -587,64 +625,134 @@ fi
 %triggerpostun -- squid < 7:2.5.STABLE7-5
 %addusertogroup stats squid
 
 %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)
 %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 CONTRIBUTORS COPYRIGHT CREDITS README ChangeLog QUICKSTART
+%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
 %attr(755,root,root) %{_bindir}/squidclient
-%attr(755,root,root) %{_bindir}/cossdump
-%attr(755,root,root) %{_libexecdir}/diskd-daemon
+%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}/fakeauth_auth
 %attr(755,root,root) %{_sbindir}/*
 
 # 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}/fakeauth_auth
 %attr(755,root,root) %{_sbindir}/*
 
-%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,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/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}/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
+%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
 
 %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
-%lang(da) %{_datadir}/squid/errors/Danish
-%lang(nl) %{_datadir}/squid/errors/Dutch
-%{_datadir}/squid/errors/English
-%lang(et) %{_datadir}/squid/errors/Estonian
-%lang(fi) %{_datadir}/squid/errors/Finnish
-%lang(fr) %{_datadir}/squid/errors/French
-%lang(de) %{_datadir}/squid/errors/German
-%lang(el) %{_datadir}/squid/errors/Greek
-%lang(he) %{_datadir}/squid/errors/Hebrew
-%lang(hu) %{_datadir}/squid/errors/Hungarian
-%lang(it) %{_datadir}/squid/errors/Italian
-%lang(ja) %{_datadir}/squid/errors/Japanese
-%lang(ko) %{_datadir}/squid/errors/Korean
-%lang(lt) %{_datadir}/squid/errors/Lithuanian
-%lang(pl) %{_datadir}/squid/errors/Polish
-%lang(pt) %{_datadir}/squid/errors/Portuguese
-%lang(ro) %{_datadir}/squid/errors/Romanian
-%lang(ru) %{_datadir}/squid/errors/Russian-1251
-%lang(ru) %{_datadir}/squid/errors/Russian-koi8-r
-%lang(zh_CN) %{_datadir}/squid/errors/Simplify_Chinese
-%lang(sk) %{_datadir}/squid/errors/Slovak
-%lang(es) %{_datadir}/squid/errors/Spanish
-%lang(sr) %{_datadir}/squid/errors/Serbian
-%lang(sv) %{_datadir}/squid/errors/Swedish
-%lang(zh_TW) %{_datadir}/squid/errors/Traditional_Chinese
-%lang(tr) %{_datadir}/squid/errors/Turkish
+%{_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(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(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(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-sg
+%lang(zh_CN) %{_datadir}/squid/errors/zh-tw
+%lang(zh_TW) %{_datadir}/squid/errors/zh-hk
+%lang(zh_TW) %{_datadir}/squid/errors/zh-mo
 
 %dir %{_libexecdir}
 
 
 %dir %{_libexecdir}
 
@@ -657,19 +765,24 @@ fi
 %ghost /var/cache/squid/swap.state
 %ghost /var/cache/squid/swap.state.clean
 %ghost /var/cache/squid/swap.state.last-clean
 %ghost /var/cache/squid/swap.state
 %ghost /var/cache/squid/swap.state.clean
 %ghost /var/cache/squid/swap.state.last-clean
+%{_mandir}/man1/squidclient.1*
 %{_mandir}/man8/squid.8*
 
 %files cachemgr
 %defattr(644,root,root,755)
 %{_mandir}/man8/squid.8*
 
 %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
+%dir %{_cgidir}
+%attr(755,root,root) %{_cgidir}/cachemgr.cgi
 %{_mandir}/man8/cachemgr.cgi.8*
 
 %files ldap_auth
 %defattr(644,root,root,755)
 %doc helpers/basic_auth/LDAP/README
 %{_mandir}/man8/cachemgr.cgi.8*
 
 %files ldap_auth
 %defattr(644,root,root,755)
 %doc helpers/basic_auth/LDAP/README
-%attr(755,root,root) %{_libexecdir}/%{name}_ldap_auth
-%{_mandir}/man8/%{name}_ldap_auth.*
+%attr(755,root,root) %{_libexecdir}/squid_ldap_auth
+%{_mandir}/man8/squid_ldap_auth.*
 
 %files pam_auth
 %defattr(644,root,root,755)
 
 %files pam_auth
 %defattr(644,root,root,755)
@@ -713,10 +826,24 @@ fi
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libexecdir}/digest_pw_auth
 
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libexecdir}/digest_pw_auth
 
+%files kerb_auth
+%defattr(644,root,root,755)
+%doc helpers/negotiate_auth/squid_kerb_auth/README
+%attr(755,root,root) %{_libexecdir}/negotiate_kerb_auth
+%attr(755,root,root) %{_libexecdir}/negotiate_kerb_auth_test
+%attr(755,root,root) %{_libexecdir}/squid_kerb_auth
+%attr(755,root,root) %{_libexecdir}/squid_kerb_auth_test
+
 %files ntlm_auth
 %defattr(644,root,root,755)
 %doc helpers/ntlm_auth/no_check/{README*,no_check.pl}
 %files ntlm_auth
 %defattr(644,root,root,755)
 %doc helpers/ntlm_auth/no_check/{README*,no_check.pl}
-%attr(755,root,root) %{_libexecdir}/ntlm_auth
+%attr(755,root,root) %{_libexecdir}/ntlm_smb_lm_auth
+
+%files radius_auth
+%defattr(644,root,root,755)
+%doc helpers/basic_auth/squid_radius_auth/README
+%attr(755,root,root) %{_libexecdir}/squid_radius_auth
+%{_mandir}/man8/squid_radius_auth.8*
 
 %files digest_ldap_auth
 %defattr(644,root,root,755)
 
 %files digest_ldap_auth
 %defattr(644,root,root,755)
This page took 0.058949 seconds and 4 git commands to generate.