update Makefile for openwrt

This commit is contained in:
Nick Peng
2019-12-21 11:56:04 +08:00
parent 982002e836
commit 5a91e90ee3

View File

@@ -1,58 +1,42 @@
# #
# Copyright (C) 2018-2020 Ruilin Peng (Nick) <pymumu@gmail.com>. # Copyright (c) 2018-2019 Nick Peng (pymumu@gmail.com)
# This is free software, licensed under the GNU General Public License v3.
# #
# 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 <http://www.gnu.org/licenses/>.
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=smartdns PKG_NAME:=smartdns
PKG_VERSION:=1.2019.28
PKG_RELEASE:=1
PKG_SOURCE_PROTO:=git PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/pymumu/smartdns.git PKG_SOURCE_URL:=https://www.github.com/pymumu/smartdns.git
PKG_SOURCE_VERSION:=982002e836e486fb4e360bc10e84e7e7197caf46
PKG_MIRROR_HASH:=ae889b521ecf114660ce5597af5c361f5970a7dcb75dadf61b938ba3d2baba54
PKG_REV:=d51f5e6eeba7bfde1b108fe32d540bd429550573 PKG_MAINTAINER:=Nick Peng <pymumu@gmail.com>
PKG_VERSION:=1.2019.11.02-1102 PKG_LICENSE:=GPL-3.0-or-later
PKG_RELEASE:=1 PKG_LICENSE_FILES:=LICENSE
PKG_LICENSE:=GPL-3.0
PKG_SOURCE_VERSION:=$(PKG_REV) PKG_BUILD_PARALLEL:=1
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE:=$(PKG_SOURCE_SUBDIR).tar.gz
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_SOURCE_SUBDIR)
include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/package.mk
MAKE_ARGS := CFLAGS="$(TARGET_CFLAGS)" CC=$(TARGET_CC) MAKE_VARS += VER=$(PKG_VERSION)
MAKE_PATH:=src
define Package/smartdns define Package/smartdns
SECTION:=net SECTION:=net
CATEGORY:=Network CATEGORY:=Network
TITLE:=smartdns server TITLE:=smartdns server
URL:=http://github.com/pymumu/smartdns/ DEPENDS:=+libpthread +libopenssl
MAINTAINER:=Nick Peng <pymumu@gmail.com> URL:=https://www.github.com/pymumu/smartdns/
DEPENDS:=+libopenssl
endef endef
define Package/smartdns/description define Package/smartdns/description
SmartDNS is a local DNS server. SmartDNS accepts DNS query requests from local clients, obtains DNS query results from multiple upstream DNS servers, and returns the fastest access results to clients. SmartDNS is a local DNS server which accepts DNS query requests from local network clients,
endef 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.
define Build/Configure
mkdir -p $(PKG_INSTALL_DIR)
endef
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR)/src $(MAKE_ARGS) all
endef endef
define Package/smartdns/conffiles define Package/smartdns/conffiles