Репозиторий Sisyphus
Последнее обновление: 1 июня 2020 | Пакетов: 17568 | Посещений: 18677528
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 

%def_disable poll
%def_enable epoll

# epoll is enabled by default, so disable it if plain poll is enabled

%if_enabled poll
%force_disable epoll
%endif

Name: squid
Version: 3.1.11
Release: alt0.M51.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
Source2: %name.init
Source3: %name.logrotate
Source4: wbinfo_group.sh
Source5: %name.sysconfig
Source6: %name.pam

Obsoletes: %name-novm

BuildConflicts: bind-devel
BuildPreReq: rpm-build >= 4.0.4-alt10

# Automatically added by buildreq on Mon May 18 2009

BuildRequires: cppunit-devel gcc-c++ libdb4-devel libldap-devel libpam-devel libssl-devel libkrb5-devel libcap-devel libltdl-devel

# Used by smb_auth.pl,pop3.pl and squid_db_auth, required on find-requires stage:

BuildRequires: perl-Authen-Smb perl-libnet perl-DBI

Patch1: squid-3.1.7-kerb_auth-link-alt.patch
Patch2: squid-3.1.7-install-pinger-alt.patch
Patch3: squid-3.1.0.9-location.patch
Patch4: squid-3.1.7-default-logrotate-alt.patch
Patch5: squid-3.1.7-default-paths-in-var-alt.patch

Requires: %name-common = %version-%release, %name-server = %version-%release, %name-helpers = %version-%release, %name-helpers-perl = %version-%release, %name-cachemgr = %version-%release

%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 conf-default
Summary: default %name config
Group: System/Servers
Requires: %name-common
Provides: %name-conf = %version-%release, %_sysconfdir/%name/%name.conf
%{expand:%%global o_list %(for n in host2cat; do echo -n "%name-conf-$n "; done)}
%{?o_list:Conflicts: %o_list}
BuildArch: noarch

%description conf-default
This package contains default %name config



%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, %name-conf, %_sysconfdir/%name/%name.conf
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
BuildArch: noarch

%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
BuildArch: noarch

%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 -p2
%patch5 -p1

find . -type f -name '*.pl' -print0 | \
xargs -r0 sed -ie 's,/usr/local/bin/perl,/usr/bin/perl,g'

%build
%configure \
--bindir=%_sbindir \
--libexecdir=%_libexecdir/%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-wccp \
--enable-wccpv2 \
--enable-arp-acl \
--enable-ssl \
--enable-forw-via-db \
--enable-useragent-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 squid_radius_auth" \
--enable-ntlm-auth-helpers="smb_lm 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 diskd ufs" \
--enable-disk-io="AIO Blocking DiskDaemon DiskThreads" \
--enable-default-err-language="English" \
--enable-icap-client \
--enable-linux-netfilter \
--with-large-files \
--with-filedescriptors=16384 \
--with-default-user="%name"

%make_build
%make_build check

%install
%make_build install DESTDIR=%buildroot
%make_build install-pinger DESTDIR=%buildroot

install -pD -m755 %SOURCE2 %buildroot%_initdir/%name
install -pD -m644 %SOURCE3 %buildroot%_sysconfdir/logrotate.d/%name

mkdir -p %buildroot%_logdir/%name
mkdir -p %buildroot%_spooldir/%name

install -p -m644 helpers/basic_auth/PAM/pam_auth.8 %buildroot%_man8dir
install -p -m644 helpers/external_acl/ldap_group/squid_ldap_group.8 %buildroot%_man8dir
install -p -m644 helpers/basic_auth/LDAP/squid_ldap_auth.8 %buildroot%_man8dir
install -p -m644 helpers/external_acl/unix_group/squid_unix_group.8 %buildroot%_man8dir
install -p -m644 doc/squid.8 %buildroot%_man8dir
install -p -m644 doc/cachemgr.cgi.8 %buildroot%_man8dir

install -pD -m644 helpers/basic_auth/SMB/COPYING-2.0 helpers/doc/SMB.COPYING-2.0
install -pD -m644 helpers/basic_auth/SMB/README helpers/doc/SMB.README
install -pD -m644 helpers/basic_auth/SMB/smb_auth.sh helpers/doc/smb_auth.sh
install -pD -m644 helpers/basic_auth/SMB/ChangeLog helpers/doc/SMB.ChangeLog
install -pD -m644 helpers/basic_auth/LDAP/README helpers/doc/LDAP.README
install -pD -m644 helpers/basic_auth/MSNT/COPYING-2.0 helpers/doc/MSNT.COPYING-2.0
install -pD -m644 helpers/basic_auth/MSNT/README.html helpers/doc/MSNT.README.html
install -pD -m644 helpers/basic_auth/MSNT/msntauth.conf.default helpers/doc/msntauth.conf.default
install -pD -m644 helpers/basic_auth/SASL/README helpers/doc/SASL.README
install -pD -m644 helpers/basic_auth/SASL/squid_sasl_auth helpers/doc/squid_sasl_auth
install -pD -m644 helpers/basic_auth/SASL/squid_sasl_auth.conf helpers/doc/squid_sasl_auth.conf
install -pD -m644 helpers/basic_auth/SMB/README helpers/doc/SASL.README
install -pD -m644 helpers/basic_auth/multi-domain-NTLM/README.txt helpers/doc/NTLM.README.txt
install -pD -m644 helpers/external_acl/ip_user/README helpers/doc/ip_user.README
install -pD -m644 helpers/external_acl/ip_user/example-deny_all_but.conf helpers/doc/ip_user.example-deny_all_but.conf
install -pD -m644 helpers/external_acl/ip_user/example.conf helpers/doc/ip_user.example.conf
install -pD -m644 helpers/external_acl/unix_group/README helpers/doc/unix_group.README
install -pD -m644 helpers/external_acl/unix_group/README helpers/doc/unix_group.README
install -pD -m644 helpers/ntlm_auth/no_check/README.no_check_ntlm_auth helpers/doc/README.no_check_ntlm_auth

install -p -m755 %SOURCE4 %buildroot%_libexecdir/%name/
mkdir -p %buildroot%_datadir/snmp/mibs
mv %buildroot%_datadir/%name/mib.txt %buildroot%_datadir/snmp/mibs/SQUID-MIB.txt

install -D -m644 %SOURCE5 %buildroot%_sysconfdir/sysconfig/%name
install -D -m644 %SOURCE6 %buildroot%_sysconfdir/pam.d/%name

%pre common
%_sbindir/groupadd -r -f %name
%_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 doc/debug-sections.txt

%files conf-default
%config(noreplace) %_sysconfdir/%name/%name.conf

%files server
%config(noreplace) %_sysconfdir/%name/%name.conf.default
%config(noreplace) %_sysconfdir/%name/%name.conf.documented
%config(noreplace) %_sysconfdir/%name/mime.conf
%config(noreplace) %_sysconfdir/%name/mime.conf.default
%config(noreplace) %_sysconfdir/%name/errorpage.css
%config(noreplace) %_sysconfdir/%name/errorpage.css.default
%config(noreplace) %_sysconfdir/sysconfig/%name
%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
%_man8dir/squid.*
%_man1dir/squidclient.*
%attr(4710,root,%name) %_libexecdir/%name/pinger
%_libexecdir/%name/unlinkd
%_libexecdir/%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
%_libexecdir/%name/digest_pw_auth
%_libexecdir/%name/fakeauth_auth
%_libexecdir/%name/getpwname_auth
%_libexecdir/%name/ip_user_check
%_libexecdir/%name/msnt_auth
%_libexecdir/%name/ncsa_auth
%_libexecdir/%name/ntlm_smb_lm_auth
%attr(640,root,auth) %config(noreplace) %_sysconfdir/pam.d/%name
# fixing #6321, step 2/2
%attr(2711,root,auth) %_libexecdir/%name/pam_auth
%_libexecdir/%name/sasl_auth
%_libexecdir/%name/smb_auth
%_libexecdir/%name/smb_auth.sh
%_libexecdir/%name/squid_ldap_auth
%_libexecdir/%name/squid_ldap_group
%_libexecdir/%name/squid_unix_group
%_libexecdir/%name/digest_ldap_auth
%_libexecdir/%name/squid_session
%_libexecdir/%name/digest_edir_auth
%_libexecdir/%name/squid_kerb_auth
#%_libexecdir/%name/wb_auth
#%_libexecdir/%name/wb_group
#%_libexecdir/%name/wb_ntlmauth
%_libexecdir/%name/wbinfo_group.sh
%_libexecdir/%name/yp_auth
%_libexecdir/%name/squid_radius_auth
%_libexecdir/%name/negotiate_kerb_auth
%_libexecdir/%name/negotiate_kerb_auth_test
%_libexecdir/%name/squid_kerb_auth_test

%_man8dir/pam_auth.*
%_man8dir/ncsa_auth.*
%_man8dir/squid_ldap_auth.*
%_man8dir/squid_ldap_group.*
%_man8dir/squid_unix_group.*
%_man8dir/squid_session.*
%_man8dir/squid_radius_auth.*

%files helpers-perl
%doc scripts/*.pl
%_libexecdir/%name/no_check.pl
%_libexecdir/%name/smb_auth.pl
%_libexecdir/%name/wbinfo_group.pl
%_libexecdir/%name/pop3.pl
%_libexecdir/%name/squid_db_auth
%_man8dir/squid_db_auth.*

%files cachemgr
%config(noreplace) %_sysconfdir/%name/cachemgr.conf
%config(noreplace) %_sysconfdir/%name/cachemgr.conf.default
%_libexecdir/%name/cachemgr.cgi
%_man8dir/cachemgr.cgi.*

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


%changelog

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

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