adblock: update to 4.2.1
authorDirk Brenken <dev@brenken.org>
Sun, 11 Aug 2024 07:31:29 +0000 (09:31 +0200)
committerDirk Brenken <dev@brenken.org>
Sun, 11 Aug 2024 07:31:57 +0000 (09:31 +0200)
* added full 1Hosts feed support (4 categories)
* changed the OISD list sources to alternate wildcard domains syntax
* used only the adguard source in default config
* fixed a needless reload delay plus a few cosmetics

Signed-off-by: Dirk Brenken <dev@brenken.org>
net/adblock/Makefile
net/adblock/files/README.md
net/adblock/files/adblock.categories
net/adblock/files/adblock.conf
net/adblock/files/adblock.init
net/adblock/files/adblock.sh
net/adblock/files/adblock.sources

index 13e6fea1b400550bef2c9a9f4a5fb11fd8c8393f..550fa36a5c92eb242ceccef95b73d635996df205 100644 (file)
@@ -6,7 +6,7 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=adblock
-PKG_VERSION:=4.2.0
+PKG_VERSION:=4.2.1
 PKG_RELEASE:=1
 PKG_LICENSE:=GPL-3.0-or-later
 PKG_MAINTAINER:=Dirk Brenken <dev@brenken.org>
index 9cef9e78f529678fcbef779d27f1cb2d1cd66469..fcfb5709a3c2d87aa96dc337ddd1d010b72ab499 100644 (file)
@@ -10,7 +10,8 @@ A lot of people already use adblocker plugins within their desktop browsers, but
 
 | Source              | Enabled | Size | Focus            | Information                                                                       |
 | :------------------ | :-----: | :--- | :--------------- | :-------------------------------------------------------------------------------- |
-| adaway              | x       | S    | mobile           | [Link](https://github.com/AdAway/adaway.github.io)                                |
+| 1Hosts              |         | VAR  | compilation      | [Link](https://github.com/badmojr/1Hosts)                                         |
+| adaway              |         | S    | mobile           | [Link](https://github.com/AdAway/adaway.github.io)                                |
 | adguard             | x       | L    | general          | [Link](https://adguard.com)                                                       |
 | adguard_tracking    |         | L    | tracking         | [Link](https://github.com/AdguardTeam/cname-trackers)                             |
 | android_tracking    |         | S    | tracking         | [Link](https://github.com/Perflyst/PiHoleBlocklist)                               |
@@ -20,7 +21,7 @@ A lot of people already use adblocker plugins within their desktop browsers, but
 | anudeep             |         | M    | compilation      | [Link](https://github.com/anudeepND/blacklist)                                    |
 | bitcoin             |         | S    | mining           | [Link](https://github.com/hoshsadiq/adblock-nocoin-list)                          |
 | cpbl                |         | XL   | compilation      | [Link](https://github.com/bongochong/CombinedPrivacyBlockLists)                   |
-| disconnect          | x       | S    | general          | [Link](https://disconnect.me)                                                     |
+| disconnect          |         | S    | general          | [Link](https://disconnect.me)                                                     |
 | doh_blocklist       |         | S    | doh_server       | [Link](https://github.com/dibdot/DoH-IP-blocklists)                               |
 | easylist            |         | M    | compilation      | [Link](https://easylist.to)                                                       |
 | easyprivacy         |         | M    | tracking         | [Link](https://easylist.to)                                                       |
@@ -60,7 +61,7 @@ A lot of people already use adblocker plugins within their desktop browsers, but
 | whocares            |         | M    | general          | [Link](https://someonewhocares.org)                                               |
 | winhelp             |         | S    | general          | [Link](https://winhelp2002.mvps.org)                                              |
 | winspy              |         | S    | win_telemetry    | [Link](https://github.com/crazy-max/WindowsSpyBlocker)                            |
-| yoyo                | x       | S    | general          | [Link](https://pgl.yoyo.org/adservers)                                            |
+| yoyo                |         | S    | general          | [Link](https://pgl.yoyo.org/adservers)                                            |
 
 * List of supported and fully pre-configured adblock sources, already active sources are pre-selected.  
   <b><em>To avoid OOM errors, please do not select too many lists!</em></b>  
@@ -134,7 +135,7 @@ Available commands:
        resume          Resume adblock processing
        query           &lt;domain&gt; Query active blocklists and backups for a specific domain
        report          [&lt;search&gt;] Print DNS statistics with an optional search parameter
-       list            [&lt;add&gt;|&lt;add_utc&gt;|&lt;add_eng&gt;|&lt;add_stb&gt;|&lt;remove&gt;|&lt;remove_utc&gt;|&lt;remove_eng&gt;|&lt;remove_stb&gt;] &lt;source(s)&gt; List/Edit available sources
+       list            List available sources
        timer           [&lt;add&gt; &lt;tasks&gt; &lt;hour&gt; [&lt;minute&gt;] [&lt;weekday&gt;]]|[&lt;remove&gt; &lt;line no.&gt;] List/Edit cron update intervals
        version         Print version information
        running         Check if service is running
index 3aadc53ac01075a2968b4e5b2961d747009e6364..21aa2f7acc8e46524eb7e90cd945cab0fe9f4fbd 100644 (file)
@@ -1,7 +1,7 @@
 hag;multi-light;light-onlydomains.txt
 hag;multi-normal;multi-onlydomains.txt
 hag;multi-pro;pro-onlydomains.txt
-hag;multi-pro;pro.mini-onlydomains.txt
+hag;multi-pro.mini;pro.mini-onlydomains.txt
 hag;multi-pro.plus;pro.plus-onlydomains.txt
 hag;multi-pro.mini;pro.plus.mini-onlydomains.txt
 hag;multi-ultimate;ultimate-onlydomains.txt
@@ -30,6 +30,10 @@ hag;native.winoffice;native.winoffice-onlydomains.txt
 hag;native.xiaomi;native.xiaomi-onlydomains.txt
 hag;nosafesearch;nosafesearch-onlydomains.txt
 hag;popupads;popupads-onlydomains.txt
+hst;mini;mini/domains.wildcards
+hst;lite;Lite/domains.wildcards
+hst;pro;Pro/domains.wildcards
+hst;xtra;Xtra/domains.wildcards
 stb;standard;hosts
 stb;standard-fakenews;alternates/fakenews/hosts
 stb;standard-fakenews-gambling;alternates/fakenews-gambling/hosts
index aeceb500f2befa0056e1d2d7d79e8643a3f5fb85..28a77738d6bdfc400c9d24f30b90d15e155219a4 100644 (file)
@@ -8,7 +8,4 @@ config adblock 'global'
        option adb_mail '0'
        option adb_report '0'
        option adb_backup '1'
-       list adb_sources 'adaway'
        list adb_sources 'adguard'
-       list adb_sources 'disconnect'
-       list adb_sources 'yoyo'
index 051ecb2b128f4740c6b5cb740320a1b251480758..f1acb456f23f051558c6d8b7b7ec1ce3c114d0bd 100755 (executable)
@@ -201,8 +201,10 @@ service_triggers() {
 
        iface="$(uci_get adblock global adb_trigger)"
        delay="$(uci_get adblock global adb_triggerdelay "5")"
-       PROCD_RELOAD_DELAY="$((delay * 1000))"
 
+       PROCD_RELOAD_DELAY="$((delay * 1000))"
        [ -n "${iface}" ] && procd_add_interface_trigger "interface.*.up" "${iface}" "${adb_init}" "start"
+
+       PROCD_RELOAD_DELAY="$((2 * 1000))"
        procd_add_reload_trigger "adblock"
 }
index a3b0e96ba0a84330081a58ddd4f751ed531b76f3..084a3ad6e25291254729f805896dec2f1c0aee48 100755 (executable)
@@ -11,7 +11,7 @@
 export LC_ALL=C
 export PATH="/usr/sbin:/usr/bin:/sbin:/bin"
 
-adb_ver="4.2.0"
+adb_ver="4.2.1"
 adb_enabled="0"
 adb_debug="0"
 adb_forcedns="0"
@@ -185,6 +185,8 @@ f_conf() {
                                eval "${option}=\"$(printf "%s" "${adb_sources}") ${value}\""
                        elif [ "${option}" = "adb_hag_sources" ]; then
                                eval "${option}=\"$(printf "%s" "${adb_hag_sources}") ${value}\""
+                       elif [ "${option}" = "adb_hst_sources" ]; then
+                               eval "${option}=\"$(printf "%s" "${adb_hst_sources}") ${value}\""
                        elif [ "${option}" = "adb_stb_sources" ]; then
                                eval "${option}=\"$(printf "%s" "${adb_stb_sources}") ${value}\""
                        elif [ "${option}" = "adb_utc_sources" ]; then
@@ -1211,11 +1213,14 @@ f_main() {
                                ) &
                        fi
                else
-                       if [ "${src_name}" = "stevenblack" ] && [ -n "${adb_stb_sources}" ]; then
-                               src_cat="${adb_stb_sources}"
+                       if [ "${src_name}" = "1hosts" ] && [ -n "${adb_hst_sources}" ]; then
+                               src_cat="${adb_hst_sources}"
                        elif [ "${src_name}" = "hagezi" ] && [ -n "${adb_hag_sources}" ]; then
                                src_cat="${adb_hag_sources}"
-                       elif { [ "${src_name}" = "hagezi" ] && [ -z "${adb_hag_sources}" ]; } ||
+                       elif [ "${src_name}" = "stevenblack" ] && [ -n "${adb_stb_sources}" ]; then
+                               src_cat="${adb_stb_sources}"
+                       elif { [ "${src_name}" = "1hosts" ] && [ -z "${adb_hst_sources}" ]; } ||
+                               { [ "${src_name}" = "hagezi" ] && [ -z "${adb_hag_sources}" ]; } ||
                                { [ "${src_name}" = "stevenblack" ] && [ -z "${adb_stb_sources}" ]; }; then
                                continue
                        fi
index 189f5742c4fdae7a703615dc572432d8e2562be6..4851d0077ad79b3c316acbc5f287ec052d8218d8 100644 (file)
@@ -1,4 +1,11 @@
 {
+       "1hosts": {
+               "url": "https://raw.githubusercontent.com/badmojr/1Hosts/master/",
+               "rule": "/^([[:alnum:]_-]{1,63}\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($1)}",
+               "size": "VAR",
+               "focus": "compilation",
+               "descurl": "https://github.com/badmojr/1Hosts"
+       },
        "adaway": {
                "url": "https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt",
                "rule": "/^127\\.0\\.0\\.1[[:space:]]+([[:alnum:]_-]{1,63}\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($2)}",
                "descurl": "https://github.com/notracking/hosts-blocklists"
        },
        "oisd_big": {
-               "url": "https://big.oisd.nl/domainswild",
-               "rule": "BEGIN{FS=\"\\\\*.\"}/^\\*\\.([[:alnum:]_-]{1,63}\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($2)}",
+               "url": "https://big.oisd.nl/domainswild2",
+               "rule": "/^([[:alnum:]_-]{1,63}\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($1)}",
                "size": "XXL",
                "focus": "general",
                "descurl": "https://oisd.nl"
        },
        "oisd_nsfw": {
-               "url": "https://nsfw.oisd.nl/domainswild",
-               "rule": "BEGIN{FS=\"\\\\*.\"}/^\\*\\.([[:alnum:]_-]{1,63}\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($2)}",
+               "url": "https://nsfw.oisd.nl/domainswild2",
+               "rule": "/^([[:alnum:]_-]{1,63}\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($1)}",
                "size": "XXL",
                "focus": "porn",
                "descurl": "https://oisd.nl"
        },
        "oisd_small": {
-               "url": "https://small.oisd.nl/domainswild",
-               "rule": "BEGIN{FS=\"\\\\*.\"}/^\\*\\.([[:alnum:]_-]{1,63}\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($2)}",
+               "url": "https://small.oisd.nl/domainswild2",
+               "rule": "/^([[:alnum:]_-]{1,63}\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($1)}",
                "size": "L",
                "focus": "general",
                "descurl": "https://oisd.nl"