aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/grok_exporter
diff options
context:
space:
mode:
authorDmitri Goutnik <dmgk@FreeBSD.org>2019-09-29 22:31:57 +0000
committerDmitri Goutnik <dmgk@FreeBSD.org>2019-09-29 22:31:57 +0000
commit67c4b925b7fd606361a2152563b80da493232dfb (patch)
tree16884a4188ae95c6d4b3c8e73cfaf24404fd28e8 /net-mgmt/grok_exporter
parent34156e93e84fe00711fac9dbf19e33534dc665f9 (diff)
downloadports-67c4b925b7fd606361a2152563b80da493232dfb.tar.gz
ports-67c4b925b7fd606361a2152563b80da493232dfb.zip
Go ports: cleanup, finish transition to USES=go started with r505321 (cat. misc-shells)
- Remove custom build/install targets left in place after r505321 - Switch to the new GO_TARGET tuple syntax introduced in r512001 - Switch to go:modules when upstream already uses them Reviewed by: tobik Approved by: araujo (mentor), portmgr (adamw) Differential Revision: https://reviews.freebsd.org/D21743
Notes
Notes: svn path=/head/; revision=513275
Diffstat (limited to 'net-mgmt/grok_exporter')
-rw-r--r--net-mgmt/grok_exporter/Makefile6
1 files changed, 2 insertions, 4 deletions
diff --git a/net-mgmt/grok_exporter/Makefile b/net-mgmt/grok_exporter/Makefile
index b375d06df5c0..16302deb5056 100644
--- a/net-mgmt/grok_exporter/Makefile
+++ b/net-mgmt/grok_exporter/Makefile
@@ -28,12 +28,10 @@ GO_PKGNAME= github.com/${GH_ACCOUNT}/${PORTNAME}
USE_RC_SUBR= grok_exporter
SUB_FILES= config.yml
-do-build:
+post-patch:
${LN} -sf ${WRKSRC}/tailer/fileTailer_darwin.go ${WRKSRC}/tailer/fileTailer_freebsd.go
- @(cd ${GO_WRKSRC}; ${SETENV} ${MAKE_ENV} ${GO_ENV} ${GO_CMD} build -o ${PORTNAME} .)
-do-install:
- ${INSTALL_PROGRAM} ${GO_WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
+post-install:
${MKDIR} ${STAGEDIR}${ETCDIR}
${INSTALL_DATA} ${WRKDIR}/config.yml ${STAGEDIR}${ETCDIR}
@(cd ${WRKSRC} && ${COPYTREE_SHARE} example ${STAGEDIR}${DATADIR})