Skip to content

Commit

Permalink
3.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
hectorm committed Jan 29, 2023
1 parent 8c57cce commit 759a7b8
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 31 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ hBlock is available in various package managers. Please check the [PACKAGES.md](
The latest available version can also be installed manually by running the following commands:

```sh
curl -o /tmp/hblock 'https://raw.githubusercontent.com/hectorm/hblock/v3.4.0/hblock' \
&& echo '4031d86cd04fd7c6cb1b7e9acb1ffdbe9a3f84f693bfb287c68e1f1fa2c14c3b /tmp/hblock' | shasum -c \
curl -o /tmp/hblock 'https://raw.githubusercontent.com/hectorm/hblock/v3.4.1/hblock' \
&& echo 'bb1f6fcafdcba6f7bd9e12613fc92b02a0a0da1263b0e44d209cb40d8715d647 /tmp/hblock' | shasum -c \
&& sudo mv /tmp/hblock /usr/local/bin/hblock \
&& sudo chown 0:0 /usr/local/bin/hblock \
&& sudo chmod 755 /usr/local/bin/hblock
Expand Down
2 changes: 1 addition & 1 deletion hblock
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -eu
export LC_ALL='C'

# Metadata.
if [ -z "${HBLOCK_VERSION+x}" ]; then HBLOCK_VERSION='3.4.0'; fi
if [ -z "${HBLOCK_VERSION+x}" ]; then HBLOCK_VERSION='3.4.1'; fi
if [ -z "${HBLOCK_AUTHOR+x}" ]; then HBLOCK_AUTHOR='Héctor Molinero Fernández <[email protected]>'; fi
if [ -z "${HBLOCK_LICENSE+x}" ]; then HBLOCK_LICENSE='MIT, https://opensource.org/licenses/MIT'; fi
if [ -z "${HBLOCK_REPOSITORY+x}" ]; then HBLOCK_REPOSITORY='https://github.com/hectorm/hblock'; fi
Expand Down
6 changes: 3 additions & 3 deletions hblock.1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.2.
.TH HBLOCK "1" "June 2022" "hBlock 3.4.0" "User Commands"
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.3.
.TH HBLOCK "1" "January 2023" "hBlock 3.4.1" "User Commands"
.SH NAME
hBlock \- manual page for hBlock 3.4.0
hBlock \- manual page for hBlock 3.4.1
.SH SYNOPSIS
.B hblock
[\fI\,OPTION\/\fR]...
Expand Down
47 changes: 24 additions & 23 deletions hblock.1.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# NAME

hBlock - manual page for hBlock 3.4.0
hBlock - manual page for hBlock 3.4.1

# SYNOPSIS

Expand All @@ -15,15 +15,15 @@ from connecting to them.

# OPTIONS

**-O**, **--output** \<FILE\|-\>, ${HBLOCK_OUTPUT_FILE}
**-O**, **--output** \<FILE\|-\>, \${HBLOCK_OUTPUT_FILE}

> Output file location.
>
> If equals "-", it is printed to stdout.
>
> (default: */etc/hosts*)
**-H**, **--header** \<FILE\|builtin\|none\|-\>, ${HBLOCK_HEADER_FILE}
**-H**, **--header** \<FILE\|builtin\|none\|-\>, \${HBLOCK_HEADER_FILE}

> File to be included at the beginning of the output file.
>
Expand All @@ -36,13 +36,13 @@ from connecting to them.
> If unspecified and any of the following files exists, its content is
> used.
>
> ${XDG_CONFIG_HOME}/hblock/header
> \${XDG_CONFIG_HOME}/hblock/header
>
> */etc/hblock/header*
>
> (default: builtin)
**-F**, **--footer** \<FILE\|builtin\|none\|-\>, ${HBLOCK_FOOTER_FILE}
**-F**, **--footer** \<FILE\|builtin\|none\|-\>, \${HBLOCK_FOOTER_FILE}

> File to be included at the end of the output file.
>
Expand All @@ -55,13 +55,14 @@ from connecting to them.
> If unspecified and any of the following files exists, its content is
> used.
>
> ${XDG_CONFIG_HOME}/hblock/footer
> \${XDG_CONFIG_HOME}/hblock/footer
>
> */etc/hblock/footer*
>
> (default: builtin)
**-S**, **--sources** \<FILE\|builtin\|none\|-\>, ${HBLOCK_SOURCES_FILE}
**-S**, **--sources** \<FILE\|builtin\|none\|-\>,
\${HBLOCK_SOURCES_FILE}

> File with line separated URLs used to generate the blocklist.
>
Expand All @@ -74,14 +75,14 @@ from connecting to them.
> If unspecified and any of the following files exists, its content is
> used.
>
> ${XDG_CONFIG_HOME}/hblock/sources.list
> \${XDG_CONFIG_HOME}/hblock/sources.list
>
> */etc/hblock/sources.list*
>
> (default: builtin)
**-A**, **--allowlist** \<FILE\|builtin\|none\|-\>,
${HBLOCK_ALLOWLIST_FILE}
\${HBLOCK_ALLOWLIST_FILE}

> File with line separated entries to be removed from the blocklist.
>
Expand All @@ -94,14 +95,14 @@ ${HBLOCK_ALLOWLIST_FILE}
> If unspecified and any of the following files exists, its content is
> used.
>
> ${XDG_CONFIG_HOME}/hblock/allow.list
> \${XDG_CONFIG_HOME}/hblock/allow.list
>
> */etc/hblock/allow.list*
>
> (default: builtin)
**-D**, **--denylist** \<FILE\|builtin\|none\|-\>,
${HBLOCK_DENYLIST_FILE}
\${HBLOCK_DENYLIST_FILE}

> File with line separated entries to be added to the blocklist.
>
Expand All @@ -114,78 +115,78 @@ ${HBLOCK_DENYLIST_FILE}
> If unspecified and any of the following files exists, its content is
> used.
>
> ${XDG_CONFIG_HOME}/hblock/deny.list
> \${XDG_CONFIG_HOME}/hblock/deny.list
>
> */etc/hblock/deny.list*
>
> (default: builtin)
**-R**, **--redirection** \<REDIRECTION\>, ${HBLOCK_REDIRECTION}
**-R**, **--redirection** \<REDIRECTION\>, \${HBLOCK_REDIRECTION}

> Redirection for all entries in the blocklist.
>
> (default: 0.0.0.0)
**-W**, **--wrap** \<NUMBER\>, ${HBLOCK_WRAP}
**-W**, **--wrap** \<NUMBER\>, \${HBLOCK_WRAP}

> Break blocklist lines after this number of entries.
>
> (default: 1)
**-T**, **--template** \<TEMPLATE\>, ${HBLOCK_TEMPLATE}
**-T**, **--template** \<TEMPLATE\>, \${HBLOCK_TEMPLATE}

> Template applied to each entry.
>
> %D = \<DOMAIN\>, %R = \<REDIRECTION\>
>
> (default: %R %D)
**-C**, **--comment** \<COMMENT\>, ${HBLOCK_COMMENT}
**-C**, **--comment** \<COMMENT\>, \${HBLOCK_COMMENT}

> Character used for comments.
>
> (default: \#)
**-l**, **--\[no-\]lenient**, ${HBLOCK_LENIENT}
**-l**, **--\[no-\]lenient**, \${HBLOCK_LENIENT}

> Match all entries from sources regardless of their IP, instead of
> 0.0.0.0, 127.0.0.1, ::, ::1 or nothing.
>
> (default: false)
**-r**, **--\[no-\]regex**, ${HBLOCK_REGEX}
**-r**, **--\[no-\]regex**, \${HBLOCK_REGEX}

> Use POSIX BREs in the allowlist instead of fixed strings.
>
> (default: false)
**-f**, **--\[no-\]filter-subdomains**, ${HBLOCK_FILTER_SUBDOMAINS}
**-f**, **--\[no-\]filter-subdomains**, \${HBLOCK_FILTER_SUBDOMAINS}

> Do not include subdomains when the parent domain is also blocked.
> Useful for reducing the blocklist size in cases such as when DNS
> blocking makes these subdomains redundant.
>
> (default: false)
**-c**, **--\[no-\]continue**, ${HBLOCK_CONTINUE}
**-c**, **--\[no-\]continue**, \${HBLOCK_CONTINUE}

> Do not abort if a download error occurs.
>
> (default: false)
**-p**, **--parallel**, ${HBLOCK_PARALLEL}
**-p**, **--parallel**, \${HBLOCK_PARALLEL}

> Maximum concurrency for parallel downloads.
>
> (default: 4)
**-q**, **--\[no-\]quiet**, ${HBLOCK_QUIET}
**-q**, **--\[no-\]quiet**, \${HBLOCK_QUIET}

> Suppress non-error messages.
>
> (default: false)
**-x**, **--color** \<auto\|true\|false\>, ${HBLOCK_COLOR}
**-x**, **--color** \<auto\|true\|false\>, \${HBLOCK_COLOR}

> Colorize the output.
>
Expand Down
2 changes: 1 addition & 1 deletion hblock.sha256
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4031d86cd04fd7c6cb1b7e9acb1ffdbe9a3f84f693bfb287c68e1f1fa2c14c3b hblock
bb1f6fcafdcba6f7bd9e12613fc92b02a0a0da1263b0e44d209cb40d8715d647 hblock
2 changes: 1 addition & 1 deletion resources/systemd/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ The following commands will schedule a daily update of the hosts file. See [this
more information about systemd timers.

```sh
curl -o '/tmp/hblock.#1' 'https://raw.githubusercontent.com/hectorm/hblock/v3.4.0/resources/systemd/hblock.{service,timer}' \
curl -o '/tmp/hblock.#1' 'https://raw.githubusercontent.com/hectorm/hblock/v3.4.1/resources/systemd/hblock.{service,timer}' \
&& echo '45980a80506df48cbfa6dd18d20f0ad4300744344408a0f87560b2be73b7c607 /tmp/hblock.service' | shasum -c \
&& echo '87a7ba5067d4c565aca96659b0dce230471a6ba35fbce1d3e9d02b264da4dc38 /tmp/hblock.timer' | shasum -c \
&& sudo mv /tmp/hblock.{service,timer} /etc/systemd/system/ \
Expand Down

0 comments on commit 759a7b8

Please sign in to comment.