Merge pull request #20446 from stangri/master-simple-adblock
simple-adblock: update to 1.9.3-7
This commit is contained in:
commit
b3ac0fe661
|
@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=simple-adblock
|
PKG_NAME:=simple-adblock
|
||||||
PKG_VERSION:=1.9.3
|
PKG_VERSION:=1.9.3
|
||||||
PKG_RELEASE:=6
|
PKG_RELEASE:=7
|
||||||
PKG_MAINTAINER:=Stan Grishin <stangri@melmac.ca>
|
PKG_MAINTAINER:=Stan Grishin <stangri@melmac.ca>
|
||||||
PKG_LICENSE:=GPL-3.0-or-later
|
PKG_LICENSE:=GPL-3.0-or-later
|
||||||
|
|
||||||
|
|
|
@ -71,9 +71,9 @@ config simple-adblock 'config'
|
||||||
# enabling this will disable processing of any other block/allow-lists
|
# enabling this will disable processing of any other block/allow-lists
|
||||||
# option dnsmasq_config_file_url 'https://dnsmasq.oisd.nl/'
|
# option dnsmasq_config_file_url 'https://dnsmasq.oisd.nl/'
|
||||||
|
|
||||||
# File size: 34.0M
|
# File size: 19.0M
|
||||||
# block-list too big for most routers
|
# block-list too big for most routers
|
||||||
# list blocked_hosts_url 'https://hosts.oisd.nl/'
|
# list blocked_domains_url 'https://dbl.oisd.nl/'
|
||||||
|
|
||||||
# site was down on last check
|
# site was down on last check
|
||||||
# list blocked_domains_url 'http://support.it-mate.co.uk/downloads/hosts.txt'
|
# list blocked_domains_url 'http://support.it-mate.co.uk/downloads/hosts.txt'
|
||||||
|
|
|
@ -4,7 +4,6 @@ s|blacklist_hosts_url|blocked_hosts_url|g
|
||||||
s|blacklist_domains_url|blocked_domains_url|g
|
s|blacklist_domains_url|blocked_domains_url|g
|
||||||
s|blacklist_domain|blocked_domain|g
|
s|blacklist_domain|blocked_domain|g
|
||||||
s|ssl.bblck.me|cdn.jsdelivr.net/gh/paulgb/BarbBlock|g
|
s|ssl.bblck.me|cdn.jsdelivr.net/gh/paulgb/BarbBlock|g
|
||||||
s|dbl.oisd.nl|hosts.oisd.nl|g
|
|
||||||
s|raw.githubusercontent.com/StevenBlack/hosts/|cdn.jsdelivr.net/gh/StevenBlack/hosts@|g
|
s|raw.githubusercontent.com/StevenBlack/hosts/|cdn.jsdelivr.net/gh/StevenBlack/hosts@|g
|
||||||
s|raw.githubusercontent.com/hoshsadiq/adblock-nocoin-list/|cdn.jsdelivr.net/gh/hoshsadiq/adblock-nocoin-list@|g
|
s|raw.githubusercontent.com/hoshsadiq/adblock-nocoin-list/|cdn.jsdelivr.net/gh/hoshsadiq/adblock-nocoin-list@|g
|
||||||
s|raw.githubusercontent.com/jawz101/MobileAdTrackers/|cdn.jsdelivr.net/gh/jawz101/MobileAdTrackers@|g
|
s|raw.githubusercontent.com/jawz101/MobileAdTrackers/|cdn.jsdelivr.net/gh/jawz101/MobileAdTrackers@|g
|
||||||
|
|
|
@ -1409,16 +1409,29 @@ adb_stop() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
allow() { load_validate_config 'config' adb_allow "'$*'"; }
|
||||||
|
boot() {
|
||||||
|
ubus -t 30 wait_for network.interface 2>/dev/null
|
||||||
|
rc_procd start_service 'on_boot'
|
||||||
|
}
|
||||||
|
check() { load_validate_config 'config' adb_check "'$*'"; }
|
||||||
|
dl() { rc_procd start_service 'download'; }
|
||||||
|
killcache() {
|
||||||
|
rm -f "$dnsmasqAddnhostsCache" "$dnsmasqAddnhostsGzip"
|
||||||
|
rm -f "$dnsmasqConfCache" "$dnsmasqConfGzip"
|
||||||
|
rm -f "$dnsmasqIpsetCache" "$dnsmasqIpsetGzip"
|
||||||
|
rm -f "$dnsmasqNftsetCache" "$dnsmasqNftsetGzip"
|
||||||
|
rm -f "$dnsmasqServersCache" "$dnsmasqServersGzip"
|
||||||
|
rm -f "$unboundCache" "$unboundGzip"
|
||||||
|
config_load 'dhcp'
|
||||||
|
config_foreach resolver 'dnsmasq' 'cleanup'
|
||||||
|
uci_commit 'dhcp'
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
reload_service() { rc_procd start_service 'restart'; }
|
||||||
|
restart_service() { rc_procd start_service 'restart'; }
|
||||||
service_started() { procd_set_config_changed firewall; }
|
service_started() { procd_set_config_changed firewall; }
|
||||||
service_stopped() { procd_set_config_changed firewall; }
|
service_stopped() { procd_set_config_changed firewall; }
|
||||||
restart_service() { rc_procd start_service 'restart'; }
|
|
||||||
reload_service() { rc_procd start_service 'restart'; }
|
|
||||||
start_service() {
|
|
||||||
load_validate_config 'config' adb_config_update "'$*'"
|
|
||||||
load_validate_config 'config' adb_start "'$*'"
|
|
||||||
}
|
|
||||||
stop_service() { load_validate_config 'config' adb_stop "'$*'"; }
|
|
||||||
status_service() { load_validate_config 'config' adb_status "''"; }
|
|
||||||
service_triggers() {
|
service_triggers() {
|
||||||
local wan wan6 i
|
local wan wan6 i
|
||||||
local procd_trigger_wan6
|
local procd_trigger_wan6
|
||||||
|
@ -1437,22 +1450,13 @@ service_triggers() {
|
||||||
done
|
done
|
||||||
procd_add_config_trigger "config.change" "$packageName" "/etc/init.d/${packageName}" reload
|
procd_add_config_trigger "config.change" "$packageName" "/etc/init.d/${packageName}" reload
|
||||||
}
|
}
|
||||||
allow() { load_validate_config 'config' adb_allow "'$*'"; }
|
|
||||||
check() { load_validate_config 'config' adb_check "'$*'"; }
|
|
||||||
dl() { rc_procd start_service 'download'; }
|
|
||||||
killcache() {
|
|
||||||
rm -f "$dnsmasqAddnhostsCache" "$dnsmasqAddnhostsGzip"
|
|
||||||
rm -f "$dnsmasqConfCache" "$dnsmasqConfGzip"
|
|
||||||
rm -f "$dnsmasqIpsetCache" "$dnsmasqIpsetGzip"
|
|
||||||
rm -f "$dnsmasqNftsetCache" "$dnsmasqNftsetGzip"
|
|
||||||
rm -f "$dnsmasqServersCache" "$dnsmasqServersGzip"
|
|
||||||
rm -f "$unboundCache" "$unboundGzip"
|
|
||||||
config_load 'dhcp'
|
|
||||||
config_foreach resolver 'dnsmasq' 'cleanup'
|
|
||||||
uci_commit 'dhcp'
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
sizes() { load_validate_config 'config' adb_sizes "''"; }
|
sizes() { load_validate_config 'config' adb_sizes "''"; }
|
||||||
|
start_service() {
|
||||||
|
load_validate_config 'config' adb_config_update "'$*'"
|
||||||
|
load_validate_config 'config' adb_start "'$*'"
|
||||||
|
}
|
||||||
|
status_service() { load_validate_config 'config' adb_status "''"; }
|
||||||
|
stop_service() { load_validate_config 'config' adb_stop "'$*'"; }
|
||||||
version() { echo "$PKG_VERSION"; }
|
version() { echo "$PKG_VERSION"; }
|
||||||
|
|
||||||
load_validate_config() {
|
load_validate_config() {
|
||||||
|
|
Loading…
Reference in New Issue