blob: 5db72a9d86ad7f8c0787d295ab437d593b15421a (
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
27
28
|
PORTNAME= bind_exporter
DISTVERSIONPREFIX=v
DISTVERSION= 0.7.0
PORTREVISION= 6
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>
|