-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* privoxy-blocklist: fix handling of debug configuration vs. argument * privoxy-blocklist: show configuration path in help * privoxy-blocklist: fix unset variable when INIT_CONF is missing * privoxy-blocklist: support lists without Adblock-header * tests: run tests with different predefined configs * tests: fix Dockerfile path when running run.sh * tests: add helper function check_in and check_not_in * tests: move helper function to the bottom Signed-off-by: Andrwe Lord Weber <[email protected]>
- Loading branch information
Showing
5 changed files
with
177 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Config of privoxy-blocklist | ||
|
||
# array of URL for AdblockPlus lists | ||
# for more sources just add it within the round brackets | ||
URLS=( | ||
"https://easylist-downloads.adblockplus.org/easylistgermany.txt" | ||
"https://easylist-downloads.adblockplus.org/easylist.txt" | ||
) | ||
|
||
# config for privoxy initscript providing PRIVOXY_CONF, PRIVOXY_USER and PRIVOXY_GROUP | ||
#INIT_CONF="/etc/conf.d/privoxy" | ||
|
||
# !! set these when config INIT_CONF doesn't exist and default values do not match your system !! | ||
# !! These values will be overwritten by INIT_CONF when exists !! | ||
PRIVOXY_USER="privoxy" | ||
PRIVOXY_GROUP="root" | ||
PRIVOXY_CONF="/etc/privoxy/config" | ||
|
||
# name for lock file (default: script name) | ||
TMPNAME="$(basename "$(readlink -f "${0}")")" | ||
# directory for temporary files | ||
TMPDIR="/tmp/${TMPNAME}" | ||
|
||
# Debug-level | ||
# -1 = quiet | ||
# 0 = normal | ||
# 1 = verbose | ||
# 2 = more verbose (debugging) | ||
# 3 = incredibly loud (function debugging) | ||
DBG=3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Config of privoxy-blocklist | ||
|
||
# array of URL for AdblockPlus lists | ||
# for more sources just add it within the round brackets | ||
URLS=( | ||
"https://easylist-downloads.adblockplus.org/easylistgermany.txt" | ||
"https://easylist-downloads.adblockplus.org/easylist.txt" | ||
"https://raw.githubusercontent.com/easylist/easylist/master/easylist/easylist_allowlist_general_hide.txt" | ||
) | ||
|
||
# config for privoxy initscript providing PRIVOXY_CONF, PRIVOXY_USER and PRIVOXY_GROUP | ||
#INIT_CONF="/etc/conf.d/privoxy" | ||
|
||
# !! set these when config INIT_CONF doesn't exist and default values do not match your system !! | ||
# !! These values will be overwritten by INIT_CONF when exists !! | ||
PRIVOXY_USER="privoxy" | ||
PRIVOXY_GROUP="root" | ||
PRIVOXY_CONF="/etc/privoxy/config" | ||
|
||
# name for lock file (default: script name) | ||
TMPNAME="$(basename "$(readlink -f "${0}")")" | ||
# directory for temporary files | ||
TMPDIR="/tmp/${TMPNAME}" | ||
|
||
# Debug-level | ||
# -1 = quiet | ||
# 0 = normal | ||
# 1 = verbose | ||
# 2 = more verbose (debugging) | ||
# 3 = incredibly loud (function debugging) | ||
DBG=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters