fc95b3f0cf
- Remove custom build/install targets left in place after r505321 - Switch to the new GO_TARGET tuple syntax introduced in r512001 Reviewed by: tobik Approved by: araujo (mentor), portmgr (adamw) Differential Revision: https://reviews.freebsd.org/D21744
37 lines
748 B
Makefile
37 lines
748 B
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= envconsul
|
|
PORTVERSION= 0.7.3
|
|
DISTVERSIONPREFIX= v
|
|
CATEGORIES= sysutils
|
|
|
|
MAINTAINER= swills@FreeBSD.org
|
|
COMMENT= Populate values from Consul into a process environment
|
|
|
|
LICENSE= MPL20
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
USES= go
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= hashicorp
|
|
GH_SUBDIR= src/github.com/${GH_ACCOUNT}/${PORTNAME}
|
|
|
|
PLIST_FILES= bin/envconsul
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
PORTDOCS= README.md
|
|
COMMIT= 7ece735
|
|
GO_BUILDFLAGS= -ldflags="-s -w \
|
|
-X main.Name=${PORTNAME} \
|
|
-X main.Version=${PORTVERSION} \
|
|
-X main.GitCommit=${COMMIT}"
|
|
|
|
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>
|