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_LICENSE:=GPL-2.0-or-later
PKG_CPE_ID:=cpe:/a:squid-cache:squid
-PKG_FIXUP:=autoreconf
PKG_INSTALL:=1
PKG_BUILD_PARALLEL:=1
/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" \
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
$(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))
# 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
+++ /dev/null
---- 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"