From 796a3dda800b0d17df06d87995148b934be15e5d Mon Sep 17 00:00:00 2001 From: Stan Grishin Date: Fri, 7 Oct 2022 06:26:21 +0000 Subject: [PATCH] https-dns-proxy: update to 2022-08-12-1 * update to upstream version 2022-08-12 * add ca_certs_file option for CA certs file for curl * add procd_add_interface_trigger for wan6 (hopefully fixes https://github.com/openwrt/packages/issues/19531) Signed-off-by: Stan Grishin --- net/https-dns-proxy/Makefile | 10 +++++----- net/https-dns-proxy/files/https-dns-proxy.init | 18 ++++++++++-------- .../patches/010-fix-cmakelists.patch | 4 ++-- 3 files changed, 17 insertions(+), 15 deletions(-) diff --git a/net/https-dns-proxy/Makefile b/net/https-dns-proxy/Makefile index b78c98dc5e..e3babf68f3 100644 --- a/net/https-dns-proxy/Makefile +++ b/net/https-dns-proxy/Makefile @@ -1,14 +1,14 @@ include $(TOPDIR)/rules.mk PKG_NAME:=https-dns-proxy -PKG_VERSION:=2021-11-22 -PKG_RELEASE:=7 +PKG_VERSION:=2022-08-12 +PKG_RELEASE:=1 PKG_SOURCE_PROTO:=git PKG_SOURCE_URL:=https://github.com/aarond10/https_dns_proxy/ -PKG_SOURCE_DATE:=2021-11-22 -PKG_SOURCE_VERSION:=9336fd6272d67e8bb6e304fa54f3139a3d26f08f -PKG_MIRROR_HASH:=60b1ddabaf1db3a9ee19f3294a1df714364d580cef5e3c2161363c371a557456 +PKG_SOURCE_DATE:=2022-08-12 +PKG_SOURCE_VERSION:=a344d192e22e0c133aecfd766fefa7474cf2594f +PKG_MIRROR_HASH:=d3de80df13157e1f5066689880a7132532895d24b36f16c9f0b2acf764cf773f PKG_MAINTAINER:=Stan Grishin PKG_LICENSE:=MIT PKG_LICENSE_FILES:=LICENSE diff --git a/net/https-dns-proxy/files/https-dns-proxy.init b/net/https-dns-proxy/files/https-dns-proxy.init index 6bb44512ba..f1a980c411 100755 --- a/net/https-dns-proxy/files/https-dns-proxy.init +++ b/net/https-dns-proxy/files/https-dns-proxy.init @@ -135,13 +135,14 @@ start_instance() { local cfg="$1" param listen_addr listen_port ipv6_resolvers_only p config_get_bool ipv6_resolvers_only "$cfg" 'use_ipv6_resolvers_only' '0' append_parm "$cfg" 'resolver_url' '-r' - append_parm "$cfg" 'polling_interval' '-i' append_parm "$cfg" 'listen_addr' '-a' '127.0.0.1' append_parm "$cfg" 'listen_port' '-p' "$port" append_parm "$cfg" 'dscp_codepoint' '-c' append_bootstrap "$cfg" 'bootstrap_dns' '-b' "$DEFAULT_BOOTSTRAP" append_parm "$cfg" 'user' '-u' 'nobody' append_parm "$cfg" 'group' '-g' 'nogroup' + append_parm "$cfg" 'ca_certs_file' '-C' + append_parm "$cfg" 'polling_interval' '-i' append_parm "$cfg" 'proxy_server' '-t' append_parm "$cfg" 'logfile' '-l' append_bool "$cfg" 'use_http1' '-x' @@ -246,15 +247,16 @@ stop_service() { } # shellcheck disable=SC1091 -service_triggers() { - local iface +service_triggers() { + local wan wan6 i . /lib/functions/network.sh network_flush_cache - network_find_wan iface - iface="${iface:-wan}" - if [ -n "$iface" ]; then - procd_add_interface_trigger "interface.*" "$iface" "/etc/init.d/${packageName}" restart - fi + network_find_wan wan + network_find_wan6 wan6 + wan="${wan:-wan}" + for i in "$wan" "$wan6"; do + procd_add_interface_trigger "interface.*" "$i" "/etc/init.d/${packageName}" restart + done procd_add_config_trigger "config.change" "$packageName" "/etc/init.d/${packageName}" restart } diff --git a/net/https-dns-proxy/patches/010-fix-cmakelists.patch b/net/https-dns-proxy/patches/010-fix-cmakelists.patch index 106142579c..a765a5bbd7 100644 --- a/net/https-dns-proxy/patches/010-fix-cmakelists.patch +++ b/net/https-dns-proxy/patches/010-fix-cmakelists.patch @@ -1,7 +1,7 @@ --- a/CMakeLists.txt +++ b/CMakeLists.txt -@@ -21,9 +21,9 @@ if(NOT CMAKE_BUILD_TYPE) - message(STATUS "Setting build type to '${CMAKE_BUILD_TYPE}' as none was specified.") +@@ -25,9 +25,9 @@ if (NOT CMAKE_INSTALL_BINDIR) + set(CMAKE_INSTALL_BINDIR bin) endif() -set(CMAKE_C_FLAGS "-Wall -Wextra --pedantic -Wno-strict-aliasing -Wno-variadic-macros") -- 2.30.2