]> git.pld-linux.org Git - packages/squid.git/blobdiff - squid.spec
- new-style bcond, pl fixes
[packages/squid.git] / squid.spec
index 439c9fed79b0994028121bd7e6a249cac384d81f..fc626ef77cd57b50b1e80b42bb4fe158ceca1b8e 100644 (file)
@@ -1,3 +1,7 @@
+#
+# 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 proxy-cache server
@@ -6,60 +10,61 @@ Summary(ru): Squid - 
 Summary(uk):   Squid - ËÅÛ ÏÂ'¤ËԦנInternet
 Summary(zh_CN):        SQUID ¸ßËÙ»º³å´úÀí·þÎñÆ÷
 Name:          squid
-Version:       2.5.STABLE1
-Release:       2
-Epoch:         6
+Version:       2.5.STABLE5
+Release:       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: 45ed1b1cd492e3f529085d09c3ffc1b8
 Source1:       %{name}-1.1.19-faq.tar.gz
+# Source1-md5: 77d04ae621d19548797e3a0deb540df6
 Source2:       %{name}.init
 Source3:       %{name}.sysconfig
 Source4:       http://cache.is.co.za/%{name}-docs.tar.gz
+# Source4-md5: 0cfee556bf6394a0bd3c438c89dd2e63
 Source5:       %{name}.conf.patch
 Source6:       %{name}.logrotate
 Source7:       %{name}.pamd
 # Bug fixes from Squid home page:
-Patch0:                http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE1-ldap_group-compile.patch
-Patch1:                http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE1-flags_open.patch
-Patch2:                http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE1-ldap_group.patch
-Patch3:                http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE1-spaces.patch
-Patch4:                http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE1-dnsserver.patch
-Patch5:                http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE1-auth-proxy.patch
-Patch6:                http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE1-cachemgr.patch
-Patch7:                http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE1-uninstall.patch
-Patch8:                http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE1-ext_acl_exit.patch
-Patch9:                http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE1-request_entity.patch
-Patch10:       http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE1-ext_acl_comma.patch
-Patch11:       http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE1-acl_leak.patch
-Patch12:       http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE1-aufs.patch
-Patch13:       http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE1-memstat.patch
-Patch14:       http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE1-wccp.patch
-Patch15:       http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE1-strwordtok.patch
-Patch16:       http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE1-pthreads.patch
-Patch17:       http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE1-addlang.patch
-Patch18:       http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE1-ldap_auth.patch
-Patch19:       http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE1-referer_log.patch
-Patch20:       http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE1-load_icons.patch
-Patch21:       http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE1-cache_dir_docs.patch
-Patch22:       http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE1-max_user_ip.patch
-Patch23:       http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE1-proxy_auth.patch
-Patch24:       http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE1-disable-http-violations.patch
-Patch25:       http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE1-disable-ident-lookups.patch
+Patch0:                http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE5-ntlm_assert.patch
+Patch1:                http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE5-ldap.patch
+Patch2:                http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE5-helper_warning.patch
+Patch3:                http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE5-pkgconfig.patch
+Patch4:                http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE5-vary.patch
+Patch5:                http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE5-lin22_poll.patch
+Patch6:                http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE5-version.patch
+Patch7:                http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE5-deny_info.patch
+Patch8:                http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE5-CONNECT_timeout.patch
+Patch9:                http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE5-cache_swap_log.patch
+Patch10:       http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE5-ntlm_warning.patch
+Patch11:       http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE5-rfc1035NameUnpack.patch
+Patch12:       http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE5-digest_blank.patch
+Patch13:       http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE5-post_assert.patch
+Patch14:       http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE5-spelling.patch
+Patch15:       http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE5-digest_ERR.patch
+Patch16:       http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE5-turkish_ERR_DNS_FAIL.patch
+Patch17:       http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE5-vary_negatively.patch
+
 # Other patches:
-Patch100:      %{name}-perl.patch
-Patch110:      %{name}-linux.patch
+Patch110:      http://www.sed.pl/~mrk/qos/%{name}_hit_miss_mark.patch
 Patch120:      %{name}-fhs.patch
 Patch130:      %{name}-location.patch
 Patch140:      %{name}-domainmatch.patch
 Patch150:      %{name}-libnsl_fixes.patch
-Patch160:      %{name}-more_FD.patch
 Patch170:      %{name}-ac_fix.patch
-Patch180:      %{name}-contrib.patch
-Patch190:      %{name}-crash-on-ENOSPC.patch
+Patch180:      %{name}-crash-on-ENOSPC.patch
+Patch190:      %{name}-newssl.patch
+Patch200:      %{name}-sasl.patch
+Patch210:      http://piorun.ds.pg.gda.pl/~blues/patches/%{name}-more_FD-new.patch
+Patch220:      %{name}-empty-referer.patch
+Patch230:      %{name}-2.5.STABLE4-apache-like-combined-log.patch
+URL:           http://www.squid-cache.org/
 BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: cyrus-sasl-devel >= 2.1.0
 BuildRequires: openldap-devel
-BuildRequires: openssl-devel >= 0.9.7
+BuildRequires: openssl-devel >= 0.9.7d
 BuildRequires: pam-devel
 BuildRequires: perl
 PreReq:                rc-scripts >= 0.2.0
@@ -70,12 +75,15 @@ Requires(pre):      /usr/sbin/useradd
 Requires(post,preun):  /sbin/chkconfig
 Requires(post):        fileutils
 Requires(post):        findutils
+Requires(post):        grep
+Requires(post):        /bin/hostname
 Requires(postun):      /usr/sbin/groupdel
 Requires(postun):      /usr/sbin/userdel
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                _libexecdir     %{_libdir}/%{name}
 %define                _sysconfdir     /etc/%{name}
+%define                _cgidir         /home/services/httpd/cgi-bin
 
 %description
 Squid is a high-performance proxy caching server for web clients,
@@ -177,7 +185,7 @@ Squid - 
 Summary:       CGI script for Squid management
 Summary(pl):   Skrypt CGI do zarz±dzania Squidem przez WWW
 Group:         Networking/Admin
-Requires:      %{name} = %{version}
+Requires:      %{name} = %{epoch}:%{version}-%{release}
 Requires:      httpd
 
 %description cachemgr
@@ -190,23 +198,24 @@ zapozna
 
 %package ldap_auth
 Summary:       LDAP authentication helper for Squid
-Summary(pl):   Wsparcie autentykacji LDAP dla squida
+Summary(pl):   Obs³uga uwierzytelniania LDAP dla squida
 Group:         Networking/Admin
-Requires:      %{name}
+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 autentykacjê LDAP za pomoc± prostej autentykacji
-(otwartym tekstem).
+Pakiet ten pozwala na uwierzytelnianie przez LDAP za pomoc± prostego
+uwierzytelniania (otwartym tekstem).
 
 %package pam_auth
 Summary:       PAM authentication helper for Squid
-Summary(pl):   Wsparcie autentykacji PAM dla squida
+Summary(pl):   Obs³uga uwierzytelniania PAM dla squida
 Group:         Networking/Admin
-Requires:      %{name}
+Requires:      %{name} = %{epoch}:%{version}-%{release}
+Requires:      pam >= 0.77.3
 
 %description pam_auth
 This program authenticates users against a PAM configured
@@ -214,14 +223,14 @@ 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 autentykacjê u¿ytkowników squida w dowolnym
+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):   Wsparcie autentykacji SMB dla squida
+Summary(pl):   Obs³uga uwierzytelniania SMB dla squida
 Group:         Networking/Admin
-Requires:      %{name}
+Requires:      %{name} = %{epoch}:%{version}-%{release}
 
 %description smb_auth
 This is a proxy authentication module. With smb_auth you can
@@ -229,36 +238,196 @@ authenticate proxy users against an SMB server like Windows NT or
 Samba.
 
 %description smb_auth -l pl
-To jest modu³ autentykacji proxy. Z smb_auth mo¿esz autentyfikowaæ
-u¿ytkowników proxy na serwerach SMB, jak Windows NT czy Samba.
+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):   Wsparcie autentykacji domen MSNT dla squida
+Summary(pl):   Obs³uga uwierzytelniania w domenie MSNT dla squida
 Group:         Networking/Admin
-Requires:      %{name}
+Requires:      %{name} = %{epoch}:%{version}-%{release}
 
 %description msnt_auth
-This is an authentication module for the Squid proxy server to 
+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³ autentykacji proxy, który pozwala na autentyfikowanie
-u¿ytkowników proxy w domenie NT.
+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):   Wsparcie autentykacji YP dla squida
+Summary(pl):   Obs³uga uwierzytelniania YP dla squida
 Group:         Networking/Admin
-Requires:      %{name}
+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³ autentykacji proxy, który pozwala na autentyfikowanie
-u¿ytkowników proxy poprzez YP.
+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
+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.
+
+%package sasl_auth
+Summary:       SASL authentication helper for Squid
+Summary(pl):   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.
+
+%package getpwname_auth
+Summary:       getpwname authentication helper for Squid
+Summary(pl):   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.
+
+%package passwd_auth
+Summary:       passwd authentication helper for Squid
+Summary(pl):   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.
+
+%package ntlm_auth
+Summary:       NTLM authentication helper for Squid
+Summary(pl):   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.
+
+%package ip_acl
+Summary:       IP external ACL helper for Squid
+Summary(pl):   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
+acces 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.
+
+%package ldap_acl
+Summary:       LDAP group external ACL helper for Squid
+Summary(pl):   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
+acces 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.
+
+%package unix_acl
+Summary:       UNIX group external ACL helper for Squid
+Summary(pl):   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
+acces 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.
+
+%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
+Group:         Networking/Admin
+Requires:      %{name} = %{epoch}:%{version}-%{release}
+
+%description wbinfo_acl
+This is an external ACL module for the Squid proxy server to limit
+acces 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.
+
+%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
+Group:         Networking/Admin
+Requires:      %{name} = %{epoch}:%{version}-%{release}
+
+%description winbind_acl
+This is an external ACL module for the Squid proxy server to limit
+acces for users based on NT domain group membership based on Samba
+Winbindd from Samba 2.2.4 or greater.
+
+%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.
 
 %prep
 %setup -q -a 1 -a 4
@@ -282,95 +451,79 @@ u
 %patch15 -p1
 %patch16 -p1
 %patch17 -p1
-%patch18 -p1
-%patch19 -p1
-%patch20 -p1
-%patch21 -p1
-%patch23 -p1
-%patch24 -p1
-%patch25 -p1
-%patch22 -p1
 
 # Other patches:
-# fixme
-#%patch100 -p1
-# applied?
-#%patch110 -p1
+%patch110 -p1
 %patch120 -p1
-# fixme
-#%patch130 -p1
+%patch130 -p1
 %patch140 -p1
-# fixme?
-#%patch150 -p1
-#fixme
-#%patch160 -p1
 %patch170 -p1
 %patch180 -p1
 %patch190 -p1
+%patch200 -p1
+%patch210 -p1
+%patch220 -p1
+%{?with_combined_log:%patch230 -p1}
 
 %build
 %{__aclocal}
 %{__autoconf}
 %{__automake}
 %configure \
-       --localstatedir=/var \
-       --sysconfdir=%{_sysconfdir} \
        --datadir=%{_datadir}/squid \
-       --enable-icmp \
-       --enable-useragent-log \
-       --enable-snmp \
-       --enable-arp-acl \
-       --enable-err-language=English \
-       --enable-htcp \
-       --enable-carp \
-       --enable-ssl \
-       --enable-forw-via-db \
-       --enable-cache-digests \
-       --enable-storeio="aufs,coss,diskd,null,ufs" \
-       --enable-removal-policies="lru heap" \
        --disable-ipf-transparent \
-       --enable-delay-pools \
-       --with-pthreads \
+       --enable-arp-acl \
        --enable-auth=yes \
        --enable-basic-auth-helpers=yes \
-       --enable-ntlm-auth-helpers=yes \
+       --enable-cache-digests \
+       --enable-carp \
+       --enable-delay-pools \
        --enable-digest-auth-helpers=yes \
+       --enable-err-language=English \
        --enable-external-acl-helpers=yes \
+       --enable-forw-via-db \
+       --enable-htcp \
+       --enable-icmp \
+       --enable-linux-netfilter \
+       --enable-ntlm-auth-helpers=yes \
+       --enable-referer-log \
+       --enable-removal-policies="lru heap" \
+       --enable-ssl \
+       --enable-snmp \
+       --enable-storeio="aufs,coss,diskd,null,ufs" \
+       --enable-underscores \
+       --enable-useragent-log \
        --enable-x-accelerator-vary \
-       --enable-linux-netfilter
+       --localstatedir=/var \
+       --sysconfdir=%{_sysconfdir} \
+       --with-pthreads
 
 mv -f squid/* doc
 %{__make}
 
-perl -pi -e 's#/usr/.*bin/perl#/usr/bin/perl#g' contrib/*
+perl -pi -e 's#%{_prefix}/.*bin/perl#%{_bindir}/perl#g' contrib/*
+perl -pi -e 's#%{_prefix}/.*bin/perl#%{_bindir}/perl#g' scripts/*
+find helpers/ -type f | xargs perl -pi -e 's#%{_prefix}/.*bin/perl#%{_bindir}/perl#g'
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d \
-       $RPM_BUILD_ROOT/home/services/httpd/cgi-bin \
+install -d $RPM_BUILD_ROOT%{_cgidir} \
        $RPM_BUILD_ROOT/etc/{pam.d,rc.d/init.d,security,sysconfig,logrotate.d} \
-       $RPM_BUILD_ROOT{%{_sbindir},%{_bindir},%{_libexecdir}/{contrib,auth_modules}} \
-       $RPM_BUILD_ROOT%{_mandir}/{man1,man8} \
+       $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
 
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
-mv -f contrib/*.pl $RPM_BUILD_ROOT%{_libexecdir}/contrib
+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 %{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/home/services/httpd/cgi-bin
-
-cd errors
-for LNG in *; do
-       if [ -d $LNG ]; then
-               mv -f $LNG $RPM_BUILD_ROOT%{_datadir}/squid/errors.$LNG
-       fi
-done
-cd ..
+mv -f $RPM_BUILD_ROOT%{_libdir}/squid/cachemgr.cgi $RPM_BUILD_ROOT%{_cgidir}
 
 cd $RPM_BUILD_ROOT/etc/squid
 cp -f squid.conf{,.default}
@@ -381,13 +534,21 @@ 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 scripts/*.pl $RPM_BUILD_ROOT%{_libexecdir}
-
 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*
 
+# dunno why, but manual is not installed
+mv doc/squid.8 $RPM_BUILD_ROOT%{_mandir}/man8
+
+# We don't want Makefiles as docs...
+rm -f doc/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
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -409,31 +570,13 @@ else
        /usr/sbin/useradd -M -o -r -u 91 -s /bin/false \
                -g squid -c "SQUID http caching daemon" -d /var/cache/squid squid 1>&2 || :
 fi
+[ -L %{_datadir}/squid/errors ] && rm -rf %{_datadir}/squid/errors || :
 
 %post
-try_link() {
-# If there is already link, don't do anything.
-if [ ! -e %{_datadir}/squid/errors ]; then
-
-    # Try to create link to Polish, and then any directory but English.
-    if [ -d %{_datadir}/squid/errors.Polish ]; then
-       ln -sf %{_datadir}/squid/errors{.Polish,}
-       return
-    else
-       find %{_datadir}/squid/errors/ -type d -name 'errors.*'| while read NAME; do
-           if [ $NAME != "English" ]; then
-               ln -sf $NAME %{_datadir}/squid/errors
-               return
-           fi
-       done
-    fi
-
-    # Create symlink to English if everything else fails.
-    ln -sf %{_datadir}/squid/errors{.English,}
+if ! grep -q "^visible_hostname" /etc/squid/squid.conf; then
+       echo visible_hostname `/bin/hostname -f` >> /etc/squid/squid.conf
 fi
-}
 
-try_link
 if [ "$1" = "1" ]; then
        /sbin/chkconfig --add squid
        echo "Run \"/etc/rc.d/init.d/squid start\" to start squid." >&2
@@ -449,7 +592,6 @@ if [ "$1" = "0" ]; then
                /etc/rc.d/init.d/squid stop >&2
        fi
        /sbin/chkconfig --del squid
-       rm -f %{_datadir}/squid/errors
 fi
 
 %postun
@@ -457,16 +599,17 @@ if [ "$1" = "0" ]; then
        /usr/sbin/userdel squid
        /usr/sbin/groupdel squid
 fi
-                               
+
 %files
 %defattr(644,root,root,755)
-%doc faq CONTRIBUTORS COPYRIGHT CREDITS README ChangeLog QUICKSTART TODO
-%doc doc/*
+%doc faq CONTRIBUTORS COPYRIGHT CREDITS README ChangeLog QUICKSTART
+%doc RELEASENOTES.html SPONSORS doc/* src/mib.txt
 %attr(755,root,root) %{_bindir}/squidclient
 %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}/*
 
 %attr(755,root,root) %dir %{_sysconfdir}
@@ -480,72 +623,131 @@ fi
 %attr(640,root,root) %{_sysconfdir}/squid.conf.default
 
 %dir %{_datadir}/squid
+%dir %{_datadir}/squid/errors
 %{_datadir}/squid/icons
 %{_datadir}/squid/mib.txt
-%lang(bg) %{_datadir}/squid/errors.Bulgarian
-%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(hu) %{_datadir}/squid/errors.Hungarian
-%lang(it) %{_datadir}/squid/errors.Italian
-%lang(ja) %{_datadir}/squid/errors.Japanese
-%lang(ko) %{_datadir}/squid/errors.Korean
-%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) %{_datadir}/squid/errors.Simplify_Chinese
-%lang(sk) %{_datadir}/squid/errors.Slovak
-%lang(es) %{_datadir}/squid/errors.Spanish
-%lang(sv) %{_datadir}/squid/errors.Swedish
-%lang(zh) %{_datadir}/squid/errors.Traditional_Chinese
-%lang(tr) %{_datadir}/squid/errors.Turkish
+%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(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
 
 %attr(755,root,root) %dir %{_libexecdir}
 %attr(755,root,root) %{_libexecdir}/*.pl
 %attr(755,root,root) %{_libexecdir}/contrib
-%attr(755,root,root) %dir %{_libexecdir}/auth_modules
 
 %attr(770,root,squid) %dir /var/log/archiv/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
+%{_mandir}/man8/squid.8*
 
 %files cachemgr
 %defattr(644,root,root,755)
-%attr(755,root,root) /home/services/httpd/cgi-bin/*
+%attr(755,root,root) %{_cgidir}/*
 
 %files ldap_auth
 %defattr(644,root,root,755)
-%doc auth_modules/LDAP/README
-%attr(755,root,root) %{_libexecdir}/auth_modules/%{name}_ldap_auth
+%doc helpers/basic_auth/LDAP/README
+%attr(755,root,root) %{_libexecdir}/%{name}_ldap_auth
 %attr(644,root,root) %{_mandir}/man8/%{name}_ldap_auth.*
 
 %files pam_auth
 %defattr(644,root,root,755)
-%doc auth_modules/PAM/pam_auth.c
+%doc helpers/basic_auth/PAM/pam_auth.c
 %config(noreplace) /etc/pam.d/squid
 %config(noreplace) /etc/security/blacklist.squid
-%attr(755,root,root) %{_libexecdir}/auth_modules/pam_auth
+%attr(755,root,root) %{_libexecdir}/pam_auth
+%{_mandir}/man8/pam_auth.8*
 
 %files smb_auth
 %defattr(644,root,root,755)
-%doc auth_modules/SMB/{README,Changelog,smb_auth.sh}
-%doc auth_modules/multi-domain-NTLM/*
-%attr(755,root,root) %{_libexecdir}/auth_modules/smb_auth
+%doc helpers/basic_auth/SMB/{README,ChangeLog,smb_auth.sh}
+%doc helpers/basic_auth/multi-domain-NTLM/*
+%attr(755,root,root) %{_libexecdir}/smb_auth*
 
 %files msnt_auth
 %defattr(644,root,root,755)
-%doc auth_modules/MSNT/README*
-%attr(755,root,root) %{_libexecdir}/auth_modules/msnt_auth
+%doc helpers/basic_auth/MSNT/README*
+%attr(755,root,root) %{_libexecdir}/msnt_auth
+%attr(640,root,squid) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/msntauth.conf
 
 %files yp_auth
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libexecdir}/auth_modules/yp_auth
+%attr(755,root,root) %{_libexecdir}/yp_auth
+
+%files ncsa_auth
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libexecdir}/ncsa_auth
+
+%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
+
+%files passwd_auth
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libexecdir}/digest_pw_auth
+
+%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 ip_acl
+%defattr(644,root,root,755)
+%doc helpers/external_acl/ip_user/{README,example*}
+%attr(755,root,root) %{_libexecdir}/ip_user_check
+
+%files ldap_acl
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libexecdir}/squid_ldap_group
+%attr(644,root,root) %{_mandir}/man8/%{name}_ldap_group.*
+
+%files unix_acl
+%defattr(644,root,root,755)
+%doc helpers/external_acl/unix_group/README
+%attr(755,root,root) %{_libexecdir}/squid_unix_group
+%attr(644,root,root) %{_mandir}/man8/%{name}_unix_group.*
+
+%files wbinfo_acl
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libexecdir}/wbinfo_group.pl
+
+%files winbind_acl
+%defattr(644,root,root,755)
+%doc helpers/external_acl/winbind_group/readme.txt
+%attr(755,root,root) %{_libexecdir}/wb_group
This page took 0.106098 seconds and 4 git commands to generate.