Makefile 983 B

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