Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Aug 2019 20:02:08 +0000 (UTC)
From:      Boris Samorodov <bsam@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r508966 - head/net-mgmt/blackbox_exporter
Message-ID:  <201908142002.x7EK287p061133@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bsam
Date: Wed Aug 14 20:02:08 2019
New Revision: 508966
URL: https://svnweb.freebsd.org/changeset/ports/508966

Log:
  net-mgmt/blackbox_exporter: Switch to USES=go:modules, fix build with go1.13
  
  PR:		239865
  Submitted by: Dmitri Goutnik <dg@syrec.org>

Modified:
  head/net-mgmt/blackbox_exporter/Makefile

Modified: head/net-mgmt/blackbox_exporter/Makefile
==============================================================================
--- head/net-mgmt/blackbox_exporter/Makefile	Wed Aug 14 19:59:17 2019	(r508965)
+++ head/net-mgmt/blackbox_exporter/Makefile	Wed Aug 14 20:02:08 2019	(r508966)
@@ -12,7 +12,8 @@ COMMENT=	Prometheus exporter for endpoints over HTTP(S
 LICENSE=	APACHE20
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-USES=		go
+USES=		go:modules
+
 USE_GITHUB=	yes
 GH_ACCOUNT=	prometheus
 USE_RC_SUBR=	blackbox_exporter
@@ -20,9 +21,6 @@ USE_RC_SUBR=	blackbox_exporter
 USERS=		prometheus
 GROUPS=		prometheus
 
-GO_PKGNAME=	github.com/${GH_ACCOUNT}/${PORTNAME}
-GO_TARGET=	github.com/${GH_ACCOUNT}/${PORTNAME}
-
 PORTEXAMPLES=	${WRKSRC}/*.yml
 
 OPTIONS_DEFINE=	EXAMPLES
@@ -33,8 +31,7 @@ PLIST_FILES=	bin/blackbox_exporter \
 		${EXAMPLESDIR}/blackbox.yml \
 		${EXAMPLESDIR}/example.yml
 
-do-install:
-	${INSTALL_PROGRAM} ${WRKDIR}/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
+post-install:
 	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
 	${INSTALL_DATA} ${WRKSRC}/*.yml ${STAGEDIR}${EXAMPLESDIR}
 



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