freebsd-ports/sysutils/envconsul/Makefile
2023-12-07 02:22:10 +00:00

35 lines
756 B
Makefile

PORTNAME= envconsul
PORTVERSION= 0.13.2
PORTREVISION= 3
DISTVERSIONPREFIX= v
CATEGORIES= sysutils
MAINTAINER= bofh@FreeBSD.org
COMMENT= Populate values from Consul into a process environment
WWW= https://github.com/hashicorp/envconsul
LICENSE= MPL20
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= go:modules
GO_MODULE= github.com/hashicorp/${PORTNAME}
GO_BUILDFLAGS= -ldflags='\
-s -w \
-X github.com/hashicorp/envconsul/version.Name=${PORTNAME} \
-X github.com/hashicorp/envconsul/version.GitCommit=${GHTAG}'
PLIST_FILES= bin/envconsul
PORTDOCS= README.md
OPTIONS_DEFINE= DOCS
GHTAG= dd416ce
post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
.for doc in ${PORTDOCS}
${CP} ${WRKSRC}/${doc} ${STAGEDIR}${DOCSDIR}
.endfor
.include <bsd.port.mk>