adblock: 4.1.3-6
authorDirk Brenken <dev@brenken.org>
Mon, 7 Mar 2022 20:25:31 +0000 (21:25 +0100)
committerDirk Brenken <dev@brenken.org>
Tue, 10 May 2022 15:55:47 +0000 (17:55 +0200)
* remove discontinued sources: shallalist, stalkerware
* fix a logical glitch in startup trigger handling

Signed-off-by: Dirk Brenken <dev@brenken.org>
(cherry picked from commit 81d468489f922dfc30195772f63d6284a6f6f508)

net/adblock/Makefile
net/adblock/files/README.md
net/adblock/files/adblock.categories
net/adblock/files/adblock.init
net/adblock/files/adblock.sh
net/adblock/files/adblock.sources

index 1753856ce14d495acc930557960977aac1e0f770..7d7c6b9752d374f96043e732916879fba3d6a0fc 100644 (file)
@@ -1,5 +1,5 @@
 #
-# Copyright (c) 2015-2021 Dirk Brenken (dev@brenken.org)
+# Copyright (c) 2015-2022 Dirk Brenken (dev@brenken.org)
 # This is free software, licensed under the GNU General Public License v3.
 #
 
@@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=adblock
 PKG_VERSION:=4.1.3
-PKG_RELEASE:=5
+PKG_RELEASE:=6
 PKG_LICENSE:=GPL-3.0-or-later
 PKG_MAINTAINER:=Dirk Brenken <dev@brenken.org>
 
index 9a3bea6fc3503fb7315dfe46c852139cce431d75..ff3f01e89fcee241a3a37340e1364536dac7e766 100644 (file)
@@ -44,10 +44,8 @@ A lot of people already use adblocker plugins within their desktop browsers, but
 | reg_ru              |         | M    | reg_russia       | [Link](https://easylist.to)                                                       |
 | reg_se              |         | M    | reg_sweden       | [Link](https://github.com/lassekongo83/Frellwits-filter-lists)                    |
 | reg_vn              |         | S    | reg_vietnam      | [Link](https://bigdargon.github.io/hostsVN)                                       |
-| shallalist          |         | VAR  | general          | [Link](https://www.shallalist.de)                                                 |
 | smarttv_tracking    |         | S    | tracking         | [Link](https://github.com/Perflyst/PiHoleBlocklist)                               |
 | spam404             |         | S    | general          | [Link](https://github.com/Dawsey21)                                               |
-| stalkerware         |         | S    | tracking         | [Link](https://github.com/astryzia/stalkerware-urls)                              |
 | stevenblack         |         | VAR  | compilation      | [Link](https://github.com/StevenBlack/hosts)                                      |
 | stopforumspam       |         | S    | spam             | [Link](https://www.stopforumspam.com)                                             |
 | utcapitole          |         | VAR  | general          | [Link](https://dsi.ut-capitole.fr/blacklists/index_en.php)                        |
index 68104c0edce10a40b0f6cca5c60882b27dfb3d98..0cfd3d0b20d77dea3ab2afd95da9c43585a311da 100644 (file)
@@ -9,61 +9,6 @@ eng;porn;porn/formats/domains.txt
 eng;spark;spark/formats/domains.txt
 eng;ultimate;ultimate/formats/domains.txt
 eng;unified;unified/formats/domains.txt
-sha;adv
-sha;aggressive
-sha;alcohol
-sha;anonvpn
-sha;automobile
-sha;chat
-sha;costtraps
-sha;dating
-sha;downloads
-sha;drugs
-sha;dynamic
-sha;education
-sha;finance
-sha;fortunetelling
-sha;forum
-sha;gamble
-sha;government
-sha;hacking
-sha;hobby
-sha;homestyle
-sha;hospitals
-sha;imagehosting
-sha;isp
-sha;jobsearch
-sha;library
-sha;military
-sha;models
-sha;movies
-sha;music
-sha;news
-sha;podcasts
-sha;politics
-sha;porn
-sha;radiotv
-sha;recreation
-sha;redirector
-sha;religion
-sha;remotecontrol
-sha;ringtones
-sha;science
-sha;searchengines
-sha;sex
-sha;shopping
-sha;socialnet
-sha;spyware
-sha;tracker
-sha;updatesites
-sha;urlshortener
-sha;violence
-sha;warez
-sha;weapons
-sha;webmail
-sha;webphone
-sha;webradio
-sha;webtv
 stb;fakenews;alternates/fakenews/hosts
 stb;fakenews-gambling;alternates/fakenews-gambling/hosts
 stb;fakenews-gambling-porn;alternates/fakenews-gambling-porn/hosts
index 9ef6215df8958bcb12740e934626052f14ea2bd9..420048df6d21902dd00ff4db97f0850755179a2c 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/sh /etc/rc.common
-# Copyright (c) 2015-2021 Dirk Brenken (dev@brenken.org)
+# Copyright (c) 2015-2022 Dirk Brenken (dev@brenken.org)
 # This is free software, licensed under the GNU General Public License v3.
 
 # set (s)hellcheck exceptions
@@ -353,16 +353,6 @@ service_triggers()
        delay="$(uci_get adblock global adb_triggerdelay "5")"
        PROCD_RELOAD_DELAY=$((delay*1000))
 
-       if [ -z "${iface}" ]
-       then
-               . "/lib/functions/network.sh"
-               network_find_wan iface
-               if [ -n "${iface}" ]
-               then
-                       uci_set adblock global adb_trigger "${iface}"
-                       uci_commit "adblock"
-               fi
-       fi
        if [ -n "${iface}" ]
        then
                procd_add_interface_trigger "interface.*.up" "${iface}" "${adb_init}" "start"
index f249d26758b629643d4cd57a61757a2a68700a2a..24141f9c32a090a0111c896c8384f2a9904abe01 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 # dns based ad/abuse domain blocking
-# Copyright (c) 2015-2021 Dirk Brenken (dev@brenken.org)
+# Copyright (c) 2015-2022 Dirk Brenken (dev@brenken.org)
 # This is free software, licensed under the GNU General Public License v3.
 
 # set (s)hellcheck exceptions
@@ -217,9 +217,6 @@ f_conf()
                        elif [ "${option}" = "adb_eng_sources" ]
                        then
                                eval "${option}=\"$(printf "%s" "${adb_eng_sources}") ${value}\""
-                       elif [ "${option}" = "adb_sha_sources" ]
-                       then
-                               eval "${option}=\"$(printf "%s" "${adb_sha_sources}") ${value}\""
                        elif [ "${option}" = "adb_stb_sources" ]
                        then
                                eval "${option}=\"$(printf "%s" "${adb_stb_sources}") ${value}\""
@@ -1486,15 +1483,9 @@ f_main()
                # download queue processing
                #
                unset src_cat src_entries
-               if [ "${src_name}" = "shallalist" ] || [ "${src_name}" = "utcapitole" ]
+               if [ "${src_name}" = "utcapitole" ] && [ -n "${adb_utc_sources}" ]
                then
-                       if [ "${src_name}" = "shallalist" ] && [ -n "${adb_sha_sources}" ]
-                       then
-                               src_cat="${adb_sha_sources}"
-                       elif [ "${src_name}" = "utcapitole" ] && [ -n "${adb_utc_sources}" ]
-                       then
-                               src_cat="${adb_utc_sources}"
-                       fi
+                       src_cat="${adb_utc_sources}"
                        if [ -n "${src_cat}" ]
                        then
                                (
index ac4b01e93c870e3902628b1430ecb88109dffd88..3c08ec7b2a9de71d1217c9cff06868346bfaa3a8 100644 (file)
                "focus": "reg_vietnam",
                "descurl": "https://bigdargon.github.io/hostsVN"
        },
-       "shallalist": {
-               "url": "https://www.shallalist.de/Downloads/shallalist.tar.gz",
-               "rule": "/^([[:alnum:]_-]{1,63}\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($1)}",
-               "size": "VAR",
-               "focus": "general",
-               "descurl": "https://www.shallalist.de"
-       },
        "smarttv_tracking": {
                "url": "https://raw.githubusercontent.com/Perflyst/PiHoleBlocklist/master/SmartTV.txt",
                "rule": "/^([[:alnum:]_-]{1,63}\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($1)}",
                "focus": "general",
                "descurl": "https://github.com/Dawsey21"
        },
-       "stalkerware": {
-               "url": "https://raw.githubusercontent.com/astryzia/stalkerware-urls/main/stalkerware_urls.txt",
-               "rule": "/^([[:alnum:]_-]{1,63}\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($1)}",
-               "size": "S",
-               "focus": "tracking",
-               "descurl": "https://github.com/astryzia/stalkerware-urls"
-       },
        "stevenblack": {
                "url": "https://raw.githubusercontent.com/StevenBlack/hosts/master/",
                "rule": "/^0\\.0\\.0\\.0[[:space:]]+([[:alnum:]_-]{1,63}\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($2)}",