www/nginx-prometheus-exporter: Switch to USES=go:modules, fix build with go1.13

PR:		240170
Submitted by:	Dmitri Goutnik <dg@syrec.org>
Approved by:	portmgr (fix build)
This commit is contained in:
Yuri Victorovich
2019-08-29 03:45:33 +00:00
parent d12989e285
commit 91d29d4e19

View File

@@ -11,14 +11,11 @@ COMMENT= Prometheus exporter for NGINX and NGINX Plus stats
LICENSE= APACHE20
USES= go
USES= go:modules
USE_GITHUB= yes
GH_ACCOUNT= nginxinc
GO_PKGNAME= github.com/${GH_ACCOUNT}/${PORTNAME}
GO_TARGET= github.com/${GH_ACCOUNT}/${PORTNAME}
PLIST_FILES= bin/${PORTNAME}
USE_RC_SUBR= ${PORTNAME}
@@ -28,7 +25,4 @@ LD_FLAG_STRING= -s \
${LD_FLAG_X_PREFIX}.version=${PORTVERSION}
GO_BUILDFLAGS= -v -ldflags "${LD_FLAG_STRING}"
do-install:
${INSTALL_PROGRAM} ${WRKDIR}/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
.include <bsd.port.mk>