[18.06] simple-adblock: support for varios DNS resolvers/options

Signed-off-by: Stan Grishin <stangri@melmac.net>
This commit is contained in:
Stan Grishin
2019-08-17 06:09:43 -07:00
parent a4314b868c
commit 8e8087706d
4 changed files with 515 additions and 289 deletions
+8 -4
View File
@@ -5,8 +5,8 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=simple-adblock
PKG_VERSION:=1.7.0
PKG_RELEASE:=1
PKG_VERSION:=1.8.0
PKG_RELEASE:=0
PKG_MAINTAINER:=Stan Grishin <stangri@melmac.net>
PKG_LICENSE:=GPL-3.0-or-later
@@ -20,8 +20,8 @@ define Package/simple-adblock
endef
define Package/simple-adblock/description
This service provides dnsmasq-based ad blocking.
Please see the README for further information.
This service provides DNSMASQ or Unbound based ad blocking.
Please see the project's README at github for further information.
endef
@@ -71,6 +71,10 @@ define Package/simple-adblock/prerm
if [ -z "$${IPKG_INSTROOT}" ]; then
while uci -q del ucitrack.@simple-adblock[-1]; do :; done
echo "Stopping service and removing rc.d symlink for simple-adblock"
uci -q del_list dhcp.@dnsmasq[0].addnhosts="/var/run/simple-adblock.addnhosts" || true
if [ "$$(uci -q get dhcp.@dnsmasq[0].serversfile)" == "/var/run/simple-adblock.servers" ]; then
uci -q del dhcp.@dnsmasq[0].serversfile || true
fi
/etc/init.d/simple-adblock stop || true
/etc/init.d/simple-adblock killcache || true
/etc/init.d/simple-adblock disable || true