Line 0
Link Here
|
|
|
1 |
# $FreeBSD$ |
2 |
|
3 |
PORTNAME= hblock |
4 |
DISTVERSIONPREFIX= v |
5 |
DISTVERSION= 2.1.2 |
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> |