###############################################################################
name = squid
-major_ver = 3.1
-version = %{major_ver}.16
-release = 4
+major_ver = 5
+minor_ver = 7
+version = %{major_ver}.%{minor_ver}
+release = 1.1
-maintainer = Christian Schmidt <christian.schmidt@ipfire.org>
groups = Networking/Daemons
-url = http://www.squid-cache.org/
+url = https://www.squid-cache.org/
license = GPLv2+
-summary = The Squid proxy caching server.
+summary = The Squid proxy caching server
description
Squid is a high-performance proxy caching server for Web clients,
DNS lookups, and implements negative caching of failed requests.
end
-source_dl = http://www.squid-cache.org/Versions/v3/%{major_ver}/
+source_dl = http://www.squid-cache.org/Versions/v%{major_ver}/
build
requires
openssl-devel
openldap-devel
samba-devel
- iptables-devel
pam-devel
libcap-devel
- /usr/bin/smbclient
shadow-utils
+ systemd-devel
end
CFLAGS += -Wno-error
--enable-kill-parent-hack \
--enable-snmp \
--enable-arp-acl \
- --enable-ipf-transparent \
--enable-htcp \
- --enable-ssl \
+ --disable-ssl \
--enable-forw-via-db \
--disable-cache-digests \
--enable-poll \
--enable-linux-netfilter \
--disable-ident-lookups \
--enable-internal-dns \
- --enable-auth=basic,ntlm \
+ --enable-auth \
--enable-basic-auth-helpers="LDAP,MSNT,multi-domain-NTLM,PAM,NCSA,SMB,squid_radius_auth" \
--enable-ntlm-auth-helpers="smb_lm,no_check,fakeauth" \
--enable-ntlm-fail-open \
echo "visible_hostname %{DISTRO_NAME}" >> %{BUILDROOT}/etc/squid/squid.conf
echo "cache_effective_user squid" >> %{BUILDROOT}/etc/squid/squid.conf
echo "cache_effective_group squid" >> %{BUILDROOT}/etc/squid/squid.conf
-
+
chown -Rv squid:squid %{BUILDROOT}/var/log/squid %{BUILDROOT}/var/log/cache %{BUILDROOT}/var/cache/squid
chmod 600 %{BUILDROOT}/var/cache/squid
mkdir -pv %{BUILDROOT}/etc/sysconfig
packages
package %{name}
- prerequires = shadow-utils systemd-units
+ prerequires
+ shadow-utils
+ systemd-units
+ end
configfiles
/etc/squid.conf
/bin/systemctl try-restart squid.service >/dev/null 2>&1 || :
end
- requires = /usr/bin/smbclient
+ filter_requires = perl.Auth.*
+ end
- filter_requires = perl\(Authen::Smb\)
+ package %{name}-debuginfo
+ template DEBUGINFO
end
end