2022-09-14 21:47:32 -04:00
|
|
|
PORTNAME= blocky
|
2023-01-22 09:55:55 -05:00
|
|
|
DISTVERSION= development
|
2023-01-22 10:00:16 -05:00
|
|
|
PORTVERSION=0.20
|
2023-02-01 10:17:35 -05:00
|
|
|
PORTREVISION= 11
|
2022-09-14 21:47:32 -04:00
|
|
|
CATEGORIES= dns
|
2023-01-22 09:55:55 -05:00
|
|
|
MASTER_SITES= https://raw.githubusercontent.com/${GH_ACCOUNT}/${GH_PROJECT}/development/:gomod
|
2022-09-14 21:47:32 -04:00
|
|
|
DISTFILES= go.mod:gomod
|
2023-01-22 09:55:55 -05:00
|
|
|
NO_CHECKSUM=true
|
2022-09-14 21:47:32 -04:00
|
|
|
|
|
|
|
MAINTAINER= eduardo@FreeBSD.org
|
|
|
|
COMMENT= Fast and lightweight DNS proxy as ad-blocker
|
2023-01-22 09:55:55 -05:00
|
|
|
WWW= https://0xerr0r.github.io/blocky/
|
2022-09-14 21:47:32 -04:00
|
|
|
|
|
|
|
LICENSE= APACHE20
|
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
|
|
|
|
USES= go:modules
|
2023-01-22 09:55:55 -05:00
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= 0xERR0R
|
2022-09-14 21:47:32 -04:00
|
|
|
USE_RC_SUBR= blocky
|
|
|
|
|
2023-01-22 09:55:55 -05:00
|
|
|
GO_MODULE= github.com/${GH_ACCOUNT}/${GH_PROJECT}
|
2022-09-14 21:47:32 -04:00
|
|
|
GO_TARGET= main.go:${PREFIX}/sbin/${PORTNAME}
|
|
|
|
GO_BUILDFLAGS= -ldflags "-w -s \
|
|
|
|
-X github.com/0xERR0R/blocky/util.Version=${DISTVERSION} \
|
|
|
|
-X github.com/0xERR0R/blocky/util.BuildTime=`date '+%Y%m%d-%H%M%S'`"
|
2023-01-22 09:55:55 -05:00
|
|
|
|
2022-09-14 21:47:32 -04:00
|
|
|
SUB_FILES= pkg-message
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA} ${FILESDIR}/blocky-config.yml.sample ${STAGEDIR}${PREFIX}/etc/blocky-config.yml.sample
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|