Makefile 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=https_dns_proxy
  3. PKG_VERSION:=2018-01-24
  4. PKG_RELEASE=1
  5. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  6. PKG_MIRROR_HASH:=0eef98106c584b986117f33458e8d1e2447a8b6eb12a2e3bfc5df06d45114144
  7. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  8. PKG_SOURCE_URL:=https://github.com/aarond10/https_dns_proxy/
  9. PKG_SOURCE_PROTO:=git
  10. PKG_SOURCE_VERSION:=f08b51d7c07c0156794e2c23d7a4d1a5344b2e07
  11. PKG_MAINTAINER:=Aaron Drew <aarond10@gmail.com>
  12. PKG_LICENSE:=MIT
  13. include $(INCLUDE_DIR)/package.mk
  14. include $(INCLUDE_DIR)/cmake.mk
  15. define Package/https_dns_proxy
  16. SECTION:=net
  17. CATEGORY:=Network
  18. TITLE:=DNS over HTTPS proxy server
  19. DEPENDS:=+libcares +libcurl +libev +ca-bundle
  20. endef
  21. define Package/https_dns_proxy/install
  22. $(INSTALL_DIR) $(1)/usr/sbin $(1)/etc/init.d ${1}/etc/config
  23. $(INSTALL_BIN) $(PKG_BUILD_DIR)/https_dns_proxy $(1)/usr/sbin/
  24. $(INSTALL_BIN) ./files/https_dns_proxy.init $(1)/etc/init.d/https_dns_proxy
  25. $(INSTALL_CONF) ./files/https_dns_proxy.config $(1)/etc/config/https_dns_proxy
  26. endef
  27. $(eval $(call BuildPackage,https_dns_proxy))