Группа :: Система/Серверы
Пакет: squid
Главная Изменения Спек Патчи Загрузить Bugs and FR
%def_disable poll
%def_enable epoll
# epoll has higher priority if both specified, so disable it
%if_enabled poll
%force_disable epoll
%endif
Name: squid
Version: 2.6.STABLE18
Release: alt0.M24.1
Summary: The Squid proxy caching server
Summary(ru_RU.KOI8-R): Кэширующий прокси-сервер Squid
License: GPL-2
Group: System/Servers
Url: http://www.squid-cache.org/
Packager: Squid Development Team <squid at packages.altlinux.org>
Source: %url/Versions/v2/%name-%version.tar
Source1: %url/Doc/FAQ/FAQ.sgml
Source2: %name.init
Source3: %name.logrotate
Source4: wbinfo_group.sh
# Cumulative ALT Linux patch, see git.altlinux.org/people/bga/packages/squid.git
Patch: %name-%version-alt.patch
Obsoletes: %name-novm
BuildConflicts: bind-devel
BuildPreReq: rpm-build >= 4.0.4-alt10, autoconf >= 2.54
# Added on Fri Sep 28 2007
BuildRequires: OpenSP libdb4-devel libkrb5-devel libldap-devel libpam-devel libsasl2-devel libssl-devel sgml-tools
# Used by smb_auth.pl,pop3.pl and squid_db_auth, required on find-requires stage:
BuildRequires: perl-Authen-Smb perl-libnet perl-DBI
Requires: %name-common %name-server %name-helpers %name-helpers-perl %name-cachemgr
%description
Squid is a high-performance proxy caching server for Web clients,
supporting FTP, gopher, and HTTP data objects. Unlike traditional
caching software, Squid handles all requests in a single,
non-blocking, I/O-driven process. Squid keeps meta data and especially
hot objects cached in RAM, caches DNS lookups, supports non-blocking
DNS lookups, and implements negative caching of failed requests.
Install squid if you need a proxy caching server.
%description -l ru_RU.KOI8-R
Squid --- высокопроизводительный кэширующий прокси-сервер для web-клиентов
с поддержкой протоколов FTP, gopher и HTTP. В отличие от традиционного кэширующего
ПО Squid обрабатывает все запросы в едином неблокирующем процессе. Squid хранит
метаданные и особенно часто запрашиваемые объекты в ОЗУ, кэширует DNS-запросы,
поддерживает неблокирующие DNS-запросы и реализует негативное кэширование
неудачных запросов.
Установите squid, если вам необходим кэширующий прокси-сервер.
%package server
Summary: main Squid server and its necessary files
Summary(ru_RU.KOI8-R): главный сервер Squid и необходимые ему файлы
Group: System/Servers
PreReq: net-snmp
Requires: %name-common
Conflicts: %name <= 2.5.STABLE9-alt3
Obsoletes: %name-pinger
%description server
This package contains Squid main server and its necessary files
as well as pinger, unlinkd and diskd.
Install squid package to get all Squid parts.
%description -l ru_RU.KOI8-R server
Этот пакет содержит главный сервер Squid и необходимые для его работы файлы,
а также pinger, unlinkd и diskd.
Установите пакет squid, чтобы получить все компоненты Squid.
%package cachemgr
Summary: Squid CGI cache manager
Summary(ru_RU.KOI8-R): CGI-диспетчер для Squid
Group: Networking/WWW
Requires: %name-common
Conflicts: %name <= 2.5.STABLE9-alt3
%description cachemgr
This package contains Squid cache manager. It is a standalone CGI application which
can be used to manage Squid processes remotely over HTTP.
Install squid package to get all Squid parts.
%description -l ru_RU.KOI8-R cachemgr
Этот пакет содержит диспетчер для Squid. Это самостоятельное приложение CGI, которое
может быть использовано для управления процессами Squid удалённо через HTTP.
Установите пакет squid, чтобы получить все компоненты Squid.
%package common
Summary: Squid common files
Summary(ru_RU.KOI8-R): общие файлы для Squid
Group: System/Servers
PreReq: shadow-groups
Conflicts: %name <= 2.5.STABLE9-alt3
%description common
This package contains common Squid files.
Install squid package to get all Squid parts.
%description -l ru_RU.KOI8-R common
Этот пакет содержит файлы, необходимые для squid-server и squid-cachemgr.
Установите пакет squid, чтобы получить все компоненты Squid.
%package helpers
Summary: Squid helpers
Summary(ru_RU.KOI8-R): вспомогательные программы для squid-server
Group: System/Servers
Requires: %name-common
Conflicts: %name <= 2.5.STABLE9-alt3
%description helpers
This package contains Squid helpers for different kinds of authentication.
Install squid package to get all Squid parts.
%description -l ru_RU.KOI8-R helpers
Этот пакет содержит вспомогательные программы для squid-server, поддерживающие
различные виды аутентификации.
Установите пакет squid, чтобы получить все компоненты Squid.
%package helpers-perl
Summary: Squid Perl helpers
Summary(ru_RU.KOI8-R): вспомогательные Perl-программы для squid-server
Group: System/Servers
Requires: %name-common
Conflicts: %name <= 2.5.STABLE9-alt3
%description helpers-perl
This package contains Perl Squid helpers for different kinds of authentication.
Install squid package to get all Squid parts.
%description -l ru_RU.KOI8-R helpers-perl
Этот пакет содержит вспомогательные Perl-программы для squid-server, поддерживающие
различные виды аутентификации.
Установите пакет squid, чтобы получить все компоненты Squid.
%prep
%setup -q
%patch -p1
mkdir -p faq
install -m644 %SOURCE1 FAQ.sgml
sed -i -e 's,url="/\(htpasswd/chpasswd-cgi.tar.gz\)",url="http://www.squid-cache.org/\1",g' FAQ.sgml
find . -type f -name '*.pl' -print0 | \
xargs -r0 sed -ie 's,/usr/local/bin/perl,/usr/bin/perl,g'
sed -i -e 's,^KERBINC = ,KERBINC = -I%_includedir/krb5,g' \
helpers/negotiate_auth/squid_kerb_auth/Makefile.am
touch NEWS AUTHORS
%build
%set_autoconf_version 2.5
autoreconf -ifsv
%configure \
--bindir=%_sbindir \
--libexecdir=%_libdir/%name \
--localstatedir=%_var \
--sysconfdir=%_sysconfdir/%name \
--datadir=%_datadir/%name \
%{subst_enable poll} \
%{subst_enable epoll} \
--enable-snmp \
--enable-removal-policies="lru heap" \
--enable-delay-pools \
--enable-icmp \
--enable-htcp \
--enable-async-io=16 \
--enable-useragent-log \
--enable-wccp \
--enable-wccpv2 \
--with-gnu-regex \
--enable-arp-acl \
--enable-ssl \
--enable-forw-via-db \
--enable-follow-x-forwarded-for \
--enable-forward-log \
--enable-referer-log \
--enable-ident-lookups \
--enable-carp \
--enable-ntlm-fail-open \
--enable-cache-digests \
--enable-x-accelerator-vary \
--enable-auth="basic ntlm digest negotiate" \
--enable-basic-auth-helpers="DB LDAP MSNT NCSA PAM POP3 SASL SMB YP getpwnam multi-domain-NTLM" \
--enable-ntlm-auth-helpers="SMB fakeauth no_check" \
--enable-digest-auth-helpers="ldap password eDirectory" \
--enable-negotiate-auth-helpers="squid_kerb_auth" \
--enable-external-acl-helpers="ip_user ldap_group unix_group session wbinfo_group" \
--enable-storeio="aufs coss diskd null ufs" \
--enable-default-err-language="English" \
--with-large-files \
--enable-large-cache-files \
--enable-icap-support \
--enable-multicast-miss \
--enable-underscores \
--enable-fd-config \
--with-maxfd=16384
%make_build
cp FAQ.sgml faq/
pushd faq
sgml2html FAQ.sgml
rm FAQ.sgml
popd
%install
%make_build install DESTDIR=%buildroot
%make_build install-pinger DESTDIR=%buildroot
mkdir -p %buildroot%_initdir
mkdir -p %buildroot%_sysconfdir/logrotate.d
install -m 755 %SOURCE2 %buildroot%_initdir/%name
install -m 644 %SOURCE3 %buildroot%_sysconfdir/logrotate.d/%name
mkdir -p %buildroot%_logdir/%name
mkdir -p %buildroot%_spooldir/%name
rm -f $RPM_BUILD_DIR/%name-%version/doc/Programming-Guide/Makefile
install -p -m644 $RPM_BUILD_DIR/%name-%version/helpers/basic_auth/PAM/pam_auth.8 %buildroot%_man8dir
install -p -m644 $RPM_BUILD_DIR/%name-%version/helpers/external_acl/ldap_group/squid_ldap_group.8 %buildroot%_man8dir
install -p -m644 $RPM_BUILD_DIR/%name-%version/helpers/basic_auth/LDAP/squid_ldap_auth.8 %buildroot%_man8dir
install -p -m644 $RPM_BUILD_DIR/%name-%version/helpers/external_acl/unix_group/squid_unix_group.8 %buildroot%_man8dir
install -p -m644 $RPM_BUILD_DIR/%name-%version/doc/squid.8 %buildroot%_man8dir
install -p -m644 $RPM_BUILD_DIR/%name-%version/doc/cachemgr.cgi.8 %buildroot%_man8dir
install -D -p -m644 $RPM_BUILD_DIR/%name-%version/helpers/basic_auth/SMB/COPYING-2.0 helpers/doc/SMB.COPYING-2.0
install -D -p -m644 $RPM_BUILD_DIR/%name-%version/helpers/basic_auth/SMB/README helpers/doc/SMB.README
install -D -p -m644 $RPM_BUILD_DIR/%name-%version/helpers/basic_auth/SMB/smb_auth.sh helpers/doc/smb_auth.sh
install -D -p -m644 $RPM_BUILD_DIR/%name-%version/helpers/basic_auth/SMB/ChangeLog helpers/doc/SMB.ChangeLog
install -D -p -m644 $RPM_BUILD_DIR/%name-%version/helpers/basic_auth/LDAP/README helpers/doc/LDAP.README
install -D -p -m644 $RPM_BUILD_DIR/%name-%version/helpers/basic_auth/MSNT/COPYING-2.0 helpers/doc/MSNT.COPYING-2.0
install -D -p -m644 $RPM_BUILD_DIR/%name-%version/helpers/basic_auth/MSNT/README.html helpers/doc/MSNT.README.html
install -D -p -m644 $RPM_BUILD_DIR/%name-%version/helpers/basic_auth/MSNT/msntauth.conf.default helpers/doc/msntauth.conf.default
install -D -p -m644 $RPM_BUILD_DIR/%name-%version/helpers/basic_auth/SASL/README helpers/doc/SASL.README
install -D -p -m644 $RPM_BUILD_DIR/%name-%version/helpers/basic_auth/SASL/squid_sasl_auth helpers/doc/squid_sasl_auth
install -D -p -m644 $RPM_BUILD_DIR/%name-%version/helpers/basic_auth/SASL/squid_sasl_auth.conf helpers/doc/squid_sasl_auth.conf
install -D -p -m644 $RPM_BUILD_DIR/%name-%version/helpers/basic_auth/SMB/README helpers/doc/SASL.README
install -D -p -m644 $RPM_BUILD_DIR/%name-%version/helpers/basic_auth/multi-domain-NTLM/README.txt helpers/doc/NTLM.README.txt
install -D -p -m644 $RPM_BUILD_DIR/%name-%version/helpers/external_acl/ip_user/README helpers/doc/ip_user.README
install -D -p -m644 $RPM_BUILD_DIR/%name-%version/helpers/external_acl/ip_user/example-deny_all_but.conf helpers/doc/ip_user.example-deny_all_but.conf
install -D -p -m644 $RPM_BUILD_DIR/%name-%version/helpers/external_acl/ip_user/example.conf helpers/doc/ip_user.example.conf
install -D -p -m644 $RPM_BUILD_DIR/%name-%version/helpers/external_acl/unix_group/README helpers/doc/unix_group.README
#install -D -p -m644 $RPM_BUILD_DIR/%name-%version/helpers/external_acl/winbind_group/readme.txt helpers/doc/winbind_group.readme.txt
install -D -p -m644 $RPM_BUILD_DIR/%name-%version/helpers/external_acl/unix_group/README helpers/doc/unix_group.README
install -D -p -m644 $RPM_BUILD_DIR/%name-%version/helpers/ntlm_auth/no_check/README.no_check_ntlm_auth helpers/doc/README.no_check_ntlm_auth
install -p -m755 %SOURCE4 %buildroot%_libdir/%name
mkdir -p %buildroot%_datadir/snmp/mibs
mv %buildroot%_datadir/%name/mib.txt %buildroot%_datadir/snmp/mibs/SQUID-MIB.txt
%pre common
%_sbindir/groupadd -r -f %name >/dev/null 2>&1
%_sbindir/useradd -r -n -g %name -d %_spooldir/%name -s /dev/null %name >/dev/null 2>&1 ||:
# fixing #6321, step 1/2
%_bindir/gpasswd -a squid shadow
%pre server
chown %name:%name %_logdir/%name/*.log >/dev/null 2>&1 ||:
chmod 660 %_logdir/%name/*.log >/dev/null 2>&1 ||:
%post server
%post_service %name
%preun server
%preun_service %name
%triggerpostun server -- squid < 2.4.STABLE4-alt1
[ $2 -gt 0 ] || exit 0
chown -R %name:%name %_spooldir/%name >/dev/null 2>&1 ||:
%files
%doc COPYRIGHT README ChangeLog QUICKSTART RELEASENOTES.html SPONSORS
%doc faq/* doc/debug-sections.txt
%files server
%config(noreplace) %_sysconfdir/%name/%name.conf
%config(noreplace) %_sysconfdir/%name/%name.conf.default
%config(noreplace) %_sysconfdir/%name/mime.conf
%config(noreplace) %_sysconfdir/%name/mime.conf.default
%config %_initdir/%name
%config %_sysconfdir/logrotate.d/%name
%dir %_datadir/%name
%_datadir/%name/errors
%_datadir/%name/icons
%_datadir/snmp/mibs/SQUID-MIB.txt
%_sbindir/%name
%_sbindir/squidclient
#%_sbindir/RunAccel
%_sbindir/RunCache
%_sbindir/cossdump
%_man8dir/squid.*
%attr(4710,root,%name) %_libdir/%name/pinger
%_libdir/%name/unlinkd
%_libdir/%name/diskd-daemon
%attr(3770,root,%name) %dir %_logdir/%name
%attr(2770,root,%name) %dir %_spooldir/%name
%files helpers
%doc helpers/doc/*
%config(noreplace) %_sysconfdir/%name/msntauth.conf
%config(noreplace) %_sysconfdir/%name/msntauth.conf.default
%_libdir/%name/digest_pw_auth
%_libdir/%name/fakeauth_auth
%_libdir/%name/getpwname_auth
%_libdir/%name/ip_user_check
%_libdir/%name/msnt_auth
%_libdir/%name/ncsa_auth
%_libdir/%name/ntlm_auth
# fixing #6321, step 2/2
%attr(2711,root,auth) %_libdir/%name/pam_auth
%_libdir/%name/sasl_auth
%_libdir/%name/smb_auth
%_libdir/%name/smb_auth.sh
%_libdir/%name/squid_ldap_auth
%_libdir/%name/squid_ldap_group
%_libdir/%name/squid_unix_group
%_libdir/%name/digest_ldap_auth
%_libdir/%name/squid_session
%_libdir/%name/digest_edir_auth
%_libdir/%name/squid_kerb_auth
#%_libdir/%name/wb_auth
#%_libdir/%name/wb_group
#%_libdir/%name/wb_ntlmauth
%_libdir/%name/wbinfo_group.sh
%_libdir/%name/yp_auth
%_man8dir/pam_auth.*
%_man8dir/ncsa_auth.*
%_man8dir/squid_ldap_auth.*
%_man8dir/squid_ldap_group.*
%_man8dir/squid_unix_group.*
%_man8dir/squid_session.*
%files helpers-perl
%doc scripts/*.pl
%_libdir/%name/no_check.pl
%_libdir/%name/smb_auth.pl
%_libdir/%name/wbinfo_group.pl
%_libdir/%name/pop3.pl
%_libdir/%name/squid_db_auth
%_man8dir/squid_db_auth.*
%files cachemgr
%config(noreplace) %_sysconfdir/%name/cachemgr.conf
%_libdir/%name/cachemgr.cgi
%_man8dir/cachemgr.cgi.*
%files common
%attr(750,root,%name) %dir %_sysconfdir/%name
%attr(750,root,%name) %dir %_libdir/%name
%changelog
…
Полный changelog можно просмотреть здесь
%def_enable epoll
# epoll has higher priority if both specified, so disable it
%if_enabled poll
%force_disable epoll
%endif
Name: squid
Version: 2.6.STABLE18
Release: alt0.M24.1
Summary: The Squid proxy caching server
Summary(ru_RU.KOI8-R): Кэширующий прокси-сервер Squid
License: GPL-2
Group: System/Servers
Url: http://www.squid-cache.org/
Packager: Squid Development Team <squid at packages.altlinux.org>
Source: %url/Versions/v2/%name-%version.tar
Source1: %url/Doc/FAQ/FAQ.sgml
Source2: %name.init
Source3: %name.logrotate
Source4: wbinfo_group.sh
# Cumulative ALT Linux patch, see git.altlinux.org/people/bga/packages/squid.git
Patch: %name-%version-alt.patch
Obsoletes: %name-novm
BuildConflicts: bind-devel
BuildPreReq: rpm-build >= 4.0.4-alt10, autoconf >= 2.54
# Added on Fri Sep 28 2007
BuildRequires: OpenSP libdb4-devel libkrb5-devel libldap-devel libpam-devel libsasl2-devel libssl-devel sgml-tools
# Used by smb_auth.pl,pop3.pl and squid_db_auth, required on find-requires stage:
BuildRequires: perl-Authen-Smb perl-libnet perl-DBI
Requires: %name-common %name-server %name-helpers %name-helpers-perl %name-cachemgr
%description
Squid is a high-performance proxy caching server for Web clients,
supporting FTP, gopher, and HTTP data objects. Unlike traditional
caching software, Squid handles all requests in a single,
non-blocking, I/O-driven process. Squid keeps meta data and especially
hot objects cached in RAM, caches DNS lookups, supports non-blocking
DNS lookups, and implements negative caching of failed requests.
Install squid if you need a proxy caching server.
%description -l ru_RU.KOI8-R
Squid --- высокопроизводительный кэширующий прокси-сервер для web-клиентов
с поддержкой протоколов FTP, gopher и HTTP. В отличие от традиционного кэширующего
ПО Squid обрабатывает все запросы в едином неблокирующем процессе. Squid хранит
метаданные и особенно часто запрашиваемые объекты в ОЗУ, кэширует DNS-запросы,
поддерживает неблокирующие DNS-запросы и реализует негативное кэширование
неудачных запросов.
Установите squid, если вам необходим кэширующий прокси-сервер.
%package server
Summary: main Squid server and its necessary files
Summary(ru_RU.KOI8-R): главный сервер Squid и необходимые ему файлы
Group: System/Servers
PreReq: net-snmp
Requires: %name-common
Conflicts: %name <= 2.5.STABLE9-alt3
Obsoletes: %name-pinger
%description server
This package contains Squid main server and its necessary files
as well as pinger, unlinkd and diskd.
Install squid package to get all Squid parts.
%description -l ru_RU.KOI8-R server
Этот пакет содержит главный сервер Squid и необходимые для его работы файлы,
а также pinger, unlinkd и diskd.
Установите пакет squid, чтобы получить все компоненты Squid.
%package cachemgr
Summary: Squid CGI cache manager
Summary(ru_RU.KOI8-R): CGI-диспетчер для Squid
Group: Networking/WWW
Requires: %name-common
Conflicts: %name <= 2.5.STABLE9-alt3
%description cachemgr
This package contains Squid cache manager. It is a standalone CGI application which
can be used to manage Squid processes remotely over HTTP.
Install squid package to get all Squid parts.
%description -l ru_RU.KOI8-R cachemgr
Этот пакет содержит диспетчер для Squid. Это самостоятельное приложение CGI, которое
может быть использовано для управления процессами Squid удалённо через HTTP.
Установите пакет squid, чтобы получить все компоненты Squid.
%package common
Summary: Squid common files
Summary(ru_RU.KOI8-R): общие файлы для Squid
Group: System/Servers
PreReq: shadow-groups
Conflicts: %name <= 2.5.STABLE9-alt3
%description common
This package contains common Squid files.
Install squid package to get all Squid parts.
%description -l ru_RU.KOI8-R common
Этот пакет содержит файлы, необходимые для squid-server и squid-cachemgr.
Установите пакет squid, чтобы получить все компоненты Squid.
%package helpers
Summary: Squid helpers
Summary(ru_RU.KOI8-R): вспомогательные программы для squid-server
Group: System/Servers
Requires: %name-common
Conflicts: %name <= 2.5.STABLE9-alt3
%description helpers
This package contains Squid helpers for different kinds of authentication.
Install squid package to get all Squid parts.
%description -l ru_RU.KOI8-R helpers
Этот пакет содержит вспомогательные программы для squid-server, поддерживающие
различные виды аутентификации.
Установите пакет squid, чтобы получить все компоненты Squid.
%package helpers-perl
Summary: Squid Perl helpers
Summary(ru_RU.KOI8-R): вспомогательные Perl-программы для squid-server
Group: System/Servers
Requires: %name-common
Conflicts: %name <= 2.5.STABLE9-alt3
%description helpers-perl
This package contains Perl Squid helpers for different kinds of authentication.
Install squid package to get all Squid parts.
%description -l ru_RU.KOI8-R helpers-perl
Этот пакет содержит вспомогательные Perl-программы для squid-server, поддерживающие
различные виды аутентификации.
Установите пакет squid, чтобы получить все компоненты Squid.
%prep
%setup -q
%patch -p1
mkdir -p faq
install -m644 %SOURCE1 FAQ.sgml
sed -i -e 's,url="/\(htpasswd/chpasswd-cgi.tar.gz\)",url="http://www.squid-cache.org/\1",g' FAQ.sgml
find . -type f -name '*.pl' -print0 | \
xargs -r0 sed -ie 's,/usr/local/bin/perl,/usr/bin/perl,g'
sed -i -e 's,^KERBINC = ,KERBINC = -I%_includedir/krb5,g' \
helpers/negotiate_auth/squid_kerb_auth/Makefile.am
touch NEWS AUTHORS
%build
%set_autoconf_version 2.5
autoreconf -ifsv
%configure \
--bindir=%_sbindir \
--libexecdir=%_libdir/%name \
--localstatedir=%_var \
--sysconfdir=%_sysconfdir/%name \
--datadir=%_datadir/%name \
%{subst_enable poll} \
%{subst_enable epoll} \
--enable-snmp \
--enable-removal-policies="lru heap" \
--enable-delay-pools \
--enable-icmp \
--enable-htcp \
--enable-async-io=16 \
--enable-useragent-log \
--enable-wccp \
--enable-wccpv2 \
--with-gnu-regex \
--enable-arp-acl \
--enable-ssl \
--enable-forw-via-db \
--enable-follow-x-forwarded-for \
--enable-forward-log \
--enable-referer-log \
--enable-ident-lookups \
--enable-carp \
--enable-ntlm-fail-open \
--enable-cache-digests \
--enable-x-accelerator-vary \
--enable-auth="basic ntlm digest negotiate" \
--enable-basic-auth-helpers="DB LDAP MSNT NCSA PAM POP3 SASL SMB YP getpwnam multi-domain-NTLM" \
--enable-ntlm-auth-helpers="SMB fakeauth no_check" \
--enable-digest-auth-helpers="ldap password eDirectory" \
--enable-negotiate-auth-helpers="squid_kerb_auth" \
--enable-external-acl-helpers="ip_user ldap_group unix_group session wbinfo_group" \
--enable-storeio="aufs coss diskd null ufs" \
--enable-default-err-language="English" \
--with-large-files \
--enable-large-cache-files \
--enable-icap-support \
--enable-multicast-miss \
--enable-underscores \
--enable-fd-config \
--with-maxfd=16384
%make_build
cp FAQ.sgml faq/
pushd faq
sgml2html FAQ.sgml
rm FAQ.sgml
popd
%install
%make_build install DESTDIR=%buildroot
%make_build install-pinger DESTDIR=%buildroot
mkdir -p %buildroot%_initdir
mkdir -p %buildroot%_sysconfdir/logrotate.d
install -m 755 %SOURCE2 %buildroot%_initdir/%name
install -m 644 %SOURCE3 %buildroot%_sysconfdir/logrotate.d/%name
mkdir -p %buildroot%_logdir/%name
mkdir -p %buildroot%_spooldir/%name
rm -f $RPM_BUILD_DIR/%name-%version/doc/Programming-Guide/Makefile
install -p -m644 $RPM_BUILD_DIR/%name-%version/helpers/basic_auth/PAM/pam_auth.8 %buildroot%_man8dir
install -p -m644 $RPM_BUILD_DIR/%name-%version/helpers/external_acl/ldap_group/squid_ldap_group.8 %buildroot%_man8dir
install -p -m644 $RPM_BUILD_DIR/%name-%version/helpers/basic_auth/LDAP/squid_ldap_auth.8 %buildroot%_man8dir
install -p -m644 $RPM_BUILD_DIR/%name-%version/helpers/external_acl/unix_group/squid_unix_group.8 %buildroot%_man8dir
install -p -m644 $RPM_BUILD_DIR/%name-%version/doc/squid.8 %buildroot%_man8dir
install -p -m644 $RPM_BUILD_DIR/%name-%version/doc/cachemgr.cgi.8 %buildroot%_man8dir
install -D -p -m644 $RPM_BUILD_DIR/%name-%version/helpers/basic_auth/SMB/COPYING-2.0 helpers/doc/SMB.COPYING-2.0
install -D -p -m644 $RPM_BUILD_DIR/%name-%version/helpers/basic_auth/SMB/README helpers/doc/SMB.README
install -D -p -m644 $RPM_BUILD_DIR/%name-%version/helpers/basic_auth/SMB/smb_auth.sh helpers/doc/smb_auth.sh
install -D -p -m644 $RPM_BUILD_DIR/%name-%version/helpers/basic_auth/SMB/ChangeLog helpers/doc/SMB.ChangeLog
install -D -p -m644 $RPM_BUILD_DIR/%name-%version/helpers/basic_auth/LDAP/README helpers/doc/LDAP.README
install -D -p -m644 $RPM_BUILD_DIR/%name-%version/helpers/basic_auth/MSNT/COPYING-2.0 helpers/doc/MSNT.COPYING-2.0
install -D -p -m644 $RPM_BUILD_DIR/%name-%version/helpers/basic_auth/MSNT/README.html helpers/doc/MSNT.README.html
install -D -p -m644 $RPM_BUILD_DIR/%name-%version/helpers/basic_auth/MSNT/msntauth.conf.default helpers/doc/msntauth.conf.default
install -D -p -m644 $RPM_BUILD_DIR/%name-%version/helpers/basic_auth/SASL/README helpers/doc/SASL.README
install -D -p -m644 $RPM_BUILD_DIR/%name-%version/helpers/basic_auth/SASL/squid_sasl_auth helpers/doc/squid_sasl_auth
install -D -p -m644 $RPM_BUILD_DIR/%name-%version/helpers/basic_auth/SASL/squid_sasl_auth.conf helpers/doc/squid_sasl_auth.conf
install -D -p -m644 $RPM_BUILD_DIR/%name-%version/helpers/basic_auth/SMB/README helpers/doc/SASL.README
install -D -p -m644 $RPM_BUILD_DIR/%name-%version/helpers/basic_auth/multi-domain-NTLM/README.txt helpers/doc/NTLM.README.txt
install -D -p -m644 $RPM_BUILD_DIR/%name-%version/helpers/external_acl/ip_user/README helpers/doc/ip_user.README
install -D -p -m644 $RPM_BUILD_DIR/%name-%version/helpers/external_acl/ip_user/example-deny_all_but.conf helpers/doc/ip_user.example-deny_all_but.conf
install -D -p -m644 $RPM_BUILD_DIR/%name-%version/helpers/external_acl/ip_user/example.conf helpers/doc/ip_user.example.conf
install -D -p -m644 $RPM_BUILD_DIR/%name-%version/helpers/external_acl/unix_group/README helpers/doc/unix_group.README
#install -D -p -m644 $RPM_BUILD_DIR/%name-%version/helpers/external_acl/winbind_group/readme.txt helpers/doc/winbind_group.readme.txt
install -D -p -m644 $RPM_BUILD_DIR/%name-%version/helpers/external_acl/unix_group/README helpers/doc/unix_group.README
install -D -p -m644 $RPM_BUILD_DIR/%name-%version/helpers/ntlm_auth/no_check/README.no_check_ntlm_auth helpers/doc/README.no_check_ntlm_auth
install -p -m755 %SOURCE4 %buildroot%_libdir/%name
mkdir -p %buildroot%_datadir/snmp/mibs
mv %buildroot%_datadir/%name/mib.txt %buildroot%_datadir/snmp/mibs/SQUID-MIB.txt
%pre common
%_sbindir/groupadd -r -f %name >/dev/null 2>&1
%_sbindir/useradd -r -n -g %name -d %_spooldir/%name -s /dev/null %name >/dev/null 2>&1 ||:
# fixing #6321, step 1/2
%_bindir/gpasswd -a squid shadow
%pre server
chown %name:%name %_logdir/%name/*.log >/dev/null 2>&1 ||:
chmod 660 %_logdir/%name/*.log >/dev/null 2>&1 ||:
%post server
%post_service %name
%preun server
%preun_service %name
%triggerpostun server -- squid < 2.4.STABLE4-alt1
[ $2 -gt 0 ] || exit 0
chown -R %name:%name %_spooldir/%name >/dev/null 2>&1 ||:
%files
%doc COPYRIGHT README ChangeLog QUICKSTART RELEASENOTES.html SPONSORS
%doc faq/* doc/debug-sections.txt
%files server
%config(noreplace) %_sysconfdir/%name/%name.conf
%config(noreplace) %_sysconfdir/%name/%name.conf.default
%config(noreplace) %_sysconfdir/%name/mime.conf
%config(noreplace) %_sysconfdir/%name/mime.conf.default
%config %_initdir/%name
%config %_sysconfdir/logrotate.d/%name
%dir %_datadir/%name
%_datadir/%name/errors
%_datadir/%name/icons
%_datadir/snmp/mibs/SQUID-MIB.txt
%_sbindir/%name
%_sbindir/squidclient
#%_sbindir/RunAccel
%_sbindir/RunCache
%_sbindir/cossdump
%_man8dir/squid.*
%attr(4710,root,%name) %_libdir/%name/pinger
%_libdir/%name/unlinkd
%_libdir/%name/diskd-daemon
%attr(3770,root,%name) %dir %_logdir/%name
%attr(2770,root,%name) %dir %_spooldir/%name
%files helpers
%doc helpers/doc/*
%config(noreplace) %_sysconfdir/%name/msntauth.conf
%config(noreplace) %_sysconfdir/%name/msntauth.conf.default
%_libdir/%name/digest_pw_auth
%_libdir/%name/fakeauth_auth
%_libdir/%name/getpwname_auth
%_libdir/%name/ip_user_check
%_libdir/%name/msnt_auth
%_libdir/%name/ncsa_auth
%_libdir/%name/ntlm_auth
# fixing #6321, step 2/2
%attr(2711,root,auth) %_libdir/%name/pam_auth
%_libdir/%name/sasl_auth
%_libdir/%name/smb_auth
%_libdir/%name/smb_auth.sh
%_libdir/%name/squid_ldap_auth
%_libdir/%name/squid_ldap_group
%_libdir/%name/squid_unix_group
%_libdir/%name/digest_ldap_auth
%_libdir/%name/squid_session
%_libdir/%name/digest_edir_auth
%_libdir/%name/squid_kerb_auth
#%_libdir/%name/wb_auth
#%_libdir/%name/wb_group
#%_libdir/%name/wb_ntlmauth
%_libdir/%name/wbinfo_group.sh
%_libdir/%name/yp_auth
%_man8dir/pam_auth.*
%_man8dir/ncsa_auth.*
%_man8dir/squid_ldap_auth.*
%_man8dir/squid_ldap_group.*
%_man8dir/squid_unix_group.*
%_man8dir/squid_session.*
%files helpers-perl
%doc scripts/*.pl
%_libdir/%name/no_check.pl
%_libdir/%name/smb_auth.pl
%_libdir/%name/wbinfo_group.pl
%_libdir/%name/pop3.pl
%_libdir/%name/squid_db_auth
%_man8dir/squid_db_auth.*
%files cachemgr
%config(noreplace) %_sysconfdir/%name/cachemgr.conf
%_libdir/%name/cachemgr.cgi
%_man8dir/cachemgr.cgi.*
%files common
%attr(750,root,%name) %dir %_sysconfdir/%name
%attr(750,root,%name) %dir %_libdir/%name
%changelog
…
Полный changelog можно просмотреть здесь