squid: update to 7.1
authorAleksey Vasilenko <[email protected]>
Thu, 28 Aug 2025 18:40:17 +0000 (21:40 +0300)
committerTianling Shen <[email protected]>
Sun, 31 Aug 2025 07:52:27 +0000 (15:52 +0800)
- Use GitHub for sources URL
- Remove autoreconf fixup (it works out-of-the-box)
- Remove squid-mod-cachemgr package since cachemgr.cgi was removed upstream
- Rename ac_cv_epoll_works to squid_cv_epoll_works to follow upstream
- Don't customize target CFLAGS and LDFLAGS (they work as is)
- Remove nettle configure patch - upstream handles it correctly now
- Remove dummy comment in config menu

Signed-off-by: Aleksey Vasilenko <[email protected]>
net/squid/Config.in
net/squid/Makefile
net/squid/files/squid.conf
net/squid/patches/020-fix-nettle-configure.patch [deleted file]

index 5c8901ef8d35aed1b0e7a3142e314de8b143b53a..30f40f1b2e924e6082d84b6a6913c88e67224763 100644 (file)
@@ -85,6 +85,4 @@ if PACKAGE_squid
                bool "Use libxml2 - Gnome XML library"
                default n
 
-       comment "Additional tools"
-
 endif
index 4c07483f2a567b7fa62d1f020f70ac9b4178b3ee..383a87280a640b9a3487d5fc1918da5c45fc1a97 100644 (file)
@@ -8,19 +8,17 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=squid
-PKG_VERSION:=6.11
-PKG_RELEASE:=2
+PKG_VERSION:=7.1
+PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
-PKG_SOURCE_URL:=http://www2.pl.squid-cache.org/Versions/v6/ \
-       http://www.squid-cache.org/Versions/v6/
-PKG_HASH:=b6e60c08429314287925331b3da6c03b7d3c35b7e03319f78edb8bad6fc68899
+PKG_SOURCE_URL:=https://github.com/squid-cache/squid/releases/download/SQUID_$(subst .,_,$(PKG_VERSION))
+PKG_HASH:=763b5a78561cedc4e47634fa42b8e6b8d46c87c949a151b4e7ac2396d2f97dea
 
 PKG_MAINTAINER:=Marko Ratkaj <[email protected]>
 PKG_LICENSE:=GPL-2.0-or-later
 PKG_CPE_ID:=cpe:/a:squid-cache:squid
 
-PKG_FIXUP:=autoreconf
 PKG_INSTALL:=1
 PKG_BUILD_PARALLEL:=1
 
@@ -61,12 +59,6 @@ define Package/squid/conffiles
 /etc/squid/squid.conf
 endef
 
-define Package/squid-mod-cachemgr
-  $(call Package/squid/Default)
-  DEPENDS:=squid
-  TITLE:=Web based proxy manager and reporting tool
-endef
-
 CONFIGURE_ARGS += \
        BUILDCXX=$(HOSTCXX_NOCACHE) \
        BUILDCXXFLAGS="$(HOST_CXXFLAGS) $(HOST_CPPFLAGS) -std=c++17" \
@@ -107,10 +99,7 @@ CONFIGURE_ARGS += \
 
 CONFIGURE_VARS += \
        ac_cv_header_linux_netfilter_ipv4_h=yes \
-       ac_cv_epoll_works=yes
-
-TARGET_CFLAGS += -Wno-error
-TARGET_LDFLAGS += -latomic
+       squid_cv_epoll_works=yes
 
 define Package/squid/install
        $(INSTALL_DIR) $(1)/usr/sbin
@@ -137,10 +126,4 @@ define Package/squid/install
        $(CP) $(PKG_INSTALL_DIR)/usr/share/squid/errors/templates/* $(1)/usr/share/squid/errors/templates/
 endef
 
-define Package/squid-mod-cachemgr/install
-       $(INSTALL_DIR) $(1)/www/cgi-bin/
-       $(CP) $(PKG_INSTALL_DIR)/usr/lib/squid/cachemgr.cgi $(1)/www/cgi-bin/
-endef
-
 $(eval $(call BuildPackage,squid))
-$(eval $(call BuildPackage,squid-mod-cachemgr))
index e3cab6ad534c7e5ee89e9df25cde993c1cf520e6..55cdea496c92bf84d75a6871de08477d98936686 100644 (file)
@@ -36,10 +36,6 @@ http_access deny !Safe_ports
 # Deny CONNECT to other than secure SSL ports
 http_access deny CONNECT !SSL_ports
 
-# Only allow cachemgr access from localhost
-http_access allow localhost manager
-http_access deny manager
-
 # We strongly recommend the following be uncommented to protect innocent
 # web applications running on the proxy server who think the only
 # one who can access services on "localhost" is a local user
diff --git a/net/squid/patches/020-fix-nettle-configure.patch b/net/squid/patches/020-fix-nettle-configure.patch
deleted file mode 100644 (file)
index 4ba5f48..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
---- a/configure.ac
-+++ b/configure.ac
-@@ -1033,7 +1033,7 @@ AC_MSG_NOTICE([HTCP support enabled: $en
- # Cryptograhic libraries
- SQUID_AUTO_LIB(nettle,[Nettle crypto],[LIBNETTLE])
--AS_IF(test "x$with_nettle" != "xno"],[
-+AS_IF([test "x$with_nettle" != "xno"],[
-   SQUID_STATE_SAVE(squid_nettle_state)
-   PKG_CHECK_MODULES([LIBNETTLE],[nettle >= 3.4],[],[
-     CPPFLAGS="$LIBNETTLE_CFLAGS $CPPFLAGS"