svn commit: r508966 - head/net-mgmt/blackbox_exporter

Boris Samorodov bsam at FreeBSD.org
Wed Aug 14 20:02:08 UTC 2019


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 at 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}
 


More information about the svn-ports-all mailing list