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