luci-app-https-dns-proxy: prepare migration to APK 7016/head
authorStan Grishin <stangri@melmac.ca>
Sat, 23 Mar 2024 01:14:38 +0000 (01:14 +0000)
committerStan Grishin <stangri@melmac.ca>
Sat, 23 Mar 2024 01:29:16 +0000 (01:29 +0000)
Signed-off-by: Stan Grishin <stangri@melmac.ca>
(cherry picked from commit 1efb3cd5f898e41148b298ae6ecdec4a7ae558f8)

applications/luci-app-https-dns-proxy/Makefile
applications/luci-app-https-dns-proxy/root/usr/libexec/rpcd/luci.https-dns-proxy

index 3e6209c1373a80bec7a0d192d24d9e4516b052ca..4ef756b7191622d90b9c0de27c7b3cf2a1959d57 100644 (file)
@@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_LICENSE:=GPL-3.0-or-later
 PKG_MAINTAINER:=Stan Grishin <stangri@melmac.ca>
-PKG_VERSION:=2023-11-19-1
+PKG_VERSION:=2023.11.19-r1
 
 LUCI_TITLE:=DNS Over HTTPS Proxy Web UI
 LUCI_DESCRIPTION:=Provides Web UI for DNS Over HTTPS Proxy
index 593af173fc6bbd6306f19680b5bd2d4a8d2356ab..3a05b33a3afff3264338a3f079f638897e0cd687 100755 (executable)
@@ -19,7 +19,7 @@ readonly providersDir="/usr/share/${packageName}/providers"
 
 is_enabled() { "/etc/init.d/${1}" enabled; }
 is_running() { [ "$(ubus call service list "{ 'name': '$1' }" | jsonfilter -q -e "@['$1'].instances[*].running" | uniq)" = 'true' ]; }
-get_version() { grep -m1 -A2 -w "^Package: $1$" /usr/lib/opkg/status | sed -n 's/Version: //p'; }
+get_version() { /usr/sbin/https-dns-proxy -V; }
 check_http2() { curl --version | grep -q 'nghttp2'; }
 check_http3() { curl --version | grep -q 'nghttp3'; }
 ubus_get_ports() { ubus call service list "{ 'name': '$packageName' }" | jsonfilter -e "@['${packageName}'].instances[*].data.firewall.*.dest_port"; }