From: Stan Grishin Date: Sun, 4 Jan 2026 19:21:54 +0000 (+0000) Subject: adblock-fast: update to 1.2.0-26 X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=e367c1d7395d6e9c28b5a5f154d9b5435133917e;p=openwrt-packages.git adblock-fast: update to 1.2.0-26 Makefile: * nicer DEPENDS Init Script: * ensure resolver config is reverted and resolver is restarted on service fail Signed-off-by: Stan Grishin --- diff --git a/net/adblock-fast/Makefile b/net/adblock-fast/Makefile index 73f954858..62e3c29e0 100644 --- a/net/adblock-fast/Makefile +++ b/net/adblock-fast/Makefile @@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=adblock-fast PKG_VERSION:=1.2.0 -PKG_RELEASE:=22 +PKG_RELEASE:=26 PKG_MAINTAINER:=Stan Grishin PKG_LICENSE:=AGPL-3.0-or-later @@ -16,12 +16,14 @@ define Package/adblock-fast 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 diff --git a/net/adblock-fast/files/README.md b/net/adblock-fast/files/README.md deleted file mode 100644 index df2669414..000000000 --- a/net/adblock-fast/files/README.md +++ /dev/null @@ -1,20 +0,0 @@ -# adblock-fast - -[![OpenWrt](https://img.shields.io/badge/OpenWrt-Compatible-blueviolet)](https://openwrt.org) -[![Web UI](https://img.shields.io/badge/Web_UI-Available-blue)](https://docs.openwrt.melmac.ca/adblock-fast/) -[![Lightweight](https://img.shields.io/badge/Size-Lightweight-brightgreen)](https://openwrt.org/packages/pkgdata/adblock-fast) -[![License](https://img.shields.io/badge/License-AGPL--3.0--or--later-lightgrey)](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/) diff --git a/net/adblock-fast/files/etc/init.d/adblock-fast b/net/adblock-fast/files/etc/init.d/adblock-fast index 40e69bc27..2e2f281dc 100755 --- a/net/adblock-fast/files/etc/init.d/adblock-fast +++ b/net/adblock-fast/files/etc/init.d/adblock-fast @@ -24,7 +24,7 @@ fi 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}" @@ -2008,6 +2008,7 @@ start_service() { json set status 'statusFail' json add error 'errorOhSnap' status_service 'on_start_failure' + resolver 'revert' fi adb_config_cache 'create'