Browse Source

Merge pull request #5779 from zhaojh329/wifidog-ng

wifidog-ng: update to 1.2.4
lilik-openwrt-22.03
Hannu Nyman 7 years ago
committed by GitHub
parent
commit
13dd8ba61a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 25 additions and 2 deletions
  1. +2
    -2
      net/wifidog-ng/Makefile
  2. +2
    -0
      net/wifidog-ng/files/wifidog-ng.config
  3. +0
    -0
      net/wifidog-ng/files/wifidog-ng.crt
  4. +21
    -0
      net/wifidog-ng/files/wifidog-ng.init
  5. +0
    -0
      net/wifidog-ng/files/wifidog-ng.key

+ 2
- 2
net/wifidog-ng/Makefile View File

@ -8,13 +8,13 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=wifidog-ng PKG_NAME:=wifidog-ng
PKG_VERSION:=1.2.0
PKG_VERSION:=1.2.4
PKG_RELEASE:=1 PKG_RELEASE:=1
PKG_SOURCE_PROTO:=git PKG_SOURCE_PROTO:=git
PKG_SOURCE_VERSION:=v$(PKG_VERSION) PKG_SOURCE_VERSION:=v$(PKG_VERSION)
PKG_SOURCE_URL=https://github.com/zhaojh329/wifidog-ng.git PKG_SOURCE_URL=https://github.com/zhaojh329/wifidog-ng.git
PKG_MIRROR_HASH:=d8e6749e8f8c788043cd8261b55f41e4dae6a5f7fa88aeca8c9613c88a602006
PKG_MIRROR_HASH:=e437366d73f3becb61701560d88740fb097b8060b636febe3ad872831c83b598
PKG_BUILD_DIR=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_SOURCE_SUBDIR) PKG_BUILD_DIR=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_SOURCE_SUBDIR)


+ 2
- 0
net/wifidog-ng/files/wifidog-ng.config View File

@ -20,3 +20,5 @@ config authserver
config popularserver config popularserver
list server www.baidu.com list server www.baidu.com
list server www.qq.com list server www.qq.com
config whitelist

+ 0
- 0
net/wifidog-ng/files/wifidog-ng.crt View File


+ 21
- 0
net/wifidog-ng/files/wifidog-ng.init View File

@ -5,9 +5,30 @@ START=95
BIN=/usr/bin/wifidog-ng BIN=/usr/bin/wifidog-ng
parse_whitelist() {
local cfg="$1"
local domain mac
uci_validate_section wifidog-ng whitelist "${1}" \
'domain:list(host)' \
'mac:list(macaddr)'
[ $? -ne 0 ] && {
echo "validation failed" >&2
exit 1
}
for m in $mac; do
echo "!$m" > /proc/wifidog-ng/term
done
}
start_service() { start_service() {
modprobe wifidog-ng modprobe wifidog-ng
config_load wifidog-ng
config_foreach parse_whitelist whitelist
procd_open_instance procd_open_instance
procd_set_param command $BIN procd_set_param command $BIN
procd_set_param respawn procd_set_param respawn


+ 0
- 0
net/wifidog-ng/files/wifidog-ng.key View File


Loading…
Cancel
Save