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.

51 lines
1.7 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=https-dns-proxy
  3. PKG_VERSION:=2021-11-22
  4. PKG_RELEASE:=7
  5. PKG_SOURCE_PROTO:=git
  6. PKG_SOURCE_URL:=https://github.com/aarond10/https_dns_proxy/
  7. PKG_SOURCE_DATE:=2021-11-22
  8. PKG_SOURCE_VERSION:=9336fd6272d67e8bb6e304fa54f3139a3d26f08f
  9. PKG_MIRROR_HASH:=60b1ddabaf1db3a9ee19f3294a1df714364d580cef5e3c2161363c371a557456
  10. PKG_MAINTAINER:=Stan Grishin <stangri@melmac.ca>
  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. URL:=https://docs.openwrt.melmac.net/https-dns-proxy/
  21. DEPENDS:=+libcares +libcurl +libev +ca-bundle
  22. CONFLICTS:=https_dns_proxy
  23. endef
  24. define Package/https-dns-proxy/description
  25. https-dns-proxy is a light-weight DNS<-->HTTPS, non-caching translation proxy for the RFC 8484 DoH standard.
  26. It receives regular (UDP) DNS requests and issues them via DoH.
  27. Please see https://docs.openwrt.melmac.net/https-dns-proxy/ for more information.
  28. endef
  29. define Package/https-dns-proxy/conffiles
  30. /etc/config/https-dns-proxy
  31. endef
  32. define Package/https-dns-proxy/install
  33. $(INSTALL_DIR) $(1)/usr/sbin
  34. $(INSTALL_DIR) $(1)/etc/init.d
  35. $(INSTALL_DIR) ${1}/etc/config
  36. $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
  37. $(INSTALL_BIN) $(PKG_BUILD_DIR)/https_dns_proxy $(1)/usr/sbin/https-dns-proxy
  38. $(INSTALL_BIN) ./files/https-dns-proxy.init $(1)/etc/init.d/https-dns-proxy
  39. $(SED) "s|^\(PKG_VERSION\).*|\1='$(PKG_VERSION)-$(PKG_RELEASE)'|" $(1)/etc/init.d/https-dns-proxy
  40. $(INSTALL_CONF) ./files/https-dns-proxy.config $(1)/etc/config/https-dns-proxy
  41. endef
  42. $(eval $(call BuildPackage,https-dns-proxy))