ports-local/dns/blocky-amigan/Makefile

35 lines
1,015 B
Makefile
Raw Normal View History

2022-09-14 21:47:32 -04:00
PORTNAME= blocky
DISTVERSIONPREFIX= v
2023-01-21 23:58:36 -05:00
DISTVERSION= 0.21
2022-09-14 21:47:32 -04:00
PORTREVISION= 6
CATEGORIES= dns
#MASTER_SITES= https://raw.githubusercontent.com/${GH_ACCOUNT}/${GH_PROJECT}/${DISTVERSIONFULL}/:gomod
2023-01-22 00:04:15 -05:00
MASTER_SITES=https://git.dynatron.me/amigan/blocky/raw/branch/debug/:gomod
2022-09-14 21:47:32 -04:00
DISTFILES= go.mod:gomod
MAINTAINER= eduardo@FreeBSD.org
COMMENT= Fast and lightweight DNS proxy as ad-blocker
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= go:modules
USE_RC_SUBR= blocky
GO_MODULE= pkg.dynatron.me/amigan/blocky
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'`"
SUB_FILES= pkg-message
do-extract:
2023-01-21 23:58:36 -05:00
git clone https://git.dynatron.me/amigan/blocky.git work/blocky-v0.21
cd work/blocky-v0.21
git switch debug
2022-09-14 21:47:32 -04:00
post-install:
${INSTALL_DATA} ${FILESDIR}/blocky-config.yml.sample ${STAGEDIR}${PREFIX}/etc/blocky-config.yml.sample
.include <bsd.port.mk>