mirror of
https://github.com/openwrt/packages.git
synced 2025-12-21 19:14:30 +04:00
adblock-fast: update to 1.1.4-4
Makefile:
- bugfix: change references to melmac.net to melmac.ca
README:
- add basic README with the link to full documentation
Config:
- add heartbeat_domain
- add heartbeat_sleep_timeout
- add sanity_check
- add update_config_sizes
Init Script:
- a lot of visual output improvements, especially with verbosity=2
- better output separation for different verbosity levels
- removed unneeded runningErrorFile
- bugfix: updated runningConfigFile
- updated runningStatusFile and added runningStatusFileLock
- moved append_url() higher up for better visibility
- refactor force-redownload/restart on some config changes functionality
- improve count_blocked_domains
- add internal debug_log() for debugging functions where output is captured
- unified all json add/get calls in the same formatting
- major rework on json() to allow storing of error/warning messages as json objects
- added some error/warning messages
- renamed `cache()` function to `adb_file()` to better reflect functionality
- added functionality to test the dnsmasq config before restarting dnsmasq with ad-blocking
- added functionality to throw warnings if TLDs or leading-dot domains are discovered
in the final block-list file (can be disabled by `sanity_check` option)
- added functionality to test DNS resolution after resolver restart with `heartbeat_domain`
for `heartbeat_sleep_timeout` seconds
- added functionality to revert the resolver's config/ad-blocking if heartbeat domain cannot
be resolved after resolver restart
- added `ALLOWED_TMP` variable/file for better processing of external allow-lists
- added debug output to log with the elapsed time for each step of processing
- drastically improved final block-list optimization with the new awk script
- minor other performance improvements
- added check_tld/check_leading_dot CLI commands to show domains breaking sanity checks
- added validate functions to triggers
Signed-off-by: Stan Grishin <stangri@melmac.ca>
This commit is contained in:
@@ -1,12 +1,11 @@
|
|||||||
# SPDX-Identifier-License: AGPL-3.0-or-later
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
# Copyright 2023-2025 MOSSDeF, Stan Grishin (stangri@melmac.ca).
|
# Copyright 2023-2025 MOSSDeF, Stan Grishin (stangri@melmac.ca).
|
||||||
# TLD optimization written by Dirk Brenken (dev@brenken.org).
|
|
||||||
|
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=adblock-fast
|
PKG_NAME:=adblock-fast
|
||||||
PKG_VERSION:=1.1.3
|
PKG_VERSION:=1.1.4
|
||||||
PKG_RELEASE:=13
|
PKG_RELEASE:=4
|
||||||
PKG_MAINTAINER:=Stan Grishin <stangri@melmac.ca>
|
PKG_MAINTAINER:=Stan Grishin <stangri@melmac.ca>
|
||||||
PKG_LICENSE:=AGPL-3.0-or-later
|
PKG_LICENSE:=AGPL-3.0-or-later
|
||||||
|
|
||||||
@@ -22,15 +21,13 @@ define Package/adblock-fast
|
|||||||
DEPENDS+=+!BUSYBOX_DEFAULT_GREP:grep
|
DEPENDS+=+!BUSYBOX_DEFAULT_GREP:grep
|
||||||
DEPENDS+=+!BUSYBOX_DEFAULT_SED:sed
|
DEPENDS+=+!BUSYBOX_DEFAULT_SED:sed
|
||||||
DEPENDS+=+!BUSYBOX_DEFAULT_SORT:coreutils-sort
|
DEPENDS+=+!BUSYBOX_DEFAULT_SORT:coreutils-sort
|
||||||
CONFLICTS:=simple-adblock
|
|
||||||
PROVIDES:=simple-adblock
|
|
||||||
PKGARCH:=all
|
PKGARCH:=all
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/adblock-fast/description
|
define Package/adblock-fast/description
|
||||||
Fast AdBlocking script to block ad or abuse/malware domains with Dnsmasq, SmartDNS or Unbound.
|
Fast AdBlocking script to block ad or abuse/malware domains with Dnsmasq, SmartDNS or Unbound.
|
||||||
Script supports local/remote list of domains and hosts-files for both block-listing and allow-listing.
|
Script supports local/remote list of domains and hosts-files for both block-listing and allow-listing.
|
||||||
Please see https://docs.openwrt.melmac.net/adblock-fast/ for more information.
|
Please see https://docs.openwrt.melmac.ca/adblock-fast/ for more information.
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/adblock-fast/conffiles
|
define Package/adblock-fast/conffiles
|
||||||
|
|||||||
@@ -1,4 +1,20 @@
|
|||||||
# README
|
# adblock-fast
|
||||||
|
|
||||||
Documentation for this project is available at [https://docs.openwrt.melmac.net/adblock-fast/](https://docs.openwrt.melmac.net/adblock-fast/).
|
[](https://openwrt.org)
|
||||||
|
[](https://docs.openwrt.melmac.ca/adblock-fast/)
|
||||||
|
[](https://openwrt.org/packages/pkgdata/adblock-fast)
|
||||||
|
[](https://github.com/stangri/adblock-fast/blob/master/LICENSE)
|
||||||
|
|
||||||
|
A fast, lightweight DNS-based ad-blocker for OpenWrt that works with dnsmasq, smartdns, or unbound.
|
||||||
|
It runs once to process and install blocklists, then exits — keeping memory usage low.
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
- Minimal runtime memory use
|
||||||
|
- Parallel blocklist download and processing
|
||||||
|
- Persistent cache support
|
||||||
|
- Optional Web UI for custom block/allow lists
|
||||||
|
- Reverts if DNS resolution fails after restart
|
||||||
|
|
||||||
|
📚 **Full documentation:**
|
||||||
|
[https://docs.openwrt.melmac.ca/adblock-fast/](https://docs.openwrt.melmac.ca/adblock-fast/)
|
||||||
|
|||||||
@@ -34,6 +34,10 @@ config adblock-fast 'config'
|
|||||||
option procd_boot_delay '0'
|
option procd_boot_delay '0'
|
||||||
option procd_boot_wan_timeout '60'
|
option procd_boot_wan_timeout '60'
|
||||||
option verbosity '2'
|
option verbosity '2'
|
||||||
|
option heartbeat_domain 'heartbeat.melmac.ca'
|
||||||
|
option heartbeat_sleep_timeout '10'
|
||||||
|
option sanity_check '1'
|
||||||
|
option update_config_sizes '1'
|
||||||
|
|
||||||
config file_url
|
config file_url
|
||||||
option name 'Hagezi - Pro'
|
option name 'Hagezi - Pro'
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user