2019-07-02 18:06:49 +08:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
2019-07-02 19:16:06 +08:00
|
|
|
PKG_NAME:=openwrt-dnsforwarder
|
2019-07-02 18:06:49 +08:00
|
|
|
PKG_VERSION:=6
|
|
|
|
|
PKG_RELEASE:=3
|
|
|
|
|
|
|
|
|
|
PKG_SOURCE_PROTO:=git
|
|
|
|
|
PKG_SOURCE_URL:=https://github.com/holmium/dnsforwarder.git
|
|
|
|
|
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
|
PKG_SOURCE_VERSION:=587e61ae4d75dc976f538088b715a3c8ee26c144
|
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-6
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
|
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
2019-07-02 19:16:06 +08:00
|
|
|
define Package/$(PKG_NAME)
|
2019-07-02 18:06:49 +08:00
|
|
|
SECTION:=net
|
|
|
|
|
CATEGORY:=Network
|
|
|
|
|
TITLE:=A simple DNS forwarder
|
|
|
|
|
URL:=https://github.com/holmium/dnsforwarder
|
|
|
|
|
DEPENDS:=+wget +ipset +dnsmasq-full +libpthread +coreutils-base64
|
|
|
|
|
endef
|
|
|
|
|
|
2019-07-02 19:16:06 +08:00
|
|
|
define Package/$(PKG_NAME)/description
|
2019-07-02 18:06:49 +08:00
|
|
|
Forwarding queries to customized domains (and their subdomains) to specified servers over a specified protocol (UDP or TCP). non-standard ports are supported.
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
CONFIGURE_ARGS += --enable-downloader=wget
|
|
|
|
|
|
|
|
|
|
|
2019-07-02 19:16:06 +08:00
|
|
|
define Package/$(PKG_NAME)/install
|
2019-07-02 18:06:49 +08:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/dnsforwarder $(1)/usr/bin/dnsforwarder
|
|
|
|
|
endef
|
|
|
|
|
|
2019-07-02 19:16:06 +08:00
|
|
|
$(eval $(call BuildPackage,$(PKG_NAME)))
|