2016-05-03 06:22:33 +02:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
2019-12-10 23:48:45 +01:00
|
|
|
PKG_NAME:=https-dns-proxy
|
2024-03-02 01:13:49 +01:00
|
|
|
PKG_VERSION:=2023-11-19
|
|
|
|
PKG_RELEASE:=1
|
2016-05-03 06:22:33 +02:00
|
|
|
|
|
|
|
PKG_SOURCE_PROTO:=git
|
2021-07-30 02:02:33 +02:00
|
|
|
PKG_SOURCE_URL:=https://github.com/aarond10/https_dns_proxy/
|
2022-12-07 21:59:28 +01:00
|
|
|
PKG_SOURCE_DATE:=$(PKG_VERSION)
|
2024-03-02 01:13:49 +01:00
|
|
|
PKG_SOURCE_VERSION:=489c57efd46983e688579974a2ab7aeaa7df8d83
|
|
|
|
PKG_MIRROR_HASH:=6c8e0e158dfbfde29b1c22f1a1c90a7deae540111c26daac13c8fbb5a49081a5
|
2023-11-23 23:38:12 +01:00
|
|
|
|
2022-01-31 22:42:59 +01:00
|
|
|
PKG_MAINTAINER:=Stan Grishin <stangri@melmac.ca>
|
2016-05-03 06:22:33 +02:00
|
|
|
PKG_LICENSE:=MIT
|
2019-07-24 16:06:30 +02:00
|
|
|
PKG_LICENSE_FILES:=LICENSE
|
2016-05-03 06:22:33 +02:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2021-06-11 01:27:06 +02:00
|
|
|
include $(INCLUDE_DIR)/cmake.mk
|
2016-05-03 06:22:33 +02:00
|
|
|
|
2022-10-24 23:39:06 +02:00
|
|
|
CMAKE_OPTIONS += -DCLANG_TIDY_EXE= -DGIT_VERSION=$(PKG_VERSION)-$(PKG_RELEASE)
|
2019-08-12 14:56:52 +02:00
|
|
|
|
2019-12-10 23:48:45 +01:00
|
|
|
define Package/https-dns-proxy
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
TITLE:=DNS Over HTTPS Proxy
|
2021-01-18 16:27:42 +01:00
|
|
|
URL:=https://docs.openwrt.melmac.net/https-dns-proxy/
|
2024-03-02 01:13:49 +01:00
|
|
|
DEPENDS:=+libcares +libcurl +libev +ca-bundle +jsonfilter +resolveip
|
2023-10-17 11:43:34 +02:00
|
|
|
DEPENDS+=+!BUSYBOX_DEFAULT_GREP:grep
|
|
|
|
DEPENDS+=+!BUSYBOX_DEFAULT_SED:sed
|
2019-12-10 23:48:45 +01:00
|
|
|
CONFLICTS:=https_dns_proxy
|
2016-05-03 06:22:33 +02:00
|
|
|
endef
|
|
|
|
|
2020-06-26 05:09:26 +02:00
|
|
|
define Package/https-dns-proxy/description
|
2022-11-22 02:14:13 +01: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 16:27:42 +01:00
|
|
|
Please see https://docs.openwrt.melmac.net/https-dns-proxy/ for more information.
|
2020-06-26 05:09:26 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/https-dns-proxy/conffiles
|
|
|
|
/etc/config/https-dns-proxy
|
|
|
|
endef
|
|
|
|
|
2019-12-10 23:48:45 +01:00
|
|
|
define Package/https-dns-proxy/install
|
2022-01-31 22:42:59 +01:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
2023-09-03 22:33:17 +02:00
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/https_dns_proxy $(1)/usr/sbin/https-dns-proxy
|
2022-01-31 22:42:59 +01:00
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
2023-09-03 22:33:17 +02: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 23:34:25 +02:00
|
|
|
$(INSTALL_DIR) $(1)/etc/config
|
2023-09-03 22:33:17 +02:00
|
|
|
$(INSTALL_CONF) ./files/etc/config/https-dns-proxy $(1)/etc/config/https-dns-proxy
|
2022-10-25 23:34:25 +02:00
|
|
|
$(INSTALL_DIR) $(1)/etc/uci-defaults/
|
2023-09-03 22:33:17 +02: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 06:22:33 +02:00
|
|
|
endef
|
|
|
|
|
2019-12-10 23:48:45 +01:00
|
|
|
$(eval $(call BuildPackage,https-dns-proxy))
|