Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Aug 2019 03:45:33 +0000 (UTC)
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r510136 - head/www/nginx-prometheus-exporter
Message-ID:  <201908290345.x7T3jXH0033087@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuri
Date: Thu Aug 29 03:45:33 2019
New Revision: 510136
URL: https://svnweb.freebsd.org/changeset/ports/510136

Log:
  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)

Modified:
  head/www/nginx-prometheus-exporter/Makefile

Modified: head/www/nginx-prometheus-exporter/Makefile
==============================================================================
--- head/www/nginx-prometheus-exporter/Makefile	Thu Aug 29 03:42:29 2019	(r510135)
+++ head/www/nginx-prometheus-exporter/Makefile	Thu Aug 29 03:45:33 2019	(r510136)
@@ -11,14 +11,11 @@ COMMENT=	Prometheus exporter for NGINX and NGINX Plus 
 
 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}
@@ -27,8 +24,5 @@ LD_FLAG_X_PREFIX=	-X main
 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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201908290345.x7T3jXH0033087>