From patchwork Thu Feb 16 16:17:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Schantl X-Patchwork-Id: 6536 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4PHg8f0wFqz3xDh for ; Thu, 16 Feb 2023 16:17:54 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4PHg8b4yT6z9NM; Thu, 16 Feb 2023 16:17:51 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4PHg8b3m0Jz2xfn; Thu, 16 Feb 2023 16:17:51 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4PHg8X0dkBz2xYk for ; Thu, 16 Feb 2023 16:17:48 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4PHg8W3QNgz1p7; Thu, 16 Feb 2023 16:17:47 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1676564267; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=rfixiJof7QgwGTiNZoGeRjQln61lxXAbu/ywZ3neZK0=; b=AOK1XmlSyGZa4sIkL1g1csAoj7nTQRoHXUoShVXnNuhTelRyEFS53cpXafaMowtV3eAm2D /HvGEk28igfKIRCA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1676564267; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=rfixiJof7QgwGTiNZoGeRjQln61lxXAbu/ywZ3neZK0=; b=waXH8PGKAoMo9r1cmSc0+6RH0Vsbjgx6sCePkUQnenceBIhu97UR+6YXiiN63QRWxKyQnQ lvYMllsQXlarA+NlJkqc1HTZrakI+SeiFztR9B3R7jmSJyK+Yt7QL1uLVMmZUNEZWErLO3 93fyZAGe+kvonLRhkH7G9NAfaqhv0lvIYtVuTrt8r/QKhmI+gZFufs/cZk0ubv6THt993D Qf0tQYwuXbZfY8AVfHG7xkWCnJKPeb3HhgSz5hOrJRtX/cryLoJcCJ+OkkeeTteP8Db87w bC6bvbljGnAZSgTbJ8FmnY91L1Fz+Y7AlB52q2WJNBTI8EGxd5PmEqvpKj7txw== From: Stefan Schantl To: development@lists.ipfire.org Subject: [PATCH 5/5] squid: Update to 5.7 Date: Thu, 16 Feb 2023 17:17:34 +0100 Message-Id: <20230216161734.1027788-5-stefan.schantl@ipfire.org> In-Reply-To: <20230216161734.1027788-1-stefan.schantl@ipfire.org> References: <20230216161734.1027788-1-stefan.schantl@ipfire.org> MIME-Version: 1.0 X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: development-bounces@lists.ipfire.org Sender: "Development" Signed-off-by: Stefan Schantl --- .../patches/squid-3.0.STABLE1-perlpath.patch | 9 ---- squid/patches/squid-3.1.0.9-config.patch | 26 ------------ squid/patches/squid-3.1.0.9-location.patch | 41 ------------------- squid/squid.nm | 22 +++++----- 4 files changed, 10 insertions(+), 88 deletions(-) delete mode 100644 squid/patches/squid-3.0.STABLE1-perlpath.patch delete mode 100644 squid/patches/squid-3.1.0.9-config.patch delete mode 100644 squid/patches/squid-3.1.0.9-location.patch diff --git a/squid/patches/squid-3.0.STABLE1-perlpath.patch b/squid/patches/squid-3.0.STABLE1-perlpath.patch deleted file mode 100644 index 19b512e1d..000000000 --- a/squid/patches/squid-3.0.STABLE1-perlpath.patch +++ /dev/null @@ -1,9 +0,0 @@ -diff -up squid-3.0.STABLE1/contrib/url-normalizer.pl.perlpath squid-3.0.STABLE1/contrib/url-normalizer.pl ---- squid-3.0.STABLE1/contrib/url-normalizer.pl.perlpath 1996-12-06 18:54:31.000000000 +0100 -+++ squid-3.0.STABLE1/contrib/url-normalizer.pl 2008-01-23 12:07:50.000000000 +0100 -@@ -1,4 +1,4 @@ --#!/usr/local/bin/perl -Tw -+#!/usr/bin/perl -Tw - - # From: Markus Gyger - # diff --git a/squid/patches/squid-3.1.0.9-config.patch b/squid/patches/squid-3.1.0.9-config.patch deleted file mode 100644 index 09d7a156e..000000000 --- a/squid/patches/squid-3.1.0.9-config.patch +++ /dev/null @@ -1,26 +0,0 @@ -diff -up squid-3.0.STABLE9/src/cf.data.pre.config squid-3.0.STABLE9/src/cf.data.pre ---- squid-3.0.STABLE9/src/cf.data.pre.config 2008-09-09 18:06:44.000000000 +0200 -+++ squid-3.0.STABLE9/src/cf.data.pre 2008-10-19 23:34:17.000000000 +0200 -@@ -2135,7 +2136,7 @@ DOC_END - - NAME: logfile_rotate - TYPE: int --DEFAULT: 10 -+DEFAULT: 0 - LOC: Config.Log.rotateNumber - DOC_START - Specifies the number of logfile rotations to make when you -@@ -3254,11 +3256,11 @@ COMMENT_END - - NAME: cache_mgr - TYPE: string --DEFAULT: webmaster -+DEFAULT: root - LOC: Config.adminEmail - DOC_START - Email-address of local cache manager who will receive -- mail if the cache dies. The default is "webmaster." -+ mail if the cache dies. The default is "root." - DOC_END - - NAME: mail_from diff --git a/squid/patches/squid-3.1.0.9-location.patch b/squid/patches/squid-3.1.0.9-location.patch deleted file mode 100644 index 816b358bd..000000000 --- a/squid/patches/squid-3.1.0.9-location.patch +++ /dev/null @@ -1,41 +0,0 @@ -diff -up squid-3.1.0.9/QUICKSTART.location squid-3.1.0.9/QUICKSTART ---- squid-3.1.0.9/QUICKSTART.location 2009-06-26 12:35:27.000000000 +0200 -+++ squid-3.1.0.9/QUICKSTART 2009-07-17 14:03:10.000000000 +0200 -@@ -12,10 +12,9 @@ After you retrieved, compiled and instal - INSTALL in the same directory), you have to configure the squid.conf - file. This is the list of the values you *need* to change, because no - sensible defaults could be defined. Do not touch the other variables --for now. We assume you have installed Squid in the default location: --/usr/local/squid -+for now. - --Uncomment and edit the following lines in /usr/local/squid/etc/squid.conf: -+Uncomment and edit the following lines in /etc/squid/squid.conf: - - ============================================================================== - -@@ -56,7 +55,7 @@ cache_effective_user - Some configuration lines which are optional but may be needed. - - --cache_dir ufs /usr/local/squid/var/cache 100 16 256 -+cache_dir ufs /var/spool/squid 100 16 256 - - Add here (first number, here 100) the amount of hard disk space - (in megabytes) to devote to caching. -@@ -84,12 +83,12 @@ After editing squid.conf to your liking, - line TWICE: - - To create any disk cache_dir configured: -- % /usr/local/squid/sbin/squid -z -+ % /usr/sbin/squid -z - - To start squid: -- % /usr/local/squid/sbin/squid -+ % /usr/sbin/squid - --Check in the cache.log (/usr/local/squid/var/logs/cache.log) that -+Check in the cache.log (/var/log/squid/cache.log) that - everything is all right. - - Once Squid created all its files (it can take several minutes on some diff --git a/squid/squid.nm b/squid/squid.nm index 9db970596..ccd96c27c 100644 --- a/squid/squid.nm +++ b/squid/squid.nm @@ -4,14 +4,15 @@ ############################################################################### name = squid -major_ver = 3.1 -version = %{major_ver}.19 -release = 2 +major_ver = 5 +minor_ver = 7 +version = %{major_ver}.%{minor_ver} +release = 1 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, @@ -22,7 +23,7 @@ description 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%{ver_major}/ build requires @@ -33,8 +34,8 @@ build samba-devel pam-devel libcap-devel - /usr/bin/smbclient shadow-utils + systemd-devel end CFLAGS += -Wno-error @@ -58,9 +59,8 @@ build --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 \ @@ -71,7 +71,7 @@ build --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 \ @@ -148,8 +148,6 @@ packages /bin/systemctl try-restart squid.service >/dev/null 2>&1 || : end - requires = /usr/bin/smbclient - filter_requires = perl.Auth.* end