summaryrefslogtreecommitdiff
path: root/sysutils/consul_exporter/Makefile
blob: e94ca0ee7a1f64d31cd3c06ba37eb8bf02159e54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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>