simple-adblock: bugfix: update config; use command -v
authorStan Grishin <stangri@melmac.net>
Fri, 21 Aug 2020 23:29:02 +0000 (23:29 +0000)
committerStan Grishin <stangri@melmac.net>
Fri, 21 Aug 2020 23:29:02 +0000 (23:29 +0000)
Signed-off-by: Stan Grishin <stangri@melmac.net>
net/simple-adblock/Makefile
net/simple-adblock/files/simple-adblock.conf
net/simple-adblock/files/simple-adblock.conf.update
net/simple-adblock/files/simple-adblock.init

index 6cc7cf504bc22c4a943ce582439cf48110cf7ac8..d917628ce266675c01b09035a439f367216bc5b5 100644 (file)
@@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=simple-adblock
 PKG_VERSION:=1.8.3
-PKG_RELEASE:=13
+PKG_RELEASE:=15
 PKG_MAINTAINER:=Stan Grishin <stangri@melmac.net>
 PKG_LICENSE:=GPL-3.0-or-later
 
index d38f337ec46d946a98ec0f15bae652fc5e7b0a56..726116f304324607fc204262f1b99221faa831bf 100644 (file)
@@ -18,7 +18,7 @@ config simple-adblock 'config'
        list blocked_domains_url 'https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt'
 
 # File size: 12.0K
-       list blocked_domains_url 'https://ssl.bblck.me/blacklists/domain-list.txt'
+       list blocked_domains_url 'https://cdn.jsdelivr.net/gh/paulgb/BarbBlock/blacklists/domain-list.txt'
 
 # File size: 44.0K
        list blocked_domains_url 'https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt'
index 80fcf2f2052e006e23ab2eeb7274b6cac5310ecb..d5d666e9d1e07d91b04f1228df6c2ea83ce79a0a 100644 (file)
@@ -3,6 +3,7 @@ s|whitelist_domain|allowed_domain|g
 s|blacklist_hosts_url|blocked_hosts_url|g
 s|blacklist_domains_url|blocked_domains_url|g
 s|blacklist_domain|blocked_domain|g
+s|ssl.bblck.me|cdn.jsdelivr.net/gh/paulgb/BarbBlock|g
 s|dbl.oisd.nl|hosts.oisd.nl|g
 s|raw.githubusercontent.com/StevenBlack/hosts/|cdn.jsdelivr.net/gh/StevenBlack/hosts@|g
 s|raw.githubusercontent.com/hoshsadiq/adblock-nocoin-list/|cdn.jsdelivr.net/gh/hoshsadiq/adblock-nocoin-list@|g
index 69a1ff6afa139428b11ddfd4da3fb406300074cf..40e977ab0b26d450157fad53b8d3dbd40e11bb0b 100644 (file)
@@ -247,10 +247,10 @@ load_package_config() {
        . /lib/functions/network.sh
        . /usr/share/libubox/jshn.sh
        # Prefer curl because it supports the file:// scheme.
-       if [ -x /usr/bin/curl ]; then
+       if command -v curl >/dev/null 2>&1; then
                dl_command="curl --insecure --retry $curlRetry --connect-timeout $dlTimeout --silent"
                dl_flag="-o"
-       elif wget --version 2>/dev/null | grep -q "+https"; then
+       elif command -v wget >/dev/null 2>&1 && wget --version 2>/dev/null | grep -q "+https"; then
                dl_command="wget --no-check-certificate --timeout $dlTimeout -q"
                dl_flag="-O"
        else