Bug 242466

Summary: [NEW PORT] net/hblock: Adblocker using automatically generated hosts file
Product: Ports & Packages Reporter: Lewis Cook <lcook>
Component: Individual Port(s)Assignee: Dmitri Goutnik <dmgk>
Status: Closed FIXED    
Severity: Affects Only Me CC: Alexander88207, dmgk, m.muenz, woodsb02
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
URL: https://github.com/hectorm/hblock
Attachments:
Description Flags
hblock port diff
none
hblock port diff
none
hblock port diff
none
hblock-2.1.3.log
none
hblock-2.1.5.diff
none
hblock-2.1.5.log none

Description Lewis Cook freebsd_committer freebsd_triage 2019-12-06 00:13:26 UTC
Created attachment 209744 [details]
hblock port diff

POSIX-compliant shell script, designed for Unix-like systems,
gets a list of domains that serve ads, tracking scripts and
malware from multiple sources and creates a hosts file that
prevents your system from connecting to them.

WWW: https://github.com/hectorm/hblock

QA:
 * portlint: looks fine;
 * portclippy: in accordance; 
 * poudriere: package built, application works as intended.
Comment 1 Lewis Cook freebsd_committer freebsd_triage 2019-12-12 17:22:40 UTC
Created attachment 209898 [details]
hblock port diff

* Bump to version 2.1.3.
Comment 2 Lewis Cook freebsd_committer freebsd_triage 2020-01-12 18:40:23 UTC
Created attachment 210664 [details]
hblock port diff
Comment 3 Lewis Cook freebsd_committer freebsd_triage 2020-01-12 18:41:44 UTC
Created attachment 210666 [details]
hblock-2.1.3.log

* Poudriere build log.
Comment 4 Lewis Cook freebsd_committer freebsd_triage 2020-04-05 21:16:58 UTC
Created attachment 213108 [details]
hblock-2.1.5.diff

* Bumped DISTVERSION to 2.1.5 and update distinfo;
* Include 'files/patch-hblock', use base system fetch instead rather than 'curl'/'wget';
* Add 'ca_root_nss' to RUN_DEPENDS;
* Minor cleanup.
Comment 5 Lewis Cook freebsd_committer freebsd_triage 2020-04-05 21:17:43 UTC
Created attachment 213109 [details]
hblock-2.1.5.log

* Poudriere build log.
Comment 6 Michael Muenz 2020-04-09 15:13:42 UTC
I was able to build via usual ports and the program runs fine, nice addition! 
I'm adding Ben so we might get this in a bit quicker. :)

Thanks!
Comment 7 commit-hook freebsd_committer freebsd_triage 2020-04-12 20:27:06 UTC
A commit references this bug:

Author: dmgk
Date: Sun Apr 12 20:26:33 UTC 2020
New revision: 531555
URL: https://svnweb.freebsd.org/changeset/ports/531555

Log:
  New port: net/hblock

  POSIX-compliant shell script, designed for Unix-like systems,
  gets a list of domains that serve ads, tracking scripts and
  malware from multiple sources and creates a hosts file that
  prevents your system from connecting to them.

  WWW: https://github.com/hectorm/hblock

  PR:		242466
  Submitted by:	Lewis Cook <vulcan@wired.sh>

Changes:
  head/net/Makefile
  head/net/hblock/
  head/net/hblock/Makefile
  head/net/hblock/distinfo
  head/net/hblock/files/
  head/net/hblock/files/patch-hblock
  head/net/hblock/pkg-descr
Comment 8 Dmitri Goutnik freebsd_committer freebsd_triage 2020-04-12 20:27:33 UTC
Committed, thanks!