mirror of
https://github.com/openwrt/packages.git
synced 2025-12-21 21:24:31 +04:00
unbound: pull in adblock-fast generated adb_list
* adblock-fast can generate the compatible adb_list-file, but it's only pulled if net/adblock installed, this patch also pulls in the adb_list file if net/adblock-fast is installed. * also bump PKG_RELEASE Signed-off-by: Stan Grishin <stangri@melmac.ca>
This commit is contained in:
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=unbound
|
PKG_NAME:=unbound
|
||||||
PKG_VERSION:=1.19.3
|
PKG_VERSION:=1.19.3
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=https://nlnetlabs.nl/downloads/unbound
|
PKG_SOURCE_URL:=https://nlnetlabs.nl/downloads/unbound
|
||||||
|
|||||||
@@ -1477,14 +1477,16 @@ unbound_include() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
if [ -z "$adb_files" ] || [ ! -x /usr/bin/adblock.sh ] \
|
if [ -z "$adb_files" ]; then
|
||||||
|| [ ! -x /etc/init.d/adblock ] ; then
|
|
||||||
adb_enabled=0
|
adb_enabled=0
|
||||||
|
|
||||||
elif /etc/init.d/adblock enabled ; then
|
elif { [ -x /etc/init.d/adblock-fast ] && /etc/init.d/adblock-fast enabled; } \
|
||||||
|
|| { [ -x /usr/bin/adblock.sh ] && [ -x /etc/init.d/adblock ] \
|
||||||
|
&& /etc/init.d/adblock enabled; }; then
|
||||||
adb_enabled=1
|
adb_enabled=1
|
||||||
{
|
{
|
||||||
# Pull in your selected openwrt/pacakges/net/adblock generated lists
|
# Pull in your selected openwrt/pacakges/net/adblock or
|
||||||
|
# openwrt/pacakges/net/adblock-fast generated lists
|
||||||
echo "include: $UB_VARDIR/adb_list.*"
|
echo "include: $UB_VARDIR/adb_list.*"
|
||||||
echo
|
echo
|
||||||
} >> $UB_TOTAL_CONF
|
} >> $UB_TOTAL_CONF
|
||||||
|
|||||||
Reference in New Issue
Block a user