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
|
2021-06-04 23:33:56 +00:00
|
|
|
PKG_VERSION:=2021-06-03
|
|
|
|
PKG_RELEASE:=1
|
2016-05-03 04:22:33 +00:00
|
|
|
|
|
|
|
PKG_SOURCE_PROTO:=git
|
2019-07-24 14:06:30 +00:00
|
|
|
PKG_SOURCE_URL:=https://github.com/aarond10/https_dns_proxy
|
2021-06-04 23:33:56 +00:00
|
|
|
PKG_SOURCE_DATE:=2021-06-03
|
|
|
|
PKG_SOURCE_VERSION:=5651b984f770a8bcecb14aeffc224703f8f82586
|
|
|
|
PKG_MIRROR_HASH:=b65161936269aa3117debad0fcfce157024726b78d7e7da77c226f7aa8da5b4d
|
2019-12-10 22:48:45 +00:00
|
|
|
PKG_MAINTAINER:=Stan Grishin <stangri@melmac.net>
|
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-03-25 22:55:33 +00:00
|
|
|
include ../../devel/ninja/ninja-cmake.mk
|
2016-05-03 04:22:33 +00:00
|
|
|
|
2019-08-12 12:56:52 +00:00
|
|
|
CMAKE_OPTIONS += -DCLANG_TIDY_EXE=
|
|
|
|
|
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/
|
2019-12-10 22:48:45 +00:00
|
|
|
DEPENDS:=+libcares +libcurl +libev +ca-bundle
|
|
|
|
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
|
2020-09-28 20:10:30 +00:00
|
|
|
https-dns-proxy is a light-weight DNS<-->HTTPS, non-caching translation proxy for the RFC 8484 DoH standard.
|
|
|
|
It receives regular (UDP) DNS requests and issues them via DoH.
|
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
|
2016-05-03 04:22:33 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin $(1)/etc/init.d ${1}/etc/config
|
2019-12-10 22:48:45 +00:00
|
|
|
$(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
|
2021-02-10 05:59:10 +00:00
|
|
|
$(SED) "s|^\(PKG_VERSION\).*|\1='$(PKG_VERSION)-$(PKG_RELEASE)'|" $(1)/etc/init.d/https-dns-proxy
|
2019-12-10 22:48:45 +00:00
|
|
|
$(INSTALL_CONF) ./files/https-dns-proxy.config $(1)/etc/config/https-dns-proxy
|
2016-05-03 04:22:33 +00:00
|
|
|
endef
|
|
|
|
|
2019-12-10 22:48:45 +00:00
|
|
|
$(eval $(call BuildPackage,https-dns-proxy))
|