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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user