forked from Lainports/freebsd-ports
- 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
28 lines
639 B
Makefile
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>
|