summaryrefslogtreecommitdiff
path: root/net/https-dns-proxy/Makefile
diff options
context:
space:
mode:
authorStan Grishin <stangri@melmac.ca>2022-10-25 21:34:25 +0000
committerStan Grishin <stangri@melmac.ca>2022-10-25 21:36:15 +0000
commit6bd055284c4f1f633e3d1cd857dc14adbe27c2f5 (patch)
treef5cdaffff478ab28d197c3a6bc46cfdb53798689 /net/https-dns-proxy/Makefile
parent52570d4242822e3db678f5484c2ca3e72f485d52 (diff)
https-dns-proxy: rename options
* rename wan6_trigger to procd_trigger_wan6 * rename update_dnsmasq_config to dnsmasq_config_update * add the uci-defaults file to run sed on config file * update Makefile to include uci-defaults file Signed-off-by: Stan Grishin <stangri@melmac.ca>
Diffstat (limited to 'net/https-dns-proxy/Makefile')
-rw-r--r--net/https-dns-proxy/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/net/https-dns-proxy/Makefile b/net/https-dns-proxy/Makefile
index cbd8094e4..72bf1cef9 100644
--- a/net/https-dns-proxy/Makefile
+++ b/net/https-dns-proxy/Makefile
@@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=https-dns-proxy
PKG_VERSION:=2022-10-15
-PKG_RELEASE:=6
+PKG_RELEASE:=7
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/aarond10/https_dns_proxy/
@@ -23,7 +23,7 @@ define Package/https-dns-proxy
CATEGORY:=Network
TITLE:=DNS Over HTTPS Proxy
URL:=https://docs.openwrt.melmac.net/https-dns-proxy/
- DEPENDS:=+libcares +libcurl +libev +ca-bundle
+ DEPENDS:=+libcares +libcurl +libev +ca-bundle +jsonfilter
CONFLICTS:=https_dns_proxy
endef
@@ -40,12 +40,14 @@ endef
define Package/https-dns-proxy/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_DIR) $(1)/etc/init.d
- $(INSTALL_DIR) ${1}/etc/config
+ $(INSTALL_DIR) $(1)/etc/config
$(INSTALL_DIR) $(1)/etc/hotplug.d/iface
+ $(INSTALL_DIR) $(1)/etc/uci-defaults/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/https_dns_proxy $(1)/usr/sbin/https-dns-proxy
$(INSTALL_BIN) ./files/https-dns-proxy.init $(1)/etc/init.d/https-dns-proxy
$(SED) "s|^\(readonly PKG_VERSION\).*|\1='$(PKG_VERSION)-$(PKG_RELEASE)'|" $(1)/etc/init.d/https-dns-proxy
$(INSTALL_CONF) ./files/https-dns-proxy.config $(1)/etc/config/https-dns-proxy
+ $(INSTALL_BIN) ./files/https-dns-proxy.defaults $(1)/etc/uci-defaults/50-https-dns-proxy-migrate-options.sh
endef
$(eval $(call BuildPackage,https-dns-proxy))