Репозиторий Sisyphus
Последнее обновление: 1 июня 2020 | Пакетов: 17568 | Посещений: 18677507
en ru br
Репозитории ALT
S:4.11-alt1
5.1: 3.1.11-alt0.M51.1
4.1: 3.0.STABLE15-alt0.M41.1
4.0: 3.0.STABLE15-alt0.M40.1
3.0: 2.5.STABLE11-alt2
www.altlinux.org/Changes

Группа :: Система/Серверы
Пакет: squid

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Name: squid
Version: 2.5.STABLE11
Release: alt2

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.bz2
Source1: %url/Doc/FAQ/FAQ.sgml
Source2: %name.init
Source3: %name.logrotate
Source4: wbinfo_group.sh

# Other patches

# rediffed for 2.5.S7
Patch1: squid-2.5.STABLE7-make.patch
# rediffed for 2.5.S7
Patch2: squid-2.5.STABLE7-config.patch
Patch3: squid-2.4.STABLE6-alt-without-bind.patch
Patch4: squid-2.5-perlpath.patch
Patch5: squid-2.5-automake.patch
Patch6: squid-errrors-belarusian.patch
# See http://stc.nixdev.org/getstat.php
# DISABLED for now
Patch7: patch-aa.patch
Patch8: squid-2.5.STABLE10-alt-perlreq.patch
Patch9: squid-2.5.STABLE10-alt-sambaprefix.patch

#Official patches to Squid

Patch10: squid-2.5.STABLE11-delaypools_truncated.patch

Obsoletes: %name-novm

BuildConflicts: bind-devel
BuildPreReq: rpm-build >= 4.0.4-alt10, autoconf >= 2.54
BuildRequires: OpenSP libldap-devel libpam0-devel libsasl2-devel libssl-devel perl-Authen-Smb sgml-tools
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-mibs
Requires: %name-common
Conflicts: %name <= 2.5.STABLE9-alt3

%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
Obsoletes: %name-pinger

%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
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
#patch7 -p1
%patch8 -p1
%patch9 -p1

%patch10 -p1

%build
%set_autoconf_version 2.5

%__autoconf
%configure \
--bindir=%_sbindir \
--libexecdir=%_libdir/%name \
--localstatedir=%_var \
--sysconfdir=%_sysconfdir/%name \
--datadir=%_datadir/%name \
--enable-poll \
--enable-snmp \
--enable-removal-policies="lru heap" \
--enable-delay-pools \
--enable-icmp \
--enable-async-io=16 \
--enable-useragent-log \
--enable-wccp \
--with-gnu-regex \
--enable-arp-acl \
--enable-ssl \
--enable-forw-via-db \
--enable-carp \
--enable-ntlm-fail-open \
--enable-cache-digests \
--enable-x-accelerator-vary \
--enable-auth="basic ntlm digest" \
--enable-basic-auth-helpers="LDAP MSNT NCSA PAM SASL SMB YP getpwnam multi-domain-NTLM winbind" \
--enable-ntlm-auth-helpers="SMB fakeauth no_check winbind" \
--enable-digest-auth-helpers="password" \
--enable-external-acl-helpers="ip_user ldap_group unix_group wbinfo_group winbind_group" \
--enable-storeio="aufs coss diskd null ufs" \
--enable-default-err-language="English" \
--with-large-files \
--enable-large-cache-files \
--with-maxfd=16384

%make_build

%__mkdir faq
%__cp $RPM_SOURCE_DIR/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
%_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

%__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 -- 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
%_datadir/%name/errors
%_datadir/%name/icons
%_datadir/snmp/mibs/SQUID-MIB.txt
%_sbindir/%name
%_sbindir/squidclient
%_sbindir/RunAccel
%_sbindir/RunCache
%_man8dir/squid.8.gz
%attr(4710,root,%name) %_libdir/%name/pinger
%_libdir/%name/unlinkd
%_libdir/%name/diskd
%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/wb_auth
%_libdir/%name/wb_group
%_libdir/%name/wb_ntlmauth
%_libdir/%name/wbinfo_group.sh
%_libdir/%name/yp_auth
%_man8dir/pam_auth.8.gz
%_man8dir/squid_ldap_auth.8.gz
%_man8dir/squid_ldap_group.8.gz
%_man8dir/squid_unix_group.8.gz

%files helpers-perl
%doc scripts/*.pl
%_libdir/%name/no_check.pl
%_libdir/%name/smb_auth.pl
%_libdir/%name/wbinfo_group.pl

%files cachemgr
%config(noreplace) %_sysconfdir/%name/cachemgr.conf
%_libdir/%name/cachemgr.cgi
%_man8dir/cachemgr.cgi.8.gz

%files common
%attr(750,root,%name) %dir %_sysconfdir/%name
%attr(750,root,%name) %dir %_libdir/%name


%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin