mirror of
https://github.com/openwrt/packages.git
synced 2025-02-12 00:00:55 +00:00
Add SUBMENU variable for some packages in Network category. Add title for `dnscrypt-proxy` package. Shorten TITLE variable for `xray-core` package. Filesystem: - cifs-utils File Transfer: - onionshare-cli IP Addresses and Names: - dnscrypt-proxy2 - family-dns - https-dns-proxy - mdns-repeater - nextdns - smartdns Version Control Systems: - git-lfs Wireless: - dawn Signed-off-by: Ryan Keane <the.ra2.ifv@gmail.com>
64 lines
2.2 KiB
Makefile
64 lines
2.2 KiB
Makefile
#
|
|
# Copyright (c) 2018-2023 Nick Peng (pymumu@gmail.com)
|
|
# This is free software, licensed under the GNU General Public License v3.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=smartdns
|
|
PKG_VERSION:=1.2023.43
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE_PROTO:=git
|
|
PKG_SOURCE_URL:=https://www.github.com/pymumu/smartdns.git
|
|
PKG_SOURCE_VERSION:=1ba6ee7cb98b5b6448bc2a2be318eb3518d4de79
|
|
PKG_MIRROR_HASH:=522078cc35611b0ddddb93381507885222d2396ff4f1429ed6e93a82000b2d46
|
|
|
|
PKG_MAINTAINER:=Nick Peng <pymumu@gmail.com>
|
|
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
|
|
SUBMENU:=IP Addresses and Names
|
|
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,
|
|
gets 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, and encrypt DNS queries with DoT or DoH.
|
|
endef
|
|
|
|
define Package/smartdns/conffiles
|
|
/etc/config/smartdns
|
|
/etc/smartdns/address.conf
|
|
/etc/smartdns/blacklist-ip.conf
|
|
/etc/smartdns/custom.conf
|
|
/etc/smartdns/domain-block.list
|
|
/etc/smartdns/domain-forwarding.list
|
|
endef
|
|
|
|
define Package/smartdns/install
|
|
$(INSTALL_DIR) $(1)/usr/sbin $(1)/etc/config $(1)/etc/init.d
|
|
$(INSTALL_DIR) $(1)/etc/smartdns $(1)/etc/smartdns/domain-set $(1)/etc/smartdns/conf.d/
|
|
$(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) $(PKG_BUILD_DIR)/package/openwrt/custom.conf $(1)/etc/smartdns/custom.conf
|
|
$(INSTALL_CONF) $(PKG_BUILD_DIR)/package/openwrt/files/etc/config/smartdns $(1)/etc/config/smartdns
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,smartdns))
|