freebsd-ports/sysutils/consul_exporter/Makefile
Dmitri Goutnik fc95b3f0cf Go ports: cleanup, finish transition to USES=go started with r505321 (cat. sysutils-x11)
- 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
2019-09-29 22:34:31 +00:00

28 lines
639 B
Makefile

# $FreeBSD$
PORTNAME= consul_exporter
PORTVERSION= 0.3.0
DISTVERSIONPREFIX= v
CATEGORIES= sysutils
MAINTAINER= t.tom@succont.de
COMMENT= Exporter for Consul metrics
LICENSE= APACHE20
USES= go
USE_GITHUB= yes
GH_ACCOUNT= prometheus
GH_SUBDIR= src/github.com/${GH_ACCOUNT}/consul_exporter
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}"
USE_RC_SUBR= consul_exporter
PLIST_FILES= bin/consul_exporter
.include <bsd.port.mk>