Package Details: hblock 3.2.1-1

Git Clone URL: https://aur.archlinux.org/hblock.git (read-only, click to copy)
Package Base: hblock
Description: Adblocker that creates a hosts file from multiple sources
Upstream URL: https://github.com/hectorm/hblock
Keywords: adblock blocker hosts
Licenses: MIT
Submitter: erazemk
Maintainer: hectorm
Last Packager: hectorm
Votes: 10
Popularity: 0.153307
First Submitted: 2018-12-15 19:51
Last Updated: 2021-03-08 19:55

Latest Comments

1 2 Next › Last »

malcolm commented on 2020-11-09 14:57

thanks

hectorm commented on 2020-11-09 14:27

@malcolm The test that is failing is influenced by the system locale, I going to disable the tests until I find a solution.

malcolm commented on 2020-11-09 14:12

looks broken

==> Iniciando check()...
find ./resources/tests/ -type f -name 'test-*.sh' | sort -n | xargs -n1 env -i \
        PATH='/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' \
        TEST_SHELL=''
Test - Main: "-C" short option
Test - Main: "--comment" long option
Test - Main: Default options
Test - Main: Double dash argument
Test - Main: Invalid long option
Test - Main: Invalid short option
Test - Main: "-l" short option
Test - Main: "--lenient" long option
Test - Main: "--no-lenient" long option
Test - Main: "--no-regex" long option
Test - Main: "-R" short option
Test - Main: "--redirection" long option
Test - Main: "-r" short option
Test - Main: "--regex" long option
Test - Main: "-T" short option
Test - Main: "--template" long option
Test - Main: "-W" short option
Test - Main: "--wrap" long option
Test - Stats: Suffixes

Error, values are not equal

[Actual]:

Top     Hosts   Suffix
1       12      .xn--j6w193g
2       9       .arpa
3       9       .jp
4       4       .com
5       4       .net
6       3       .org
7       1       .unknown

[Expected]:

Top     Hosts   Suffix
1       7       .xn--od0alg.xn--j6w193g
2       5       .home.arpa
3       5       .jp
4       5       .xn--j6w193g
5       4       .arpa
6       4       .com
7       4       .net
8       4       .xn--1lqs71d.jp
9       3       .org
10      1       .unknown

Test - Stats: TLDs
make: *** [Makefile:110: test] Erro 123
==> ERRO: Uma falha ocorreu em check().
    Abortando...
erro ao construir: hblock

hectorm commented on 2020-11-08 13:52

Hi, I'm the author of hBlock. @erazemk has transferred the package to me and from now on I will be the one who updates it.

It's my first AUR package, any suggestion about the packaging of the project will be very helpful.

erazemk commented on 2020-01-13 06:20

I won't forcefully change installation paths in the Makefile, especially not by changing paths with sed. If you'd like /usr to be the default, suggest it to the project. I'd recommend you report the prefix not working as well.

yochananmarqos commented on 2020-01-12 21:13

The prefix in the Makefile is /usr/local. Please change it to/usr`.

Here's one way:

prepare() {
     cd "$pkgname-$pkgver"
     sed -i 's|/usr/local|/usr|g' Makefile
}

I tried make PREFIX=/usr but it didn't work for some reason.

erazemk commented on 2019-05-02 22:50

@kronikpillow, to enable the timer type sudo systemctl enable hblock.timer

kronikpillow commented on 2019-05-02 22:44

@JustMeErazem stange, I have the package installed, and with a second attempt i managed to install HBlock ... I ran hblock -b to generate the hosts file, now i just need to figgure out how to enable the timer :D

erazemk commented on 2019-05-01 20:27

@kronikpillow Seems you don't have zip installed. I don't use Arch anymore so I won't update the package, but it seems zip should be added as a dependency.

You can fix this issue locally by installing the package "zip" and retry the installation of hblock.

kronikpillow commented on 2019-05-01 20:23

  • Parsing lists...
  • Remove carriage return
  • Transform to lowercase
  • Remove comments
  • Trim spaces
  • Match hosts lines
  • Remove reserved TLDs
  • Remove destination IPs
  • Sort entries
  • Apply format template
  • Generating output file...
  • 134670 blocked domains! 'resources/alt-formats/windows.zip.sh' './dist/hosts' './hblock' './resources' > 'dist/hosts_windows.zip' 'resources/alt-formats/adblock.txt.sh' './dist/hosts' './hblock' './resources' > 'dist/hosts_adblock.txt' 'resources/alt-formats/android.zip.sh' './dist/hosts' './hblock' './resources' > 'dist/hosts_android.zip' 'resources/alt-formats/unbound.conf.sh' './dist/hosts' './hblock' './resources' > 'dist/hosts_unbound.conf' 'resources/alt-formats/rpz.txt.sh' './dist/hosts' './hblock' './resources' > 'dist/hosts_rpz.txt' resources/alt-formats/android.zip.sh: line 18: zip: command not found resources/alt-formats/windows.zip.sh: line 18: zip: command not found make: [Makefile:62: dist/hosts_android.zip] Error 127 make: Waiting for unfinished jobs.... make: *** [Makefile:62: dist/hosts_windows.zip] Error 127 ==> ERROR: A failure occurred in build(). Aborting... Error making: hblock ┌ 1 ~ └> $