Skip to content

Commit

Permalink
add smartdns (hanwckf#645)
Browse files Browse the repository at this point in the history
  • Loading branch information
blioild authored May 19, 2021
1 parent 13eb411 commit b668b42
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ Contributors of this project are not responsible for what happens next.
>- [frps](https://github.com/fatedier/frp) ```CONFIG_FIRMWARE_INCLUDE_FRPS```
>- [tunsafe](https://github.com/TunSafe/TunSafe) ```CONFIG_FIRMWARE_INCLUDE_TUNSAFE```
>- [wireguard-go](https://git.zx2c4.com/wireguard-go/) ```CONFIG_FIRMWARE_INCLUDE_WIREGUARD```
>- [smartdns](https://github.com/pymumu/smartdns) ```CONFIG_FIRMWARE_INCLUDE_SMARTDNS```
- 已适配除官方适配外的以下机型
>- PSG1208
Expand Down
1 change: 1 addition & 0 deletions trunk/user/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ dir_y += xl2tpd
dir_$(CONFIG_FIRMWARE_INCLUDE_RPL2TP) += rp-l2tp
dir_y += lldt
dir_y += scripts
dir_$(CONFIG_FIRMWARE_INCLUDE_SMARTDNS) += smartdns
dir_$(OPENSSH_ENABLED) += openssh
dir_$(DROPBEAR_ENABLED) += dropbear
dir_$(CONFIG_FIRMWARE_INCLUDE_HTOP) += htop
Expand Down
26 changes: 26 additions & 0 deletions trunk/user/smartdns/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
SRC_NAME = smartdns-Release33
THISDIR = $(shell pwd)

all: extract_test config_test
$(MAKE) -C $(SRC_NAME)

extract_test:
( if [ ! -d $(SRC_NAME) ]; then \
tar -xf $(SRC_NAME).tar.gz ; \
fi )

config_test:
( if [ -f ./config_done ]; then \
echo "the same configuration"; \
else \
touch config_done; \
fi )

clean:
if [ -f $(SRC_NAME)/Makefile ] ; then \
$(MAKE) -C $(SRC_NAME) clean ; \
fi ; \
rm -f config_done

romfs:
$(ROMFSINST) -p +x $(THISDIR)/$(SRC_NAME)/src/smartdns /usr/bin/smartdns
Binary file added trunk/user/smartdns/smartdns-Release33.tar.gz
Binary file not shown.

0 comments on commit b668b42

Please sign in to comment.