From 281c4f8ec959735aec105466fc81d0044de16b58 Mon Sep 17 00:00:00 2001 From: Stan Grishin Date: Sat, 18 Mar 2017 16:23:35 -0700 Subject: [PATCH] simple-adblock: update domains/hosts filters, README. --- net/simple-adblock/Makefile | 2 +- net/simple-adblock/files/README.md | 13 ++++++++++++- net/simple-adblock/files/simple-adblock.init | 4 ++-- 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/net/simple-adblock/Makefile b/net/simple-adblock/Makefile index 3515ec69e3..158856e2b1 100644 --- a/net/simple-adblock/Makefile +++ b/net/simple-adblock/Makefile @@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=simple-adblock PKG_VERSION:=1.5.6 -PKG_RELEASE:=6 +PKG_RELEASE:=8 PKG_LICENSE:=GPL-3.0+ PKG_MAINTAINER:=Stan Grishin diff --git a/net/simple-adblock/files/README.md b/net/simple-adblock/files/README.md index 1a03740829..8dc82c0a04 100644 --- a/net/simple-adblock/files/README.md +++ b/net/simple-adblock/files/README.md @@ -64,7 +64,18 @@ If ```simple-adblock``` and ```luci-app-simple-adblock``` packages are not foun #### Add custom repo to your router If your router is not set up with the access to repository containing these packages you will need to add custom repository to your router by connecting to your router via ssh and running the following commands: + +###### OpenWrt CC 15.05.1 +```sh +opkg update; opkg install wget libopenssl +echo -e -n 'untrusted comment: public key 7ffc7517c4cc0c56\nRWR//HUXxMwMVnx7fESOKO7x8XoW4/dRidJPjt91hAAU2L59mYvHy0Fa\n' > /tmp/stangri-repo.pub && opkg-key add /tmp/stangri-repo.pub +! grep -q 'stangri_repo' /etc/opkg/customfeeds.conf && echo 'src/gz stangri_repo https://raw.githubusercontent.com/stangri/openwrt-repo/master' >> /etc/opkg/customfeeds.conf +opkg update +``` + +###### LEDE Project and OpenWrt DD trunk ```sh +opkg update; opkg install uclient-fetch libustream-mbedtls echo -e -n 'untrusted comment: public key 7ffc7517c4cc0c56\nRWR//HUXxMwMVnx7fESOKO7x8XoW4/dRidJPjt91hAAU2L59mYvHy0Fa\n' > /tmp/stangri-repo.pub && opkg-key add /tmp/stangri-repo.pub ! grep -q 'stangri_repo' /etc/opkg/customfeeds.conf && echo 'src/gz stangri_repo https://raw.githubusercontent.com/stangri/openwrt-repo/master' >> /etc/opkg/customfeeds.conf opkg update @@ -95,7 +106,7 @@ If you specify ```google.com``` as a domain to be whitelisted, you will have acc In general, whatever domain is specified to be whitelisted; it, along with with its subdomains will be whitelisted, but not any fake domains containing it. ## Documentation / Discussion -Please head to [OpenWrt Forum](https://forum.openwrt.org/viewtopic.php?pid=307950) or [LEDE Project Forum](https://forum.lede-project.org/t/simple-adblock-fast-lightweight-and-fully-uci-luci-configurable-ad-blocking/) for discussion of this package. +Please head to [OpenWrt Forum](https://forum.openwrt.org/viewtopic.php?pid=307950) or [LEDE Project Forum](https://forum.lede-project.org/t/simple-adblock-fast-lean-and-fully-uci-luci-configurable-adblocking/1327/) for discussion of this package. ## What's New 1.5.6: diff --git a/net/simple-adblock/files/simple-adblock.init b/net/simple-adblock/files/simple-adblock.init index f98cf05eef..94ca0e9fc3 100644 --- a/net/simple-adblock/files/simple-adblock.init +++ b/net/simple-adblock/files/simple-adblock.init @@ -9,8 +9,8 @@ readonly A_TMP='/var/hosts.allowed.tmp' readonly B_TMP='/var/hosts.blocked.tmp' readonly T_TMP='/var/simple-adblock.hosts' readonly dl='wget --no-check-certificate -qO-' -readonly h_filter='/localhost/d;/^#/d;/^$/d;/^[^0-9]/d;s/^0\.0\.0\.0.//;s/^127\.0\.0\.1.//;s/[[:space:]]*#.*$//;s/[[:cntrl:]]$//;s/[[:space:]]//g;' -readonly d_filter='/localhost/d;/^#/d;/^$/d;s/[[:space:]]*#.*$//;s/[[:space:]]*$//;s/[[:cntrl:]]$//;/[[:space:]]/d;/^