2012-10-22 21:07:11 +02:00
|
|
|
#
|
|
|
|
# spec file for package squid
|
|
|
|
#
|
2023-01-04 15:36:50 +01:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2012-10-22 21:07:11 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-01-02 09:30:55 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2012-10-22 21:07:11 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2020-11-05 17:30:46 +01:00
|
|
|
%define squidlibexecdir %{_libexecdir}/squid
|
2018-01-09 18:04:34 +01:00
|
|
|
%define squidconfdir %{_sysconfdir}/squid
|
2020-11-05 17:30:46 +01:00
|
|
|
%if 0%{?suse_version} > 1500 || 0%{?sle_version} >= 150300
|
|
|
|
%define squidhelperdir %{squidlibexecdir}
|
2020-08-10 08:02:07 +02:00
|
|
|
%else
|
|
|
|
%define squidhelperdir %{_sbindir}
|
|
|
|
%endif
|
2012-10-22 21:07:11 +02:00
|
|
|
Name: squid
|
2022-09-12 17:32:36 +02:00
|
|
|
Version: 5.7
|
2015-01-09 11:36:46 +01:00
|
|
|
Release: 0
|
2017-07-06 16:06:50 +02:00
|
|
|
Summary: Caching and forwarding HTTP web proxy
|
2018-03-29 10:40:02 +02:00
|
|
|
License: GPL-2.0-or-later
|
2012-10-22 21:07:11 +02:00
|
|
|
Group: Productivity/Networking/Web/Proxy
|
2018-10-04 09:37:10 +02:00
|
|
|
URL: http://www.squid-cache.org
|
2021-10-06 19:10:48 +02:00
|
|
|
Source0: http://www.squid-cache.org/Versions/v5/squid-%{version}.tar.xz
|
|
|
|
Source1: http://www.squid-cache.org/Versions/v5/squid-%{version}.tar.xz.asc
|
2012-10-22 21:07:11 +02:00
|
|
|
Source5: pam.squid
|
|
|
|
Source6: unsquid.pl
|
|
|
|
Source7: %{name}.logrotate
|
2015-02-19 00:15:24 +01:00
|
|
|
Source9: %{name}.permissions
|
2012-10-22 21:07:11 +02:00
|
|
|
Source10: README.kerberos
|
|
|
|
Source11: %{name}.service
|
2020-02-19 09:58:35 +01:00
|
|
|
Source12: %{name}-user.conf
|
2018-01-09 17:52:12 +01:00
|
|
|
# http://lists.squid-cache.org/pipermail/squid-announce/2016-October/000064.html
|
|
|
|
Source13: http://www.squid-cache.org/pgp.asc#/squid.keyring
|
2017-03-22 16:16:54 +01:00
|
|
|
Source15: cache_dir.sed
|
|
|
|
Source16: initialize_cache_if_needed.sh
|
2018-10-23 15:55:38 +02:00
|
|
|
Source17: tmpfilesdir.squid.conf
|
2018-01-09 17:52:12 +01:00
|
|
|
Patch1: missing_installs.patch
|
2019-07-18 16:14:00 +02:00
|
|
|
Patch2: old_nettle_compat.patch
|
2021-12-21 15:30:33 +01:00
|
|
|
Patch3: harden_squid.service.patch
|
2017-06-16 14:39:53 +02:00
|
|
|
BuildRequires: cppunit-devel
|
2012-10-22 21:07:11 +02:00
|
|
|
BuildRequires: expat
|
2013-12-25 22:46:51 +01:00
|
|
|
BuildRequires: fdupes
|
2016-01-24 22:09:22 +01:00
|
|
|
BuildRequires: gcc-c++
|
2012-10-22 21:07:11 +02:00
|
|
|
BuildRequires: libcap-devel
|
2015-02-19 00:15:24 +01:00
|
|
|
BuildRequires: libtool
|
2012-10-22 21:07:11 +02:00
|
|
|
BuildRequires: openldap2-devel
|
|
|
|
BuildRequires: openssl-devel
|
|
|
|
BuildRequires: pam-devel
|
|
|
|
BuildRequires: pkgconfig
|
2017-06-16 14:39:53 +02:00
|
|
|
BuildRequires: samba-winbind
|
2012-10-22 21:07:11 +02:00
|
|
|
BuildRequires: sharutils
|
2017-06-16 14:39:53 +02:00
|
|
|
BuildRequires: pkgconfig(expat)
|
|
|
|
BuildRequires: pkgconfig(gssrpc)
|
|
|
|
BuildRequires: pkgconfig(krb5)
|
|
|
|
BuildRequires: pkgconfig(libsasl2)
|
|
|
|
BuildRequires: pkgconfig(libxml-2.0)
|
2019-07-16 17:33:12 +02:00
|
|
|
BuildRequires: pkgconfig(nettle)
|
2021-10-06 10:28:26 +02:00
|
|
|
BuildRequires: pkgconfig(tdb)
|
2015-01-09 11:36:46 +01:00
|
|
|
Requires(pre): permissions
|
2020-06-22 10:43:44 +02:00
|
|
|
Recommends: logrotate
|
2015-01-09 11:36:46 +01:00
|
|
|
Provides: http_proxy
|
2021-12-22 15:26:08 +01:00
|
|
|
%{?systemd_ordering}
|
|
|
|
%if 0%{?suse_version} <= 1500
|
2016-01-24 22:09:22 +01:00
|
|
|
# due to package rename
|
|
|
|
# Wed Aug 15 17:40:30 UTC 2012
|
2021-10-06 10:28:26 +02:00
|
|
|
# remove this after SLE15
|
2016-01-24 22:09:22 +01:00
|
|
|
Provides: %{name}3 = %{version}
|
|
|
|
Obsoletes: %{name}3 < %{version}
|
2021-10-06 10:28:26 +02:00
|
|
|
%endif
|
2021-05-12 14:31:04 +02:00
|
|
|
%if 0%{?suse_version} >= 1500
|
|
|
|
BuildRequires: sysuser-shadow
|
|
|
|
BuildRequires: sysuser-tools
|
|
|
|
%sysusers_requires
|
|
|
|
%else
|
|
|
|
Requires(pre): shadow
|
|
|
|
%endif
|
2018-01-09 18:04:34 +01:00
|
|
|
%if 0%{?suse_version} >= 1330
|
|
|
|
BuildRequires: libnsl-devel
|
|
|
|
%endif
|
2016-01-24 22:09:22 +01:00
|
|
|
|
2012-10-22 21:07:11 +02:00
|
|
|
%description
|
2017-07-06 16:06:50 +02:00
|
|
|
Squid is a caching proxy for the Web supporting HTTP(S), FTP, and
|
|
|
|
some others. It reduces bandwidth and improves response times by
|
|
|
|
caching and reusing frequently-requested web pages. Squid has
|
|
|
|
extensive access controls and can also be used as a server
|
|
|
|
accelerator.
|
2013-09-08 14:03:13 +02:00
|
|
|
|
2012-10-22 21:07:11 +02:00
|
|
|
%prep
|
2015-01-09 11:36:46 +01:00
|
|
|
%setup -q
|
|
|
|
cp %{SOURCE10} .
|
2021-12-07 13:01:22 +01:00
|
|
|
%patch3 -p1
|
2016-10-12 18:42:21 +02:00
|
|
|
|
2018-01-09 17:52:12 +01:00
|
|
|
# upstream patches after RELEASE
|
2015-01-09 11:36:46 +01:00
|
|
|
perl -p -i -e 's|%{_prefix}/local/bin/perl|%{_bindir}/perl|' `find -name "*.pl"`
|
2018-01-09 17:52:12 +01:00
|
|
|
%patch1 -p1
|
2020-06-22 10:43:44 +02:00
|
|
|
%if 0%{?suse_version} < 1500
|
2019-07-18 16:14:00 +02:00
|
|
|
%patch2 -p1
|
|
|
|
%endif
|
2012-10-22 21:07:11 +02:00
|
|
|
|
|
|
|
%build
|
2019-07-16 09:57:43 +02:00
|
|
|
%define _lto_cflags %{nil}
|
2018-01-09 17:52:12 +01:00
|
|
|
autoreconf -fi
|
2018-05-15 10:19:04 +02:00
|
|
|
cd libltdl; autoreconf -fi; cd ..
|
2017-06-16 21:25:29 +02:00
|
|
|
export CFLAGS="%{optflags} -fPIE -fPIC -DOPENSSL_LOAD_CONF"
|
|
|
|
export CXXFLAGS="%{optflags} -fPIE -fPIC -DOPENSSL_LOAD_CONF"
|
|
|
|
export LDFLAGS="-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro,-z,now -pie"
|
2013-12-25 22:46:51 +01:00
|
|
|
%configure \
|
2013-09-08 14:03:13 +02:00
|
|
|
--disable-strict-error-checking \
|
2012-10-22 21:07:11 +02:00
|
|
|
--sysconfdir=%{squidconfdir} \
|
2020-08-10 08:02:07 +02:00
|
|
|
--libexecdir=%{squidhelperdir} \
|
2015-01-09 11:36:46 +01:00
|
|
|
--datadir=%{_datadir}/squid \
|
|
|
|
--sharedstatedir=%{_localstatedir}/squid \
|
|
|
|
--with-logdir=%{_localstatedir}/log/squid \
|
2022-08-29 13:10:51 +02:00
|
|
|
--with-pidfile=%{_rundir}/%{name}/squid.pid \
|
2012-10-22 21:07:11 +02:00
|
|
|
--with-dl \
|
|
|
|
--enable-disk-io \
|
|
|
|
--enable-storeio \
|
|
|
|
--enable-removal-policies=heap,lru \
|
|
|
|
--enable-icmp \
|
|
|
|
--enable-delay-pools \
|
|
|
|
--enable-esi \
|
|
|
|
--enable-icap-client \
|
|
|
|
--enable-useragent-log \
|
|
|
|
--enable-referer-log \
|
|
|
|
--enable-kill-parent-hack \
|
|
|
|
--enable-arp-acl \
|
2014-03-14 19:23:19 +01:00
|
|
|
--enable-ssl-crtd \
|
2015-04-26 13:20:33 +02:00
|
|
|
--with-openssl \
|
2012-10-22 21:07:11 +02:00
|
|
|
--enable-forw-via-db \
|
|
|
|
--enable-cache-digests \
|
|
|
|
--enable-linux-netfilter \
|
|
|
|
--with-large-files \
|
|
|
|
--enable-underscores \
|
|
|
|
--enable-auth \
|
2018-01-09 17:52:12 +01:00
|
|
|
--enable-auth-basic="SMB_LM,DB,fake,getpwnam,LDAP,NCSA,NIS,PAM,POP3,RADIUS,SASL,SMB" \
|
|
|
|
--enable-auth-ntlm="SMB_LM,fake" \
|
2012-10-22 21:07:11 +02:00
|
|
|
--enable-auth-negotiate \
|
|
|
|
--enable-auth-digest \
|
2017-07-29 18:49:58 +02:00
|
|
|
--enable-external-acl-helpers=LDAP_group,eDirectory_userip,file_userip,kerberos_ldap_group,session,unix_group,wbinfo_group,time_quota \
|
2012-10-22 21:07:11 +02:00
|
|
|
--enable-stacktraces \
|
|
|
|
--enable-x-accelerator-vary \
|
|
|
|
--with-default-user=%{name} \
|
|
|
|
--disable-ident-lookups \
|
2014-09-04 23:20:40 +02:00
|
|
|
--enable-follow-x-forwarded-for \
|
2018-01-09 17:52:12 +01:00
|
|
|
--disable-arch-native \
|
|
|
|
--enable-security-cert-generators \
|
|
|
|
--enable-security-cert-validators
|
2021-10-06 10:28:26 +02:00
|
|
|
#make -O SAMBAPREFIX=%{_prefix} %{?_smp_mflags}
|
|
|
|
mkdir src/icmp/tests
|
|
|
|
mkdir tools/squidclient/tests
|
|
|
|
mkdir tools/sysvinit/tests tools/tests
|
|
|
|
make %{?_smp_mflags}
|
2020-11-05 17:30:46 +01:00
|
|
|
%if 0%{?suse_version} >= 1500
|
2020-02-19 09:58:35 +01:00
|
|
|
%sysusers_generate_pre %{SOURCE12} squid
|
2020-11-05 17:30:46 +01:00
|
|
|
%endif
|
2012-10-22 21:07:11 +02:00
|
|
|
|
|
|
|
%install
|
2014-11-27 21:53:15 +01:00
|
|
|
install -d -m 750 %{buildroot}%{_localstatedir}/{cache,log}/%{name}
|
2018-01-09 18:04:34 +01:00
|
|
|
install -d %{buildroot}%{_sbindir}
|
2014-11-27 21:53:15 +01:00
|
|
|
|
|
|
|
# make_install
|
2017-06-19 10:28:16 +02:00
|
|
|
%make_install SAMBAPREFIX=%{_prefix}
|
2014-11-27 21:53:15 +01:00
|
|
|
|
2015-01-09 11:36:46 +01:00
|
|
|
mv %{buildroot}{%{_sysconfdir}/%{name}/,%{_datadir}/%{name}/}mime.conf.default
|
|
|
|
ln -s %{_sysconfdir}/%{name}/mime.conf %{buildroot}%{_datadir}/%{name} # backward compatible
|
2014-11-27 21:53:15 +01:00
|
|
|
|
|
|
|
# install logrotate file
|
2022-06-29 19:56:59 +02:00
|
|
|
%if 0%{?suse_version} > 1500
|
|
|
|
mkdir -p %{buildroot}%{_distconfdir}/logrotate.d
|
|
|
|
install -Dpm 644 %{SOURCE7} \
|
|
|
|
%{buildroot}%{_distconfdir}/logrotate.d/%{name}
|
|
|
|
%else
|
2017-06-19 10:28:16 +02:00
|
|
|
install -Dpm 644 %{SOURCE7} \
|
|
|
|
%{buildroot}%{_sysconfdir}/logrotate.d/%{name}
|
2022-06-29 19:56:59 +02:00
|
|
|
%endif
|
2012-10-22 21:07:11 +02:00
|
|
|
|
|
|
|
install -d -m 755 doc/scripts
|
|
|
|
install scripts/*.pl doc/scripts
|
|
|
|
cat > doc/scripts/cachemgr.readme <<-EOT
|
2020-11-05 17:30:46 +01:00
|
|
|
%if 0%{?suse_version} > 1500 || 0%{?sle_version} >= 150300
|
|
|
|
cachemgr.cgi will now be found in %{squidhelperdir}
|
|
|
|
%else
|
2012-10-22 21:07:11 +02:00
|
|
|
cachemgr.cgi will now be found in %{_libdir}/%{name}
|
2020-11-05 17:30:46 +01:00
|
|
|
%endif
|
2012-10-22 21:07:11 +02:00
|
|
|
EOT
|
2020-08-10 08:02:07 +02:00
|
|
|
|
2020-11-05 17:30:46 +01:00
|
|
|
%if 0%{?suse_version} <= 1500 && 0%{?sle_version} < 150300
|
2017-06-19 10:28:16 +02:00
|
|
|
install -dpm 755 %{buildroot}/%{_libdir}/%{name}
|
2012-10-22 21:07:11 +02:00
|
|
|
mv %{buildroot}%{_sbindir}/cachemgr.cgi %{buildroot}/%{_libdir}/%{name}
|
2020-08-10 08:02:07 +02:00
|
|
|
%endif
|
2012-10-22 21:07:11 +02:00
|
|
|
|
2017-06-19 10:28:16 +02:00
|
|
|
install -dpm 755 doc/contrib
|
2012-10-22 21:07:11 +02:00
|
|
|
install %{SOURCE6} doc/contrib
|
2023-01-04 15:36:50 +01:00
|
|
|
%if 0%{?suse_version} > 1500
|
|
|
|
mkdir -p %{buildroot}%{_pam_vendordir}
|
|
|
|
install -Dpm 644 %{SOURCE5} %{buildroot}%{_pam_vendordir}/%{name}
|
|
|
|
%else
|
2017-06-19 10:28:16 +02:00
|
|
|
install -Dpm 644 %{SOURCE5} %{buildroot}%{_sysconfdir}/pam.d/%{name}
|
2023-01-04 15:36:50 +01:00
|
|
|
%endif
|
2012-10-22 21:07:11 +02:00
|
|
|
|
|
|
|
rm -rf %{buildroot}%{squidconfdir}/errors
|
|
|
|
for i in errors/*; do
|
|
|
|
if [ -d $i ]; then
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/%{name}/$i
|
|
|
|
install -m 644 $i/* %{buildroot}%{_datadir}/%{name}/$i
|
|
|
|
fi
|
|
|
|
done
|
2018-01-29 11:37:51 +01:00
|
|
|
ln -sf %{_datadir}/%{name}/errors/en %{buildroot}%{squidconfdir}/errors
|
2015-01-09 11:36:46 +01:00
|
|
|
|
2017-06-19 10:28:16 +02:00
|
|
|
# systemd
|
2017-06-16 14:39:53 +02:00
|
|
|
install -D -m 644 %{SOURCE11} %{buildroot}%{_unitdir}/%{name}.service
|
2020-11-05 17:30:46 +01:00
|
|
|
install -D -m 755 %{SOURCE15} %{buildroot}%{squidlibexecdir}/cache_dir.sed
|
|
|
|
install -D -m 755 %{SOURCE16} %{buildroot}%{squidlibexecdir}/initialize_cache_if_needed.sh
|
|
|
|
sed -i -e 's!%%{_libexecdir}!%{_libexecdir}!' %{buildroot}%{_unitdir}/%{name}.service
|
2017-06-16 14:39:53 +02:00
|
|
|
ln -sf %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}
|
2012-10-22 21:07:11 +02:00
|
|
|
|
2018-10-23 15:55:38 +02:00
|
|
|
# needed for smp support (bsc#1112695, bsc#1112066)
|
|
|
|
mkdir -p %{buildroot}%{_tmpfilesdir}
|
2018-11-09 14:15:01 +01:00
|
|
|
install -D -m 644 %{SOURCE17} %{buildroot}%{_tmpfilesdir}/squid.conf
|
2018-10-23 15:55:38 +02:00
|
|
|
|
2015-10-15 17:08:57 +02:00
|
|
|
# Move the MIB definition to the proper place (and name)
|
2017-06-16 14:39:53 +02:00
|
|
|
mkdir -p %{buildroot}%{_datadir}/snmp/mibs
|
|
|
|
mv %{buildroot}%{_datadir}/squid/mib.txt \
|
|
|
|
%{buildroot}%{_datadir}/snmp/mibs/SQUID-MIB.txt
|
2015-10-15 17:08:57 +02:00
|
|
|
|
2021-05-18 14:44:03 +02:00
|
|
|
%if 0%{?suse_version} >= 1500
|
2020-02-19 09:58:35 +01:00
|
|
|
# Install sysusers file.
|
|
|
|
mkdir -p %{buildroot}%{_sysusersdir}
|
|
|
|
install -m 644 %{SOURCE12} %{buildroot}%{_sysusersdir}/
|
2021-05-18 14:44:03 +02:00
|
|
|
%endif
|
2020-02-19 09:58:35 +01:00
|
|
|
|
2018-10-04 10:40:01 +02:00
|
|
|
%check
|
|
|
|
# Fails in chroot environment
|
2021-05-18 14:44:03 +02:00
|
|
|
make check %{?_smp_mflags}
|
2018-10-04 10:40:01 +02:00
|
|
|
|
2022-03-29 14:30:01 +02:00
|
|
|
%pretrans -p <lua>
|
|
|
|
-- Remove symlink that is has become a directory
|
|
|
|
path = "%_datadir/squid/errors/es-mx"
|
|
|
|
st = posix.stat(path)
|
|
|
|
if st and st.type == "link" then
|
|
|
|
os.remove(path)
|
|
|
|
end
|
|
|
|
|
2020-11-05 17:30:46 +01:00
|
|
|
%if 0%{?suse_version} >= 1500
|
2020-02-19 09:58:35 +01:00
|
|
|
%pre -f squid.pre
|
2020-11-05 17:30:46 +01:00
|
|
|
%else
|
2022-02-08 14:46:41 +01:00
|
|
|
|
2020-11-05 17:30:46 +01:00
|
|
|
%pre
|
|
|
|
# we need this group for /usr/sbin/pinger
|
|
|
|
getent group %{name} >/dev/null || %{_sbindir}/groupadd -g 31 -r %{name}
|
|
|
|
# we need this group for squid (ntlmauth)
|
|
|
|
# read access to /var/lib/samba/winbindd_privileged
|
|
|
|
getent group winbind >/dev/null || %{_sbindir}/groupadd -r winbind
|
|
|
|
getent passwd squid >/dev/null || \
|
|
|
|
%{_sbindir}/useradd -c "WWW-proxy squid" -d %{_localstatedir}/cache/%{name} \
|
|
|
|
-G winbind -g %{name} -o -u 31 -r -s /bin/false \
|
|
|
|
%{name}
|
|
|
|
# if default group is not squid, change it
|
|
|
|
if [ "$(%{_bindir}/id -ng %{name} 2>/dev/null)" != "%{name}" ]; then
|
|
|
|
%{_sbindir}/usermod -g %{name} %{name}
|
|
|
|
fi
|
|
|
|
# if squid is not member of winbind, add him
|
|
|
|
if [ $(%{_bindir}/id -nG %{name} 2>/dev/null | grep -q winbind; echo $?) -ne 0 ]; then
|
|
|
|
%{_sbindir}/usermod -G winbind %{name}
|
|
|
|
fi
|
|
|
|
%endif
|
2015-10-15 17:08:57 +02:00
|
|
|
%service_add_pre %{name}.service
|
2022-09-26 12:29:20 +02:00
|
|
|
%if 0%{?suse_version} > 1500
|
|
|
|
# Prepare for migration to /usr/etc; save any old .rpmsave
|
2023-01-04 15:36:50 +01:00
|
|
|
for i in logrotate.d/%{name} pam.d/%{name} ; do
|
2022-09-26 12:29:20 +02:00
|
|
|
test -f %{_sysconfdir}/${i}.rpmsave && mv -v %{_sysconfdir}/${i}.rpmsave %{_sysconfdir}/${i}.rpmsave.old ||:
|
|
|
|
done
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if 0%{?suse_version} > 1500
|
|
|
|
%posttrans
|
|
|
|
# Migration to /usr/etc, restore just created .rpmsave
|
2023-01-04 15:36:50 +01:00
|
|
|
for i in logrotate.d/%{name} pam.d/%{name} ; do
|
2022-09-26 12:29:20 +02:00
|
|
|
test -f %{_sysconfdir}/${i}.rpmsave && mv -v %{_sysconfdir}/${i}.rpmsave %{_sysconfdir}/${i} ||:
|
|
|
|
done
|
|
|
|
%endif
|
2015-10-15 17:08:57 +02:00
|
|
|
|
2015-08-10 14:29:31 +02:00
|
|
|
# update mode?
|
|
|
|
if [ "$1" -gt "1" ]; then
|
|
|
|
if [ -e %{_sysconfdir}/%{name}.conf -a ! -L %{_sysconfdir}/%{name}.conf -a ! -e %{_sysconfdir}/%{name}/%{name}.conf ]; then
|
|
|
|
echo "moving %{_sysconfdir}/%{name}.conf to %{_sysconfdir}/%{name}/%{name}.conf"
|
2015-12-09 11:01:10 +01:00
|
|
|
mv %{_sysconfdir}/%{name}.conf %{_sysconfdir}/%{name}/%{name}.conf
|
2015-08-10 14:29:31 +02:00
|
|
|
fi
|
|
|
|
fi
|
2015-12-09 11:01:10 +01:00
|
|
|
|
2012-10-22 21:07:11 +02:00
|
|
|
%post
|
2020-11-05 17:30:46 +01:00
|
|
|
%set_permissions %{squidhelperdir}/pinger
|
2014-11-27 21:53:15 +01:00
|
|
|
%set_permissions %{_localstatedir}/cache/squid/
|
|
|
|
%set_permissions %{_localstatedir}/log/squid/
|
2018-10-23 15:55:38 +02:00
|
|
|
%tmpfiles_create %{_tmpfilesdir}/squid.conf
|
2012-10-22 21:07:11 +02:00
|
|
|
%service_add_post squid.service
|
|
|
|
|
2014-11-27 21:53:15 +01:00
|
|
|
%preun
|
2012-10-22 21:07:11 +02:00
|
|
|
%service_del_preun squid.service
|
|
|
|
|
|
|
|
%verifyscript
|
2020-11-05 17:30:46 +01:00
|
|
|
%verify_permissions -e %{squidhelperdir}/pinger
|
2015-01-09 11:36:46 +01:00
|
|
|
%verify_permissions -e %{_localstatedir}/cache/squid/
|
|
|
|
%verify_permissions -e %{_localstatedir}/log/squid/
|
2014-08-10 19:56:45 +02:00
|
|
|
|
2015-01-02 16:04:06 +01:00
|
|
|
%postun
|
2014-11-27 21:53:15 +01:00
|
|
|
%service_del_postun squid.service
|
2012-10-22 21:07:11 +02:00
|
|
|
|
|
|
|
%files
|
2020-11-05 17:30:46 +01:00
|
|
|
%ghost %dir %{_rundir}/%{name}
|
2018-03-29 10:40:02 +02:00
|
|
|
%license COPYING
|
|
|
|
%doc ChangeLog CONTRIBUTORS CREDITS
|
2012-10-22 21:07:11 +02:00
|
|
|
%doc QUICKSTART README RELEASENOTES.html SPONSORS*
|
|
|
|
%doc README.kerberos
|
|
|
|
%doc doc/contrib doc/scripts
|
|
|
|
%doc doc/debug-sections.txt src/%{name}.conf.default
|
2017-06-16 14:39:53 +02:00
|
|
|
%{_mandir}/man?/*
|
2012-10-22 21:07:11 +02:00
|
|
|
%{_unitdir}/%{name}.service
|
2020-11-05 17:30:46 +01:00
|
|
|
%{squidlibexecdir}/initialize_cache_if_needed.sh
|
|
|
|
%{squidlibexecdir}/cache_dir.sed
|
2014-08-10 19:56:45 +02:00
|
|
|
%verify(not user group mode) %attr(750,%{name},root) %dir %{_localstatedir}/cache/%{name}/
|
|
|
|
%verify(not user group mode) %attr(750,%{name},root) %dir %{_localstatedir}/log/%{name}/
|
2012-10-22 21:07:11 +02:00
|
|
|
%dir %{squidconfdir}
|
2018-10-23 15:55:38 +02:00
|
|
|
%dir %{_tmpfilesdir}
|
2020-11-05 17:30:46 +01:00
|
|
|
%dir %{_libexecdir}/%{name}
|
2018-10-23 15:55:38 +02:00
|
|
|
%{_tmpfilesdir}/squid.conf
|
2021-05-18 14:44:03 +02:00
|
|
|
%if 0%{?suse_version} >= 1500
|
2020-02-19 09:58:35 +01:00
|
|
|
%{_sysusersdir}/squid-user.conf
|
2021-05-18 14:44:03 +02:00
|
|
|
%endif
|
2012-10-22 21:07:11 +02:00
|
|
|
%config(noreplace) %{squidconfdir}/cachemgr.conf
|
|
|
|
%config(noreplace) %{squidconfdir}/errorpage.css
|
|
|
|
%config(noreplace) %{squidconfdir}/errors
|
2022-06-29 19:56:59 +02:00
|
|
|
%if 0%{?suse_version} > 1500
|
|
|
|
%{_distconfdir}/logrotate.d/%{name}
|
|
|
|
%else
|
2012-10-22 21:07:11 +02:00
|
|
|
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
|
2022-06-29 19:56:59 +02:00
|
|
|
%endif
|
2012-10-22 21:07:11 +02:00
|
|
|
%config(noreplace) %{squidconfdir}/mime.conf
|
|
|
|
%config(noreplace) %{squidconfdir}/%{name}.conf
|
|
|
|
%config %{squidconfdir}/cachemgr.conf.default
|
|
|
|
%config %{squidconfdir}/errorpage.css.default
|
|
|
|
%config %{squidconfdir}/%{name}.conf.default
|
|
|
|
%config %{squidconfdir}/%{name}.conf.documented
|
2023-01-04 15:36:50 +01:00
|
|
|
%if 0%{?suse_version} > 1500
|
|
|
|
%{_pam_vendordir}/%{name}
|
|
|
|
%else
|
2012-10-22 21:07:11 +02:00
|
|
|
%config %{_sysconfdir}/pam.d/%{name}
|
2023-01-04 15:36:50 +01:00
|
|
|
%endif
|
2012-10-22 21:07:11 +02:00
|
|
|
%dir %{_datadir}/%{name}
|
2015-10-15 17:08:57 +02:00
|
|
|
%dir %{_datadir}/snmp
|
|
|
|
%dir %{_datadir}/snmp/mibs
|
2012-10-22 21:07:11 +02:00
|
|
|
%{_datadir}/%{name}/errors
|
|
|
|
%{_datadir}/%{name}/icons
|
|
|
|
%{_datadir}/%{name}/mime.conf
|
|
|
|
%{_datadir}/%{name}/mime.conf.default
|
2015-10-15 17:08:57 +02:00
|
|
|
%{_datadir}/snmp/mibs/SQUID-MIB.txt
|
2013-12-25 22:46:51 +01:00
|
|
|
%{_bindir}/purge
|
|
|
|
%{_bindir}/squidclient
|
2020-08-10 08:02:07 +02:00
|
|
|
%{squidhelperdir}/basic_db_auth
|
|
|
|
%{squidhelperdir}/basic_fake_auth
|
|
|
|
%{squidhelperdir}/basic_getpwnam_auth
|
|
|
|
%{squidhelperdir}/basic_ldap_auth
|
|
|
|
%{squidhelperdir}/digest_edirectory_auth
|
|
|
|
%{squidhelperdir}/basic_ncsa_auth
|
|
|
|
%{squidhelperdir}/basic_nis_auth
|
|
|
|
%{squidhelperdir}/basic_pam_auth
|
|
|
|
%{squidhelperdir}/basic_pop3_auth
|
|
|
|
%{squidhelperdir}/basic_radius_auth
|
|
|
|
%{squidhelperdir}/basic_sasl_auth
|
|
|
|
%{squidhelperdir}/basic_smb_auth
|
|
|
|
%{squidhelperdir}/basic_smb_auth.sh
|
|
|
|
%{squidhelperdir}/basic_smb_lm_auth
|
|
|
|
%{squidhelperdir}/cert_tool
|
|
|
|
%{squidhelperdir}/digest_file_auth
|
|
|
|
%{squidhelperdir}/digest_ldap_auth
|
|
|
|
%{squidhelperdir}/diskd
|
|
|
|
%{squidhelperdir}/ext_edirectory_userip_acl
|
|
|
|
%{squidhelperdir}/ext_file_userip_acl
|
|
|
|
%{squidhelperdir}/ext_kerberos_ldap_group_acl
|
|
|
|
%{squidhelperdir}/ext_ldap_group_acl
|
|
|
|
%{squidhelperdir}/ext_session_acl
|
|
|
|
%{squidhelperdir}/ext_unix_group_acl
|
|
|
|
%{squidhelperdir}/ext_wbinfo_group_acl
|
|
|
|
%{squidhelperdir}/helper-mux
|
|
|
|
%{squidhelperdir}/log_db_daemon
|
|
|
|
%{squidhelperdir}/log_file_daemon
|
|
|
|
%{squidhelperdir}/negotiate_kerberos_auth
|
|
|
|
%{squidhelperdir}/negotiate_kerberos_auth_test
|
|
|
|
%{squidhelperdir}/negotiate_wrapper_auth
|
|
|
|
%{squidhelperdir}/ntlm_fake_auth
|
|
|
|
%{squidhelperdir}/ntlm_smb_lm_auth
|
|
|
|
%{squidhelperdir}/pinger
|
|
|
|
%{squidhelperdir}/security_fake_certverify
|
|
|
|
%{squidhelperdir}/security_file_certgen
|
|
|
|
%{squidhelperdir}/storeid_file_rewrite
|
|
|
|
%{squidhelperdir}/unlinkd
|
|
|
|
%{squidhelperdir}/url_fake_rewrite
|
|
|
|
%{squidhelperdir}/url_fake_rewrite.sh
|
|
|
|
%{squidhelperdir}/url_lfs_rewrite
|
|
|
|
%{squidhelperdir}/ext_time_quota_acl
|
|
|
|
%{_sbindir}/squid
|
|
|
|
%{_sbindir}/rcsquid
|
2020-11-05 17:30:46 +01:00
|
|
|
%if 0%{?suse_version} > 1500 || 0%{?sle_version} >= 150300
|
|
|
|
%dir %{squidhelperdir}
|
|
|
|
%{squidhelperdir}/cachemgr.cgi
|
|
|
|
%else
|
2012-10-22 21:07:11 +02:00
|
|
|
%dir %{_libdir}/%{name}
|
|
|
|
%{_libdir}/%{name}/cachemgr.cgi
|
2020-11-05 17:30:46 +01:00
|
|
|
%endif
|
2012-10-22 21:07:11 +02:00
|
|
|
|
|
|
|
%changelog
|