PKG_NAME:=adblock-fast
PKG_VERSION:=1.2.0
-PKG_RELEASE:=22
+PKG_RELEASE:=26
PKG_MAINTAINER:=Stan Grishin <stangri@melmac.ca>
PKG_LICENSE:=AGPL-3.0-or-later
CATEGORY:=Network
TITLE:=AdBlock Fast Service
URL:=https://github.com/stangri/adblock-fast/
- DEPENDS:=+jshn +curl
- DEPENDS+=+!BUSYBOX_DEFAULT_AWK:gawk
- DEPENDS+=+!BUSYBOX_DEFAULT_GREP:grep
- DEPENDS+=+!BUSYBOX_DEFAULT_SED:sed
- DEPENDS+=+!BUSYBOX_DEFAULT_SORT:coreutils-sort
PKGARCH:=all
+ DEPENDS:= \
+ +jshn \
+ +curl \
+ +!BUSYBOX_DEFAULT_AWK:gawk \
+ +!BUSYBOX_DEFAULT_GREP:grep \
+ +!BUSYBOX_DEFAULT_SED:sed \
+ +!BUSYBOX_DEFAULT_SORT:coreutils-sort
endef
define Package/adblock-fast/description
+++ /dev/null
-# 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/)
readonly packageName='adblock-fast'
readonly PKG_VERSION='dev-test'
-readonly packageCompat='8'
+readonly packageCompat='9'
readonly serviceName="$packageName $PKG_VERSION"
readonly packageMemoryThreshold='33554432'
readonly packageConfigFile="/etc/config/${packageName}"
json set status 'statusFail'
json add error 'errorOhSnap'
status_service 'on_start_failure'
+ resolver 'revert'
fi
adb_config_cache 'create'