Skip to content

Commit

Permalink
https-dns-proxy: prepare migration to APK
Browse files Browse the repository at this point in the history
Signed-off-by: Stan Grishin <stangri@melmac.ca>
  • Loading branch information
stangri committed Mar 23, 2024
1 parent 6c3db5d commit f1dccc1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
9 changes: 5 additions & 4 deletions net/https-dns-proxy/Makefile
@@ -1,12 +1,13 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=https-dns-proxy
PKG_VERSION:=2023-11-19
PKG_RELEASE:=1
PKG_VERSION:=2023.11.19
PKG_RELEASE:=r1

PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/aarond10/https_dns_proxy/
PKG_SOURCE_DATE:=$(PKG_VERSION)
PKG_SOURCE_DATE:=$(subst(.,-,$(PKG_VERSION)))
PKG_SOURCE_RELEASE:=$(subst(r,,$(PKG_RELEASE)))
PKG_SOURCE_VERSION:=489c57efd46983e688579974a2ab7aeaa7df8d83
PKG_MIRROR_HASH:=6c8e0e158dfbfde29b1c22f1a1c90a7deae540111c26daac13c8fbb5a49081a5

Expand All @@ -17,7 +18,7 @@ PKG_LICENSE_FILES:=LICENSE
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk

CMAKE_OPTIONS += -DCLANG_TIDY_EXE= -DGIT_VERSION=$(PKG_VERSION)-$(PKG_RELEASE)
CMAKE_OPTIONS += -DCLANG_TIDY_EXE= -DGIT_VERSION=$(PKG_SOURCE_DATE)-$(PKG_SOURCE_RELEASE)

define Package/https-dns-proxy
SECTION:=net
Expand Down
2 changes: 2 additions & 0 deletions net/https-dns-proxy/files/etc/init.d/https-dns-proxy
Expand Up @@ -300,7 +300,9 @@ service_triggers() {
local wan wan6 i
local procd_trigger_wan6
if [ "$on_boot_trigger" = '1' ]; then
output "Setting $serviceName raw_trigger for 'interface.*.up'"
procd_add_raw_trigger "interface.*.up" 3000 "/etc/init.d/${packageName}" restart 'on_interface_up'
output_okn
else
config_load "$packageName"
config_get_bool procd_trigger_wan6 'config' 'procd_trigger_wan6' '0'
Expand Down
Expand Up @@ -5,7 +5,7 @@
return SW_VERSION;
#else
- return "2023.10.10-atLeast"; // update date sometimes, like 1-2 times a year
+ return "2023-11-19-1"; // update date sometimes, like 1-2 times a year
+ return "2023.11.19$(subst(.,-,$(PKG_VERSION)))-r1"; // update date sometimes, like 1-2 times a year
#endif
}

0 comments on commit f1dccc1

Please sign in to comment.