FreeBSD Bugzilla – Attachment 213108 Details for
Bug 242466
[NEW PORT] net/hblock: Adblocker using automatically generated hosts file
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
hblock-2.1.5.diff
hblock-2.1.5.diff (text/plain), 3.88 KB, created by
Lewis Cook
on 2020-04-05 21:16:58 UTC
(
hide
)
Description:
hblock-2.1.5.diff
Filename:
MIME Type:
Creator:
Lewis Cook
Created:
2020-04-05 21:16:58 UTC
Size:
3.88 KB
patch
obsolete
>Index: net/hblock/Makefile >=================================================================== >--- net/hblock/Makefile (nonexistent) >+++ net/hblock/Makefile (working copy) >@@ -0,0 +1,37 @@ >+# $FreeBSD$ >+ >+PORTNAME= hblock >+DISTVERSIONPREFIX= v >+DISTVERSION= 2.1.5 >+CATEGORIES= net >+ >+MAINTAINER= vulcan@wired.sh >+COMMENT= Adblocker using automatically generated hosts file >+ >+LICENSE= MIT >+LICENSE_FILE= ${WRKSRC}/LICENSE.md >+ >+RUN_DEPENDS= ca_root_nss>0:security/ca_root_nss >+ >+USE_GITHUB= yes >+GH_ACCOUNT= hectorm >+ >+NO_ARCH= yes >+NO_BUILD= yes >+ >+PLIST_FILES= bin/${PORTNAME} >+PORTDOCS= README.md >+ >+OPTIONS_DEFINE= DOCS >+ >+post-patch: >+ @${REINPLACE_CMD} -e '/hosts/!s|/etc|${PREFIX}/etc|g' ${WRKSRC}/${PORTNAME} >+ >+do-install: >+ ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin >+ >+post-install-DOCS-on: >+ @${MKDIR} ${STAGEDIR}${DOCSDIR} >+ ${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${STAGEDIR}${DOCSDIR} >+ >+.include <bsd.port.mk> > >Property changes on: net/hblock/Makefile >___________________________________________________________________ >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:keywords >## -0,0 +1 ## >+FreeBSD=%H >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Index: net/hblock/distinfo >=================================================================== >--- net/hblock/distinfo (nonexistent) >+++ net/hblock/distinfo (working copy) >@@ -0,0 +1,3 @@ >+TIMESTAMP = 1586119738 >+SHA256 (hectorm-hblock-v2.1.5_GH0.tar.gz) = e06cca83d5f11565abdcde1924c294ef8c628833834be411531a5c4a893d1bfe >+SIZE (hectorm-hblock-v2.1.5_GH0.tar.gz) = 400446 > >Property changes on: net/hblock/distinfo >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Index: net/hblock/files/patch-hblock >=================================================================== >--- net/hblock/files/patch-hblock (nonexistent) >+++ net/hblock/files/patch-hblock (working copy) >@@ -0,0 +1,18 @@ >+Remove curl/wget and use base system fetch instead. >+ >+--- hblock.orig 2020-02-22 10:40:05 UTC >++++ hblock >+@@ -138,12 +138,7 @@ fetchUrl() { >+ if [ "${1#file://}" != "${1:?}" ]; then cat -- "${1#file://}" >+ else >+ userAgent='Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0' >+- if exists curl; then curl -fsSL -A "${userAgent:?}" -- "${1:?}"; >+- elif exists wget; then wget -qO- -U "${userAgent:?}" -- "${1:?}"; >+- else >+- logError 'Either wget or curl are required for this script' >+- exit 1 >+- fi >++ fetch -qo - --user-agent="${userAgent:?}" -- "${1:?}"; >+ fi >+ } >+ > >Property changes on: net/hblock/files/patch-hblock >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Index: net/hblock/pkg-descr >=================================================================== >--- net/hblock/pkg-descr (nonexistent) >+++ net/hblock/pkg-descr (working copy) >@@ -0,0 +1,6 @@ >+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 > >Property changes on: net/hblock/pkg-descr >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 242466
:
209744
|
209898
|
210664
|
210666
| 213108 |
213109