lede-packages-rs

git clone git://archive.git.mtrnord.blog/MTRNord/lede-packages-rs.git
Log | Files | Refs | README | LICENSE

commit 16ac0e820558f10e1e054c62988a5d329d154caf
parent 77dd883e3ef6473aa5088c479ac53377eca5df82
Author: Hannu Nyman <hannu.nyman@iki.fi>
Date:   Fri, 31 Mar 2017 10:33:54 +0300

Merge pull request #4218 from stangri/simple-adblock

simple-adblock: update hosts/domains filters, README
Diffstat:
Mnet/simple-adblock/Makefile | 2+-
Mnet/simple-adblock/files/README.md | 13++++++++++++-
Mnet/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 @@ -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 <stangri@melmac.net> diff --git 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 @@ -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;/^</d;' +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;/^$/d;' +readonly d_filter='/localhost/d;/^#/d;/*/d;s/[[:space:]]*#.*$//;s/[[:space:]]*$//;s/[[:cntrl:]]$//;/[[:space:]]/d;/^</d;/^$/d;' readonly f_filter='s|^|local=/|;s|$|/|' readonly _ok_='\033[0;32m\xe2\x9c\x93\033[0m' readonly _fail_='\033[0;31m\xe2\x9c\x97\033[0m'