View | Details | Raw Unified | Return to bug 242466 | Differences between
and this patch

Collapse All | Expand All

(-)net/hblock/Makefile (+40 lines)
Line 0 Link Here
1
# $FreeBSD$
2
3
PORTNAME=	hblock
4
DISTVERSIONPREFIX=	v
5
DISTVERSION=	2.1.3
6
CATEGORIES=	net
7
8
MAINTAINER=	vulcan@wired.sh
9
COMMENT=	Adblocker using automatically generated hosts file
10
11
LICENSE=	MIT
12
LICENSE_FILE=	${WRKSRC}/LICENSE.md
13
14
RUN_DEPENDS=	curl:ftp/curl
15
16
USE_GITHUB=	yes
17
GH_ACCOUNT=	hectorm
18
19
NO_ARCH=	yes
20
NO_BUILD=	yes
21
22
PLIST_FILES=	bin/${PORTNAME}
23
24
PORTDOCS=	README.md
25
26
OPTIONS_DEFINE=	DOCS
27
28
post-patch:
29
	@${REINPLACE_CMD} -e '/hosts/!s|/etc|${PREFIX}/etc|g' ${WRKSRC}/${PORTNAME}
30
31
do-install:
32
	${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} \
33
		${STAGEDIR}${PREFIX}/bin/${PORTNAME}
34
35
post-install-DOCS-on:
36
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
37
	${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} \
38
		${STAGEDIR}${DOCSDIR}
39
40
.include <bsd.port.mk>
(-)net/hblock/distinfo (+3 lines)
Line 0 Link Here
1
TIMESTAMP = 1576171166
2
SHA256 (hectorm-hblock-v2.1.3_GH0.tar.gz) = 8f75e25d6bb6352454b475f0e20e935b6bb267b71bbdcac3807476a59af756b6
3
SIZE (hectorm-hblock-v2.1.3_GH0.tar.gz) = 399874
(-)net/hblock/pkg-descr (+6 lines)
Line 0 Link Here
1
POSIX-compliant shell script, designed for Unix-like systems,
2
gets a list of domains that serve ads, tracking scripts and
3
malware from multiple sources and creates a hosts file that
4
prevents your system from connecting to them.
5
6
WWW: https://github.com/hectorm/hblock

Return to bug 242466