adblock: update 4.0.5-4
authorDirk Brenken <redacted>
Sun, 31 May 2020 16:28:27 +0000 (18:28 +0200)
committerDirk Brenken <redacted>
Sun, 31 May 2020 16:28:27 +0000 (18:28 +0200)
* remove dumb list cache
* start adblock processing after adding/removing
  list sources via CLI
* add regional list source for france

Signed-off-by: Dirk Brenken <redacted>
net/adblock/Makefile
net/adblock/files/README.md
net/adblock/files/adblock.init
net/adblock/files/adblock.sources

index a706fec05a457c71329c1f12afe373df1f0b0ac1..9d5237823a1acab40807682d5595088240cc77fc 100644 (file)
@@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=adblock
 PKG_VERSION:=4.0.5
-PKG_RELEASE:=3
+PKG_RELEASE:=4
 PKG_LICENSE:=GPL-3.0-or-later
 PKG_MAINTAINER:=Dirk Brenken <dev@brenken.org>
 
index f399cb8e1681cbc536f5b643b253ab037054051b..826913a952681440905321c8e29397096dc41819 100644 (file)
@@ -30,6 +30,7 @@ A lot of people already use adblocker plugins within their desktop browsers, but
 | reg_de              |         | M    | reg_germany      | [Link](https://easylist.to)                                      |
 | reg_es              |         | M    | reg_espania      | [Link](https://easylist.to)                                      |
 | reg_fi              |         | S    | reg_finland      | [Link](https://github.com/finnish-easylist-addition)             |
+| reg_fr              |         | S    | reg_france       | [Link](https://forums.lanik.us/viewforum.php?f=91)               |
 | reg_id              |         | M    | reg_indonesia    | [Link](https://easylist.to)                                      |
 | reg_nl              |         | M    | reg_netherlands  | [Link](https://easylist.to)                                      |
 | reg_pl              |         | M    | reg_poland       | [Link](https://kadantiscam.netlify.com)                          |
index 3471cc8df56a557b3f67bf7aca223d3030fcb85a..780e3b6bd3a3de3b92bc3376325b02f2b31eab39 100755 (executable)
@@ -114,19 +114,17 @@ list()
                if [ -n "$(uci -q changes adblock)" ]
                then
                        uci_commit adblock
+                       "${adb_init}" start
                fi
        else
                src_archive="$(uci_get adblock global adb_srcarc "/etc/adblock/adblock.sources.gz")"
                src_file="$(uci_get adblock global adb_srcfile "/tmp/adb_sources.json")"
                src_enabled="$(uci -q show adblock.global.adb_sources)"
-               if [ ! -r "${src_file}" ]
+               if [ -r "${src_archive}" ]
                then
-                       if [ -r "${src_archive}" ]
-                       then
-                               zcat "${src_archive}" > "${src_file}"
-                       else
-                               printf "%s\\n" "::: adblock source archive '${src_archive}' not found"
-                       fi
+                       zcat "${src_archive}" > "${src_file}"
+               else
+                       printf "%s\\n" "::: adblock source archive '${src_archive}' not found"
                fi
                if [ -r "${src_file}" ]
                then
index 1a8a2b11d5aec98c6988efd9cf64e105a4b2ce56..e9da27698730db6f56019df0972b93fec1f5478a 100644 (file)
                "focus": "reg_finland",
                "descurl": "https://github.com/finnish-easylist-addition"
        },
+       "reg_fr": {
+               "url": "https://easylist-downloads.adblockplus.org/liste_fr.txt",
+               "rule": "BEGIN{FS=\"[|^]\"}/^\\|\\|([[:alnum:]_-]{1,63}\\.)+[[:alpha:]]+\\^(\\$third-party)?$/{print tolower($3)}",
+               "size": "S",
+               "focus": "reg_france",
+               "descurl": "https://forums.lanik.us/viewforum.php?f=91"
+       },
        "reg_id": {
                "url": "https://easylist-downloads.adblockplus.org/abpindo+easylist.txt",
                "rule": "BEGIN{FS=\"[|^]\"}/^\\|\\|([[:alnum:]_-]{1,63}\\.)+[[:alpha:]]+\\^(\\$third-party)?$/{print tolower($3)}",
git clone https://git.99rst.org/PROJECT