diff options
author | Dmitri Goutnik <dmgk@FreeBSD.org> | 2019-09-29 22:34:31 +0000 |
---|---|---|
committer | Dmitri Goutnik <dmgk@FreeBSD.org> | 2019-09-29 22:34:31 +0000 |
commit | fc95b3f0cf943e760e906eac92aac51eff4d0c1c (patch) | |
tree | 8b41993e1df35d7245f4013a2d3adcb758a276a1 /sysutils/consul_exporter | |
parent | 67c4b925b7fd606361a2152563b80da493232dfb (diff) |
Notes
Diffstat (limited to 'sysutils/consul_exporter')
-rw-r--r-- | sysutils/consul_exporter/Makefile | 30 |
1 files changed, 6 insertions, 24 deletions
diff --git a/sysutils/consul_exporter/Makefile b/sysutils/consul_exporter/Makefile index fdc9c6ba6c35..4799a0beae60 100644 --- a/sysutils/consul_exporter/Makefile +++ b/sysutils/consul_exporter/Makefile @@ -10,37 +10,19 @@ COMMENT= Exporter for Consul metrics LICENSE= APACHE20 -USES= compiler go +USES= go USE_GITHUB= yes GH_ACCOUNT= prometheus GH_SUBDIR= src/github.com/${GH_ACCOUNT}/consul_exporter -USE_RC_SUBR= consul_exporter - -PLIST_FILES= bin/consul_exporter - -post-extract: - @${MV} ${WRKSRC}/vendor/ ${WRKSRC}/src/ - -do-build: - @cd ${WRKSRC}/src/github.com/prometheus/consul_exporter; ${SETENV} ${MAKE_ENV} CGO_ENABLED=0 ${BUILD_ENV} GOPATH=${WRKSRC} go build \ - -ldflags "\ +GO_BUILDFLAGS= -ldflags "\ -X github.com/prometheus/consul_exporter/version.Version=${PORTVERSION} \ -X github.com/prometheus/consul_exporter/version.VersionPrerelease= \ - -X github.com/prometheus/consul_exporter/version.GitDescribe=v${PORTVERSION} \ - " \ - -o bin/consul_exporter - -do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/src/github.com/prometheus/consul_exporter/bin/consul_exporter ${STAGEDIR}${PREFIX}/bin/consul_exporter + -X github.com/prometheus/consul_exporter/version.GitDescribe=v${PORTVERSION}" -.include <bsd.port.pre.mk> +USE_RC_SUBR= consul_exporter -# golang assumes that if clang is in use, it is called "clang" and not "cc". If -# it's called "cc", go fails. -.if ${COMPILER_TYPE} == clang -BUILD_ENV= CC=clang -.endif +PLIST_FILES= bin/consul_exporter -.include <bsd.port.post.mk> +.include <bsd.port.mk> |