From 5a91e90ee3e363161897070a8e4fcb4e71f3d557 Mon Sep 17 00:00:00 2001 From: Nick Peng Date: Sat, 21 Dec 2019 11:56:04 +0800 Subject: [PATCH] update Makefile for openwrt --- package/openwrt/Makefile | 54 ++++++++++++++-------------------------- 1 file changed, 19 insertions(+), 35 deletions(-) diff --git a/package/openwrt/Makefile b/package/openwrt/Makefile index ac1d5bd..2e32ae9 100644 --- a/package/openwrt/Makefile +++ b/package/openwrt/Makefile @@ -1,58 +1,42 @@ # -# Copyright (C) 2018-2020 Ruilin Peng (Nick) . +# 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 . + include $(TOPDIR)/rules.mk PKG_NAME:=smartdns +PKG_VERSION:=1.2019.28 +PKG_RELEASE:=1 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_VERSION:=1.2019.11.02-1102 -PKG_RELEASE:=1 -PKG_LICENSE:=GPL-3.0 +PKG_MAINTAINER:=Nick Peng +PKG_LICENSE:=GPL-3.0-or-later +PKG_LICENSE_FILES:=LICENSE -PKG_SOURCE_VERSION:=$(PKG_REV) -PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) -PKG_SOURCE:=$(PKG_SOURCE_SUBDIR).tar.gz -PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_SOURCE_SUBDIR) +PKG_BUILD_PARALLEL:=1 include $(INCLUDE_DIR)/package.mk -MAKE_ARGS := CFLAGS="$(TARGET_CFLAGS)" CC=$(TARGET_CC) +MAKE_VARS += VER=$(PKG_VERSION) +MAKE_PATH:=src define Package/smartdns SECTION:=net CATEGORY:=Network TITLE:=smartdns server - URL:=http://github.com/pymumu/smartdns/ - MAINTAINER:=Nick Peng - DEPENDS:=+libopenssl + DEPENDS:=+libpthread +libopenssl + URL:=https://www.github.com/pymumu/smartdns/ endef 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. -endef - -define Build/Configure - mkdir -p $(PKG_INSTALL_DIR) -endef - -define Build/Compile - $(MAKE) -C $(PKG_BUILD_DIR)/src $(MAKE_ARGS) all +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