freebsd-ports/sysutils/envconsul/Makefile

38 lines
748 B
Makefile
Raw Normal View History

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
LICENSE= MPL20
2016-02-21 15:20:06 +01:00
LICENSE_FILE= ${WRKSRC}/LICENSE
2016-02-21 01:39:11 +01:00
USES= go
2016-02-21 01:39:11 +01:00
USE_GITHUB= yes
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
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>