You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1.5 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=https-dns-proxy
  3. PKG_VERSION:=2020-04-09
  4. PKG_RELEASE=3
  5. PKG_SOURCE_PROTO:=git
  6. PKG_SOURCE_URL:=https://github.com/aarond10/https_dns_proxy
  7. PKG_SOURCE_DATE:=2020-04-09
  8. PKG_SOURCE_VERSION:=40647ce94c62a47e9d53efae8018fb3142e277b9
  9. PKG_MIRROR_HASH:=4a8052b8bd482a17b769bcd4ee2620368f8c91955c5e976088be8d2ab002dde6
  10. PKG_MAINTAINER:=Stan Grishin <stangri@melmac.net>
  11. PKG_LICENSE:=MIT
  12. PKG_LICENSE_FILES:=LICENSE
  13. include $(INCLUDE_DIR)/package.mk
  14. include $(INCLUDE_DIR)/cmake.mk
  15. CMAKE_OPTIONS += -DCLANG_TIDY_EXE=
  16. define Package/https-dns-proxy
  17. SECTION:=net
  18. CATEGORY:=Network
  19. TITLE:=DNS Over HTTPS Proxy
  20. DEPENDS:=+libcares +libcurl +libev +ca-bundle
  21. CONFLICTS:=https_dns_proxy
  22. endef
  23. define Package/https-dns-proxy/description
  24. https_dns_proxy is a light-weight DNS<-->HTTPS, non-caching translation proxy for the RFC 8484 DNS-over-HTTPS standard. It receives regular (UDP) DNS requests and issues them via DoH.
  25. Please see https://github.com/openwrt/packages/blob/master/net/https-dns-proxy/files/README.md for further information.
  26. endef
  27. define Package/https-dns-proxy/conffiles
  28. /etc/config/https-dns-proxy
  29. endef
  30. define Package/https-dns-proxy/install
  31. $(INSTALL_DIR) $(1)/usr/sbin $(1)/etc/init.d ${1}/etc/config
  32. $(INSTALL_BIN) $(PKG_BUILD_DIR)/https_dns_proxy $(1)/usr/sbin/https-dns-proxy
  33. $(INSTALL_BIN) ./files/https-dns-proxy.init $(1)/etc/init.d/https-dns-proxy
  34. $(INSTALL_CONF) ./files/https-dns-proxy.config $(1)/etc/config/https-dns-proxy
  35. endef
  36. $(eval $(call BuildPackage,https-dns-proxy))