From 8a4917a0a1f653d841d5b579c80c4f42fbaf38a6 Mon Sep 17 00:00:00 2001 From: Dirk Brenken Date: Fri, 28 Oct 2016 18:27:28 +0200 Subject: [PATCH] adblock: update 1.5.3 * make wget check more flexible, fix for broken wget package installations Signed-off-by: Dirk Brenken --- net/adblock/Makefile | 2 +- net/adblock/files/adblock-helper.sh | 8 +++++--- net/adblock/files/adblock-update.sh | 2 ++ 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/net/adblock/Makefile b/net/adblock/Makefile index de591c49b4..9f5d2611ee 100644 --- a/net/adblock/Makefile +++ b/net/adblock/Makefile @@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=adblock -PKG_VERSION:=1.5.2 +PKG_VERSION:=1.5.3 PKG_RELEASE:=1 PKG_LICENSE:=GPL-3.0+ PKG_MAINTAINER:=Dirk Brenken diff --git a/net/adblock/files/adblock-helper.sh b/net/adblock/files/adblock-helper.sh index 2253075e5a..b177fb6369 100644 --- a/net/adblock/files/adblock-helper.sh +++ b/net/adblock/files/adblock-helper.sh @@ -6,7 +6,7 @@ # LC_ALL=C PATH="/usr/sbin:/usr/bin:/sbin:/bin" -adb_scriptver="1.5.2" +adb_scriptver="1.5.3" adb_mincfgver="2.5" adb_hotplugif="" adb_lanif="lan" @@ -242,10 +242,12 @@ f_envcheck() f_depend "wget -" "true" if [ "${package_ok}" = "true" ] then - adb_fetch="$(which wget)" + adb_fetch="$(which /usr/bin/wget* | head -1)" fetch_parm="--no-config --quiet --tries=1 --no-cache --no-cookies --max-redirect=0 --dns-timeout=${adb_fetchttl} --connect-timeout=${adb_fetchttl} --read-timeout=${adb_fetchttl}" response_parm="--spider --server-response" - else + fi + if [ -z "${adb_fetch}" ] + then rc=-1 f_log "please install 'uclient-fetch' or 'wget' with ssl support to use adblock" f_exit diff --git a/net/adblock/files/adblock-update.sh b/net/adblock/files/adblock-update.sh index c7df4ddb1c..500455cf21 100755 --- a/net/adblock/files/adblock-update.sh +++ b/net/adblock/files/adblock-update.sh @@ -41,6 +41,8 @@ f_envcheck # main loop for all block list sources # +f_log "use '${adb_fetch}' for list downloads" + for src_name in ${adb_sources} do # check disabled sources -- 2.30.2