mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-07-27 18:41:15 +08:00
64 lines
1.8 KiB
Makefile
64 lines
1.8 KiB
Makefile
#
|
|
# Copyright (C) 2021 ImmortalWrt
|
|
# <https://immortalwrt.org>
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v3.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=dnsforwarder
|
|
PKG_VERSION:=6.6.2
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
PKG_SOURCE_URL:=https://codeload.github.com/lifenjoiner/dnsforwarder/tar.gz/v$(PKG_VERSION)?
|
|
PKG_HASH:=skip
|
|
|
|
PKG_LICENSE:=GPL-3.0
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
PKG_MAINTAINER:=Dennis <openwrt@tossp.com>
|
|
|
|
PKG_FIXUP:=autoreconf
|
|
PKG_BUILD_PARALLEL:=1
|
|
PKG_INSTALL:=1
|
|
|
|
PKG_BUILD_FLAGS:=gc-sections lto
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/dnsforwarder
|
|
SECTION:=net
|
|
CATEGORY:=Network
|
|
TITLE:=A simple DNS forwarder
|
|
URL:=https://github.com/holmium/dnsforwarder
|
|
DEPENDS:=+coreutils +coreutils-base64 +dnsmasq-full +libpthread +wget-ssl
|
|
endef
|
|
|
|
define Package/dnsforwarder/description
|
|
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
|
|
|
|
TARGET_LDFLAGS += -Wl,--as-needed
|
|
|
|
define Package/dnsforwarder/install
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dnsforwarder $(1)/usr/bin/dnsforwarder
|
|
|
|
$(INSTALL_DIR) $(1)/etc/config
|
|
$(INSTALL_CONF) files/etc/config/dnsforwarder $(1)/etc/config/dnsforwarder
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
$(INSTALL_BIN) files/etc/init.d/dnsforwarder $(1)/etc/init.d/dnsforwarder
|
|
|
|
$(INSTALL_DIR) $(1)/etc/dnsforwarder
|
|
$(INSTALL_CONF) files/etc/dnsforwarder/gfw.txt $(1)/etc/dnsforwarder/gfw.txt
|
|
$(INSTALL_DIR) $(1)/usr/share/dnsforwarder
|
|
$(INSTALL_BIN) files/usr/share/dnsforwarder/gfwlist.sh $(1)/usr/share/dnsforwarder/gfwlist.sh
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,dnsforwarder))
|