aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/bind_exporter/Makefile
blob: d44df76c8e19891d241999ee64dfeffa2f9762ea (plain) (blame)
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
27
28
PORTNAME=	bind_exporter
DISTVERSIONPREFIX=v
DISTVERSION=	0.7.0
PORTREVISION=	9
CATEGORIES=	net-mgmt dns

MAINTAINER=	fuz@FreeBSD.org
COMMENT=	Prometheus exporter for BIND server statistics
WWW=		https://github.com/prometheus-community/bind_exporter

LICENSE=	APACHE20
LICENSE_FILE=	${WRKSRC}/LICENSE

USES=		go:modules
USE_RC_SUBR=	bind_exporter

GO_MODULE=	github.com/prometheus-community/bind_exporter
GO_BUILDFLAGS=	-v -ldflags "${LD_FLAG_STRING}"

BUILD_USER?=	${USER}
LD_FLAG_STRING=	${STRIP} \
		${LD_FLAG_X_PREFIX}.Version=${PORTVERSION} \
		${LD_FLAG_X_PREFIX}.Revision=${PORTREVISION} \
		${LD_FLAG_X_PREFIX}.Branch=release-${PORTVERSION:R} \
		${LD_FLAG_X_PREFIX}.BuildUser=${BUILD_USER}
LD_FLAG_X_PREFIX=	-X github.com/prometheus/common/version

.include <bsd.port.mk>