This commit is contained in:
Héctor Molinero Fernández 2022-04-23 15:24:42 +02:00
commit a52b08f196
6 changed files with 24 additions and 24 deletions

View file

@ -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.3.1/hblock' \
&& echo 'd93effa9a068b82f7d4d97fdcae7a320c6f7a3ae910af8234bca870f33ec55e1 /tmp/hblock' | shasum -c \
curl -o /tmp/hblock 'https://raw.githubusercontent.com/hectorm/hblock/v3.3.2/hblock' \
&& echo '864160641823734378b69da7aa28477771e125af66cf47d5f0f7c8233ef1837f /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

2
hblock
View file

@ -4,7 +4,7 @@ set -eu
export LC_ALL='C'
# Metadata.
if [ -z "${HBLOCK_VERSION+x}" ]; then HBLOCK_VERSION='3.3.1'; fi
if [ -z "${HBLOCK_VERSION+x}" ]; then HBLOCK_VERSION='3.3.2'; fi
if [ -z "${HBLOCK_AUTHOR+x}" ]; then HBLOCK_AUTHOR='Héctor Molinero Fernández <hector@molinero.dev>'; 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

View file

@ -1,7 +1,7 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.48.5.
.TH HBLOCK "1" "December 2021" "hBlock 3.3.1" "User Commands"
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.2.
.TH HBLOCK "1" "April 2022" "hBlock 3.3.2" "User Commands"
.SH NAME
hBlock \- manual page for hBlock 3.3.1
hBlock \- manual page for hBlock 3.3.2
.SH SYNOPSIS
.B hblock
[\fI\,OPTION\/\fR]...

View file

@ -1,6 +1,6 @@
# NAME
hBlock - manual page for hBlock 3.3.1
hBlock - manual page for hBlock 3.3.2
# SYNOPSIS
@ -15,7 +15,7 @@ from connecting to them.
# OPTIONS
**-O**, **--output** \<FILE\|->, ${HBLOCK_OUTPUT_FILE}
**-O**, **--output** \<FILE\|-\>, ${HBLOCK_OUTPUT_FILE}
> Output file location.
>
@ -23,7 +23,7 @@ from connecting to them.
>
> (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.
>
@ -42,7 +42,7 @@ from connecting to them.
>
> (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.
>
@ -61,7 +61,7 @@ from connecting to them.
>
> (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.
>
@ -80,7 +80,7 @@ from connecting to them.
>
> (default: builtin)
**-A**, **--allowlist** \<FILE\|builtin\|none\|->,
**-A**, **--allowlist** \<FILE\|builtin\|none\|-\>,
${HBLOCK_ALLOWLIST_FILE}
> File with line separated entries to be removed from the blocklist.
@ -100,7 +100,7 @@ ${HBLOCK_ALLOWLIST_FILE}
>
> (default: builtin)
**-D**, **--denylist** \<FILE\|builtin\|none\|->,
**-D**, **--denylist** \<FILE\|builtin\|none\|-\>,
${HBLOCK_DENYLIST_FILE}
> File with line separated entries to be added to the blocklist.
@ -120,31 +120,31 @@ ${HBLOCK_DENYLIST_FILE}
>
> (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>
> %D = \<DOMAIN\>, %R = \<REDIRECTION\>
>
> (default: %R %D)
**-C**, **--comment** \<COMMENT>, ${HBLOCK_COMMENT}
**-C**, **--comment** \<COMMENT\>, ${HBLOCK_COMMENT}
> Character used for comments.
>
> (default: #)
> (default: \#)
**-l**, **--\[no-\]lenient**, ${HBLOCK_LENIENT}
@ -185,7 +185,7 @@ ${HBLOCK_DENYLIST_FILE}
>
> (default: false)
**-x**, **--color** \<auto\|true\|false>, ${HBLOCK_COLOR}
**-x**, **--color** \<auto\|true\|false\>, ${HBLOCK_COLOR}
> Colorize the output.
>
@ -201,9 +201,9 @@ ${HBLOCK_DENYLIST_FILE}
# REPORTING BUGS
Report bugs to: \<https://github.com/hectorm/hblock/issues>
Report bugs to: \<https://github.com/hectorm/hblock/issues\>
Author: Héctor Molinero Fernández \<hector@molinero.dev>
Author: Héctor Molinero Fernández \<hector@molinero.dev\>
License: MIT, https://opensource.org/licenses/MIT
Repository: https://github.com/hectorm/hblock

View file

@ -1 +1 @@
d93effa9a068b82f7d4d97fdcae7a320c6f7a3ae910af8234bca870f33ec55e1 hblock
864160641823734378b69da7aa28477771e125af66cf47d5f0f7c8233ef1837f hblock

View file

@ -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.3.1/resources/systemd/hblock.{service,timer}' \
curl -o '/tmp/hblock.#1' 'https://raw.githubusercontent.com/hectorm/hblock/v3.3.2/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/ \