PKG_NAME:=adblock
PKG_VERSION:=4.2.2
-PKG_RELEASE:=1
+PKG_RELEASE:=2
PKG_LICENSE:=GPL-3.0-or-later
PKG_MAINTAINER:=Dirk Brenken <dev@brenken.org>
## Prerequisites
* [OpenWrt](https://openwrt.org), tested with the stable release series and with the latest snapshot releases.
<b>Please note:</b> Devices with less than 128 MByte RAM are _not_ supported!
- <b>Please note:</b> For performance reasons, adblock depent on gnu awk (gawk) by default.
+ <b>Please note:</b> For performance reasons, adblock depend on gnu awk (gawk) by default.
If you insist to use the slow busybox awk implementation, remove the gawk package afterwards (_opkg remove gawk --force-depends_) or install adblock without any dependency checks/installation (_opkg install adblock --nodeps_). Both installation variants are officially unsupported.
* A usual setup with an enabled DNS backend at minimum - dumb AP modes without a working DNS backend are _not_ supported
* A download utility with SSL support: 'wget', 'uclient-fetch' with one of the 'libustream-*' ssl libraries, 'aria2c' or 'curl' is required
f_conf() {
local cnt="0" cnt_max="10"
- [ ! -r "/etc/config/adblock" ] && f_log "err" "no valid adblock config found, please re-install the package via opkg with the '--force-reinstall --force-maintainer' options"
+ [ ! -r "/etc/config/adblock" ] && f_log "err" "no valid adblock config found, please re-install the adblock package"
config_cb() {
option_cb() {
}
}
config_load adblock
-
- if [ -z "${adb_fetchutil}" ] || [ -z "${adb_dns}" ]; then
- while [ -z "${adb_packages}" ] && [ "${cnt}" -le "${cnt_max}" ]; do
- adb_packages="$(opkg list-installed 2>/dev/null)"
- cnt="$((cnt + 1))"
- sleep 1
- done
- [ -z "${adb_packages}" ] && f_log "err" "local opkg package repository is not available, please set 'adb_fetchutil' and 'adb_dns' manually"
- fi
}
# status helper function
f_log "err" "system libraries not found"
fi
-# initial system calls
+# reference required system utilities
#
adb_awkcmd="$(f_cmd gawk awk)"
adb_sortcmd="$(f_cmd sort)"