🌴 Sync 2022-12-25 13:15

This commit is contained in:
github-actions[bot] 2022-12-25 13:15:53 +08:00
parent 1eaefc7ad6
commit 4b23689775
2 changed files with 72 additions and 4 deletions

View File

@ -1,18 +1,18 @@
#
# Copyright (c) 2018-2022 Nick Peng (pymumu@gmail.com)
# Copyright (c) 2018-2020 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.2022.38.1
PKG_VERSION:=1.2022.38
PKG_RELEASE:=1
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://www.github.com/pymumu/smartdns.git
PKG_SOURCE_VERSION:=9bc857f628299573c7eca0833229d9812b1c1de4
PKG_MIRROR_HASH:=a202b765e6ce8355335c80214819add3ed72a82426b033d7d5adf1448b415063
PKG_SOURCE_VERSION:=fa0ab28bab3dac40a535722a1bc49de26a22b0bf
PKG_MIRROR_HASH:=ea0cdb609ee3adf811ef4321fc4dc4539708313dfb15d8e23713956bf3c12fe2
PKG_MAINTAINER:=Nick Peng <pymumu@gmail.com>
PKG_LICENSE:=GPL-3.0-or-later

68
smartdns/ReadMe.md Normal file
View File

@ -0,0 +1,68 @@
# openwrt-smartdns
此仓库为smartdns独立仓库为单独编译使用可配合luci-app-smartdns一起使用。
luci界面[luci-app-smartdns](https://github.com/pymumu/luci-app-smartdns)
## 使用方式
注意如下命令操作路径为openwrt源代码所在目录。
### 复制仓库中的文件到如下目录,并执行安装
```shell
./feeds/packages/net/smartdns/
./scripts/feeds install package -a
```
### 执行openwrt配置, 选中smartdns
执行编译配置:
```shell
make menuconfig
```
* 选择路径:
Network > smartdns
* 编译模式:
1. 若编译独立软件包,选择编译模式为`M`
1. 若编译到固件中,选择编译模式为`*`
### 执行openwrt编译
仅编译软件包:
```shell
make package/feeds/packages/smartdns/compile
```
编译固件以及软件包。
```shell
make -j8
```
## 懒人脚本
也可可执行如下命令一次性下载smartdns。
下列命令可采用复制粘贴的方式执行, 注意目录需要在openwrt源代码目录中。
```shell
WORKINGDIR="`pwd`/feeds/packages/net/smartdns"
mkdir $WORKINGDIR -p
rm $WORKINGDIR/* -fr
wget https://github.com/pymumu/openwrt-smartdns/archive/master.zip -O $WORKINGDIR/master.zip
unzip $WORKINGDIR/master.zip -d $WORKINGDIR
mv $WORKINGDIR/openwrt-smartdns-master/* $WORKINGDIR/
rmdir $WORKINGDIR/openwrt-smartdns-master
rm $WORKINGDIR/master.zip
./scripts/feeds install -a
make menuconfig
```
上述命令完成后,可执行编译。