From f22c6ed39e7a447eaf2985f3a74fa01cc37a0116 Mon Sep 17 00:00:00 2001 From: CN_SZTL Date: Fri, 29 Jan 2021 15:10:18 +0800 Subject: [PATCH] smartdns: move to feeds Signed-off-by: CN_SZTL --- package/ntlf9t/smartdns/Makefile | 69 ---------------------- package/ntlf9t/smartdns/conf/custom.conf | 50 ---------------- package/ntlf9t/smartdns/conf/smartdns.conf | 28 --------- 3 files changed, 147 deletions(-) delete mode 100644 package/ntlf9t/smartdns/Makefile delete mode 100644 package/ntlf9t/smartdns/conf/custom.conf delete mode 100644 package/ntlf9t/smartdns/conf/smartdns.conf diff --git a/package/ntlf9t/smartdns/Makefile b/package/ntlf9t/smartdns/Makefile deleted file mode 100644 index 558789ab3b..0000000000 --- a/package/ntlf9t/smartdns/Makefile +++ /dev/null @@ -1,69 +0,0 @@ -# -# Copyright (C) 2018-2020 Ruilin Peng (Nick) . -# -# smartdns is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# smartdns is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . -include $(TOPDIR)/rules.mk - -PKG_NAME:=smartdns -PKG_VERSION:=1.2021.24 -PKG_RELEASE:=2 - -PKG_SOURCE_PROTO:=git -PKG_SOURCE_URL:=https://github.com/pymumu/smartdns.git -PKG_MIRROR_HASH:=282bd4926fd33a949ba8a8a7f2a9eb83c09b540e88c782b2c739c6cb82b062a5 -PKG_SOURCE_VERSION:=11cf7b614c2ad42acf12cf4843daa1b67696763b - -PKG_MAINTAINER:=Nick Peng -PKG_LICENSE:=GPL-3.0-or-later -PKG_LICENSE_FILES:=LICENSE - -PKG_BUILD_PARALLEL:=1 - -include $(INCLUDE_DIR)/package.mk - -MAKE_VARS += VER=$(PKG_VERSION) -MAKE_PATH:=src - -define Package/smartdns - SECTION:=net - CATEGORY:=Network - TITLE:=smartdns server - DEPENDS:=+libpthread +libopenssl - URL:=https://www.github.com/pymumu/smartdns/ -endef - -define Package/smartdns/description -SmartDNS is a local DNS server which accepts DNS query requests from local network clients, -get DNS query results from multiple upstream DNS servers concurrently, and returns the fastest IP to clients. -Unlike dnsmasq's all-servers, smartdns returns the fastest IP. -endef - -define Package/smartdns/conffiles -/etc/config/smartdns -/etc/smartdns/address.conf -/etc/smartdns/blacklist-ip.conf -/etc/smartdns/custom.conf -endef - -define Package/smartdns/install - $(INSTALL_DIR) $(1)/usr/sbin $(1)/etc/config $(1)/etc/init.d $(1)/etc/smartdns - $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/smartdns $(1)/usr/sbin/smartdns - $(INSTALL_BIN) $(PKG_BUILD_DIR)/package/openwrt/files/etc/init.d/smartdns $(1)/etc/init.d/smartdns - $(INSTALL_CONF) $(PKG_BUILD_DIR)/package/openwrt/address.conf $(1)/etc/smartdns/address.conf - $(INSTALL_CONF) $(PKG_BUILD_DIR)/package/openwrt/blacklist-ip.conf $(1)/etc/smartdns/blacklist-ip.conf - $(INSTALL_CONF) $(CURDIR)/conf/custom.conf $(1)/etc/smartdns/custom.conf - $(INSTALL_CONF) $(CURDIR)/conf/smartdns.conf $(1)/etc/config/smartdns -endef - -$(eval $(call BuildPackage,smartdns)) diff --git a/package/ntlf9t/smartdns/conf/custom.conf b/package/ntlf9t/smartdns/conf/custom.conf deleted file mode 100644 index 39e7a94619..0000000000 --- a/package/ntlf9t/smartdns/conf/custom.conf +++ /dev/null @@ -1,50 +0,0 @@ -# Add custom settings here. - -# set log level -# log-level [level], level=fatal, error, warn, notice, info, debug -# log-level error - -# log-size k,m,g -# log-size 128k - -# log-file /var/log/smartdns.log -# log-num 2 - -# List of hosts that supply bogus NX domain results -# bogus-nxdomain [ip/subnet] - -speed-check-mode tcp:80,ping - -server 202.141.178.13:5353 -server 202.38.93.153:5353 -server 202.141.162.123:5353 -server 2001:da8::666 - -server-tcp 9.9.9.9 -group fq_dns -exclude-default-group -server-tcp 8.8.8.8 -group fq_dns -exclude-default-group -server-tcp 1.0.0.1 -group fq_dns -exclude-default-group - -server-tls 115.159.131.230 -host-name dns.rubyfish.cn -server-tls dns.rubyfish.cn -server-tls dns.233py.com -server-tls 8.8.8.8 -host-name dns.google -group fq_dns -exclude-default-group -server-tls dns.google -group fq_dns -exclude-default-group -server-tls 1.0.0.1 -host-name 1dot1dot1dot1.cloudflare-dns.com -group fq_dns -exclude-default-group -server-tls 1dot1dot1dot1.cloudflare-dns.com -group fq_dns -exclude-default-group - -server-https https://202.141.178.13/resolve -host-name neatdns.ustclug.org -http-host neatdns.ustclug.org -server-https https://202.38.93.153/resolve -host-name neatdns.ustclug.org -http-host neatdns.ustclug.org -server-https https://neatdns.ustclug.org/resolve -server-https https://115.159.131.230/resolve -host-name dns.rubyfish.cn -http-host dns.rubyfish.cn -server-https https://dns.rubyfish.cn/dns-query -server-https https://45.77.180.10/resolve -host-name dns.containerpi.com -http-host dns.containerpi.com -server-https https://dns.containerpi.com/dns-query -server-https https://210.17.9.228/dns-query -host-name dns.twnic.tw -http-host dns.twnic.tw -server-https https://dns.twnic.tw/dns-query -server-https https://i.233py.com/dns-query -server-https https://9.9.9.9/dns-query -host-name dns9.quad9.net -http-host dns9.quad9.net -group fq_dns -exclude-default-group -server-https https://dns9.quad9.net/dns-query -group fq_dns -exclude-default-group -server-https https://1.0.0.1/dns-query -group fq_dns -exclude-default-group -server-https https://cloudflare-dns.com/dns-query -group fq_dns -exclude-default-group -server-https https://146.112.41.2/dns-query -host-name doh.opendns.com -http-host doh.opendns.com -group fq_dns -exclude-default-group -server-https https://doh.opendns.com/dns-query -group fq_dns -exclude-default-group diff --git a/package/ntlf9t/smartdns/conf/smartdns.conf b/package/ntlf9t/smartdns/conf/smartdns.conf deleted file mode 100644 index 3af0356942..0000000000 --- a/package/ntlf9t/smartdns/conf/smartdns.conf +++ /dev/null @@ -1,28 +0,0 @@ -config smartdns - option server_name 'smartdns' - option dualstack_ip_selection '1' - option prefetch_domain '1' - option serve_expired '1' - option seconddns_no_speed_check '0' - option seconddns_no_dualstack_selection '0' - option seconddns_no_cache '0' - option tcp_server '0' - option seconddns_tcp_server '0' - option coredump '0' - option port '6053' - option ipv6_server '0' - option redirect 'dnsmasq-upstream' - option seconddns_port '5335' - option seconddns_server_group 'fq_dns' - option seconddns_enabled '1' - option seconddns_no_rule_addr '0' - option seconddns_no_rule_nameserver '0' - option seconddns_no_rule_ipset '0' - option seconddns_no_rule_soa '0' - option enabled '0' - option cache_size '20000' - option rr_ttl '3600' - option rr_ttl_min '5' - list old_redirect 'dnsmasq-upstream' - list old_port '6053' - list old_enabled '0'