Skip to content

Commit

Permalink
adblock: release 4.2.5-1
Browse files Browse the repository at this point in the history
* removed needless subshell calls
* add memory measurements:
   - size of the final blocklist in MB
   - free memory in MB (MemAvailable from /proc/meminfo)
   - script max. used RAM (VmHWM from /proc/$$/status)
* optimized restart logic
* cosmetics

Signed-off-by: Dirk Brenken <[email protected]>
  • Loading branch information
dibdot committed Feb 17, 2025
1 parent 7ff04e9 commit 162b1e6
Show file tree
Hide file tree
Showing 5 changed files with 94 additions and 85 deletions.
4 changes: 2 additions & 2 deletions net/adblock/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=adblock
PKG_VERSION:=4.2.4
PKG_RELEASE:=2
PKG_VERSION:=4.2.5
PKG_RELEASE:=1
PKG_LICENSE:=GPL-3.0-or-later
PKG_MAINTAINER:=Dirk Brenken <[email protected]>

Expand Down
2 changes: 1 addition & 1 deletion net/adblock/files/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ Available commands:
| adb_enabled | 1, enabled | set to 0 to disable the adblock service |
| adb_srcarc | -, /etc/adblock/adblock.sources.gz | full path to the used adblock source archive |
| adb_srcfile | -, /tmp/adb_sources.json | full path to the used adblock source file, which has a higher precedence than the archive file |
| adb_dns | -, auto-detected | 'dnsmasq', 'unbound', 'named', 'kresd' or 'raw' |
| adb_dns | -, auto-detected | 'dnsmasq', 'unbound', 'named', 'kresd', 'smartdns' or 'raw' |
| adb_fetchutil | -, auto-detected | 'uclient-fetch', 'wget', 'curl' or 'aria2c' |
| adb_fetchparm | -, auto-detected | manually override the config options for the selected download utility |
| adb_fetchinsecure | 0, disabled | don't check SSL server certificates during download |
Expand Down
1 change: 1 addition & 0 deletions net/adblock/files/adblock.init
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ stop_service() {
}

restart() {
rc_procd "${adb_script}" stop
rc_procd start_service restart
}

Expand Down
2 changes: 1 addition & 1 deletion net/adblock/files/adblock.mail
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh
# send mail script for adblock notifications
# Copyright (c) 2015-2024 Dirk Brenken ([email protected])
# Copyright (c) 2015-2025 Dirk Brenken ([email protected])
# This is free software, licensed under the GNU General Public License v3.

# Please note: you have to manually install and configure the package 'msmtp' before using this script
Expand Down
Loading

0 comments on commit 162b1e6

Please sign in to comment.