2016-05-03 04:22:33 +00:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
2019-12-10 22:48:45 +00:00
|
|
|
PKG_NAME:=https-dns-proxy
|
2023-10-26 14:39:06 +00:00
|
|
|
PKG_VERSION:=2023-10-25
|
2023-12-11 13:18:21 +00:00
|
|
|
PKG_RELEASE:=5
|
2016-05-03 04:22:33 +00:00
|
|
|
|
|
|
|
PKG_SOURCE_PROTO:=git
|
2021-07-30 00:02:33 +00:00
|
|
|
PKG_SOURCE_URL:=https://github.com/aarond10/https_dns_proxy/
|
2022-12-07 20:59:28 +00:00
|
|
|
PKG_SOURCE_DATE:=$(PKG_VERSION)
|
2023-10-26 14:39:06 +00:00
|
|
|
PKG_SOURCE_VERSION:=977341a4e35a37ee454e97e82caf4276b1b4961a
|
|
|
|
PKG_MIRROR_HASH:=8622846f1038ac05436a48d9b36a07c516cbb6504ce68e7ee8c5529788fac39b
|
2023-11-23 22:38:12 +00:00
|
|
|
|
2022-01-31 21:42:59 +00:00
|
|
|
PKG_MAINTAINER:=Stan Grishin <stangri@melmac.ca>
|
2016-05-03 04:22:33 +00:00
|
|
|
PKG_LICENSE:=MIT
|
2019-07-24 14:06:30 +00:00
|
|
|
PKG_LICENSE_FILES:=LICENSE
|
2016-05-03 04:22:33 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2021-06-10 23:27:06 +00:00
|
|
|
include $(INCLUDE_DIR)/cmake.mk
|
2016-05-03 04:22:33 +00:00
|
|
|
|
2022-10-24 21:39:06 +00:00
|
|
|
CMAKE_OPTIONS += -DCLANG_TIDY_EXE= -DGIT_VERSION=$(PKG_VERSION)-$(PKG_RELEASE)
|
2019-08-12 12:56:52 +00:00
|
|
|
|
2019-12-10 22:48:45 +00:00
|
|
|
define Package/https-dns-proxy
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
TITLE:=DNS Over HTTPS Proxy
|
2021-01-18 15:27:42 +00:00
|
|
|
URL:=https://docs.openwrt.melmac.net/https-dns-proxy/
|
2022-10-25 21:34:25 +00:00
|
|
|
DEPENDS:=+libcares +libcurl +libev +ca-bundle +jsonfilter
|
2023-10-17 09:43:34 +00:00
|
|
|
DEPENDS+=+!BUSYBOX_DEFAULT_GREP:grep
|
|
|
|
DEPENDS+=+!BUSYBOX_DEFAULT_SED:sed
|
2019-12-10 22:48:45 +00:00
|
|
|
CONFLICTS:=https_dns_proxy
|
2016-05-03 04:22:33 +00:00
|
|
|
endef
|
|
|
|
|
2020-06-26 03:09:26 +00:00
|
|
|
define Package/https-dns-proxy/description
|
2022-11-22 01:14:13 +00:00
|
|
|
Light-weight DNS-over-HTTPS, non-caching translation proxy for the RFC 8484 DoH standard.
|
|
|
|
It receives regular (UDP) DNS requests and resolves them via DoH resolver.
|
2021-01-18 15:27:42 +00:00
|
|
|
Please see https://docs.openwrt.melmac.net/https-dns-proxy/ for more information.
|
2020-06-26 03:09:26 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/https-dns-proxy/conffiles
|
|
|
|
/etc/config/https-dns-proxy
|
|
|
|
endef
|
|
|
|
|
2019-12-10 22:48:45 +00:00
|
|
|
define Package/https-dns-proxy/install
|
2022-01-31 21:42:59 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
2023-09-03 20:33:17 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/https_dns_proxy $(1)/usr/sbin/https-dns-proxy
|
2022-01-31 21:42:59 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
2023-09-03 20:33:17 +00:00
|
|
|
$(INSTALL_BIN) ./files/etc/init.d/https-dns-proxy $(1)/etc/init.d/https-dns-proxy
|
|
|
|
$(SED) "s|^\(readonly PKG_VERSION\).*|\1='$(PKG_VERSION)-$(PKG_RELEASE)'|" $(1)/etc/init.d/https-dns-proxy
|
2022-10-25 21:34:25 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/config
|
2023-09-03 20:33:17 +00:00
|
|
|
$(INSTALL_CONF) ./files/etc/config/https-dns-proxy $(1)/etc/config/https-dns-proxy
|
2022-10-25 21:34:25 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/uci-defaults/
|
2023-09-03 20:33:17 +00:00
|
|
|
$(INSTALL_BIN) ./files/etc/uci-defaults/50-https-dns-proxy-migrate-options.sh $(1)/etc/uci-defaults/50-https-dns-proxy-migrate-options.sh
|
2016-05-03 04:22:33 +00:00
|
|
|
endef
|
|
|
|
|
2019-12-10 22:48:45 +00:00
|
|
|
$(eval $(call BuildPackage,https-dns-proxy))
|