2016-02-21 01:39:11 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= envconsul
|
2018-01-25 03:34:12 +01:00
|
|
|
PORTVERSION= 0.7.3
|
2016-02-21 01:39:11 +01:00
|
|
|
DISTVERSIONPREFIX= v
|
|
|
|
CATEGORIES= sysutils
|
|
|
|
|
|
|
|
MAINTAINER= swills@FreeBSD.org
|
|
|
|
COMMENT= Populate values from Consul into a process environment
|
|
|
|
|
2017-11-04 12:43:35 +01:00
|
|
|
LICENSE= MPL20
|
2016-02-21 15:20:06 +01:00
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
2016-02-21 01:39:11 +01:00
|
|
|
|
2019-06-29 05:51:13 +02:00
|
|
|
USES= go
|
2016-02-21 01:39:11 +01:00
|
|
|
|
|
|
|
USE_GITHUB= yes
|
2016-12-13 15:58:08 +01:00
|
|
|
GH_ACCOUNT= hashicorp
|
2017-04-08 18:44:54 +02:00
|
|
|
GH_SUBDIR= src/github.com/${GH_ACCOUNT}/${PORTNAME}
|
2016-02-21 01:39:11 +01:00
|
|
|
|
|
|
|
PLIST_FILES= bin/envconsul
|
|
|
|
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
|
|
|
|
PORTDOCS= README.md
|
2017-04-08 18:44:54 +02:00
|
|
|
COMMIT= 7ece735
|
2019-09-30 00:34:31 +02:00
|
|
|
GO_BUILDFLAGS= -ldflags="-s -w \
|
2017-04-08 18:44:54 +02:00
|
|
|
-X main.Name=${PORTNAME} \
|
|
|
|
-X main.Version=${PORTVERSION} \
|
|
|
|
-X main.GitCommit=${COMMIT}"
|
2016-02-21 01:39:11 +01:00
|
|
|
|
|
|
|
post-install-DOCS-on:
|
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
.for doc in ${PORTDOCS}
|
|
|
|
${CP} ${WRKSRC}/src/github.com/hashicorp/envconsul/${doc} ${STAGEDIR}${DOCSDIR}
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|