2020-02-01 02:36:42 +08:00
|
|
|
#
|
|
|
|
# Copyright (C) 2015 OpenWrt-dist
|
|
|
|
# Copyright (C) 2015 Jian Chang <aa65535@live.com>
|
|
|
|
#
|
2021-02-06 17:52:37 +08:00
|
|
|
# Copyright (C) 2021 ImmortalWrt
|
2021-01-29 21:07:22 +08:00
|
|
|
# <https://project-openwrt.eu.org>
|
|
|
|
#
|
2020-02-01 02:36:42 +08:00
|
|
|
# This is free software, licensed under the GNU General Public License v3.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=dns-forwarder
|
|
|
|
PKG_VERSION:=1.2.1
|
2021-01-29 21:07:22 +08:00
|
|
|
PKG_RELEASE:=2
|
2020-02-01 02:36:42 +08:00
|
|
|
|
|
|
|
PKG_SOURCE_PROTO:=git
|
|
|
|
PKG_SOURCE_URL:=https://github.com/aa65535/hev-dns-forwarder.git
|
2021-01-29 21:07:22 +08:00
|
|
|
PKG_SOURCE_DATE:=2017-07-21
|
2020-02-01 02:36:42 +08:00
|
|
|
PKG_SOURCE_VERSION:=289e8c9c7167200668dff83b1e0cbce258665387
|
2021-01-29 21:07:22 +08:00
|
|
|
PKG_MIRROR_HASH:=a06f61c2b87f61cf68517d3b4a23439366f3c806dd736594a814ee0245adca43
|
2020-02-01 02:36:42 +08:00
|
|
|
|
|
|
|
PKG_LICENSE:=GPLv3
|
|
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
|
|
PKG_MAINTAINER:=Jian Chang <aa65535@live.com>
|
|
|
|
|
|
|
|
PKG_BUILD_PARALLEL:=1
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/dns-forwarder
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
TITLE:=Forwarding DNS queries on TCP transport
|
|
|
|
URL:=https://github.com/aa65535/hev-dns-forwarder
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/dns-forwarder/description
|
2021-01-29 21:07:22 +08:00
|
|
|
Forwarding DNS queries on TCP transport.
|
2020-02-01 02:36:42 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/dns-forwarder/conffiles
|
2021-01-30 19:06:57 +08:00
|
|
|
/etc/config/dns-forwarder
|
2020-02-01 02:36:42 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/dns-forwarder/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/hev-dns-forwarder $(1)/usr/bin/dns-forwarder
|
|
|
|
$(INSTALL_DIR) $(1)/etc/config
|
|
|
|
$(INSTALL_DATA) ./files/dns-forwarder.config $(1)/etc/config/dns-forwarder
|
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
|
|
$(INSTALL_BIN) ./files/dns-forwarder.init $(1)/etc/init.d/dns-forwarder
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,dns-forwarder))
|