Browse Source

Merge pull request #13186 from stangri/master-simple-adblock

simple-adblock: bugfix: update config; use command -v
lilik-openwrt-22.03
Rosen Penev 4 years ago
committed by GitHub
parent
commit
eb0c69c777
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 4 deletions
  1. +1
    -1
      net/simple-adblock/Makefile
  2. +1
    -1
      net/simple-adblock/files/simple-adblock.conf
  3. +1
    -0
      net/simple-adblock/files/simple-adblock.conf.update
  4. +2
    -2
      net/simple-adblock/files/simple-adblock.init

+ 1
- 1
net/simple-adblock/Makefile View 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


+ 1
- 1
net/simple-adblock/files/simple-adblock.conf View 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'


+ 1
- 0
net/simple-adblock/files/simple-adblock.conf.update View 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


+ 2
- 2
net/simple-adblock/files/simple-adblock.init View 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


Loading…
Cancel
Save