aboutsummaryrefslogtreecommitdiff
path: root/sysutils/node_exporter
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2019-08-29 03:42:29 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2019-08-29 03:42:29 +0000
commitd12989e285e2255f574f27c25be48a4c9e9c522d (patch)
treec72f4d0107663a703b468983a9c14d06c54c3ea2 /sysutils/node_exporter
parentf2ed9598e09205b11abd8852d1e9eeac5404948d (diff)
downloadports-d12989e285e2255f574f27c25be48a4c9e9c522d.tar.gz
ports-d12989e285e2255f574f27c25be48a4c9e9c522d.zip
sysutils/node_exporter: Switch to USES=go:modules, fix build with go1.13
PR: 240172 Submitted by: Dmitri Goutnik <dg@syrec.org> Approved by: portmgr (fix build)
Notes
Notes: svn path=/head/; revision=510135
Diffstat (limited to 'sysutils/node_exporter')
-rw-r--r--sysutils/node_exporter/Makefile6
1 files changed, 1 insertions, 5 deletions
diff --git a/sysutils/node_exporter/Makefile b/sysutils/node_exporter/Makefile
index 220d0faf2cd6..a2452c362a00 100644
--- a/sysutils/node_exporter/Makefile
+++ b/sysutils/node_exporter/Makefile
@@ -16,7 +16,7 @@ TEST_DEPENDS= promtool:net-mgmt/prometheus2 \
bash:shells/bash \
gsed:textproc/gsed
-USES= gmake go shebangfix
+USES= gmake go:modules shebangfix
USE_GITHUB= yes
GH_ACCOUNT= prometheus
USE_RC_SUBR= node_exporter
@@ -25,7 +25,6 @@ USE_RC_SUBR= node_exporter
SHEBANG_FILES= ttar
GO_PKGNAME= github.com/${GH_ACCOUNT}/${PORTNAME}
-GO_TARGET= github.com/${GH_ACCOUNT}/${PORTNAME}
# A "checkrules" target is being added in >0.17.0.
TEST_TARGET= test
@@ -43,9 +42,6 @@ GO_BUILDFLAGS= -v -ldflags "${LD_FLAG_STRING}"
OPTIONS_DEFINE= DOCS EXAMPLES
-do-install:
- ${INSTALL_PROGRAM} ${WRKDIR}/bin/node_exporter ${STAGEDIR}${PREFIX}/bin
-
post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC}/docs && \