blob: a016da1e7c16da0781096abb91ea61b63d3ef321 (
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
PORTNAME= node_exporter
PORTVERSION= 1.5.0
DISTVERSIONPREFIX=v
PORTREVISION= 4
CATEGORIES= sysutils
MAINTAINER= dor.bsd@xm0.uk
COMMENT= Prometheus exporter for machine metrics
WWW= https://github.com/prometheus/node_exporter
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= gmake go:modules shebangfix
USE_GITHUB= yes
GH_ACCOUNT= prometheus
USE_RC_SUBR= node_exporter
GO_PKGNAME= github.com/${GH_ACCOUNT}/${PORTNAME}
GO_BUILDFLAGS= -v -ldflags "${LD_FLAG_STRING}"
OPTIONS_DEFINE= DOCS
BUILD_USER?= ${USER}
LD_FLAG_STRING= -s \
${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 ${GO_PKGNAME:H}/common/version
# This Makefile includes the GH_TUPLE section.
# Generated with: env M2T_GITHUB=$M2T_GITHUB make gomod-vendor > out
.include "Makefile.modules"
post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC}/docs && \
${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
|