svn commit: r509133 - head/databases/redis_exporter

Yuri Victorovich yuri at FreeBSD.org
Sat Aug 17 01:58:32 UTC 2019


Author: yuri
Date: Sat Aug 17 01:58:31 2019
New Revision: 509133
URL: https://svnweb.freebsd.org/changeset/ports/509133

Log:
  databases/redis_exporter: Switch to USES=go:modules, fix build with go1.13
  
  PR:		239880
  Submitted by:	Dmitri Goutnik <dg at syrec.org>
  Approved by:	portmgr (unbreak with the upcoming go1.13)

Modified:
  head/databases/redis_exporter/Makefile

Modified: head/databases/redis_exporter/Makefile
==============================================================================
--- head/databases/redis_exporter/Makefile	Sat Aug 17 01:55:45 2019	(r509132)
+++ head/databases/redis_exporter/Makefile	Sat Aug 17 01:58:31 2019	(r509133)
@@ -12,14 +12,12 @@ COMMENT=	Prometheus exporter for redis stats
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-USES=		go
+USES=		go:modules
 
 USE_GITHUB=	yes
 GH_ACCOUNT=	oliver006
 USE_RC_SUBR=	redis_exporter
 
-GO_PKGNAME=	github.com/${GH_ACCOUNT}/${PORTNAME}
-GO_TARGET=	github.com/${GH_ACCOUNT}/${PORTNAME}
 GO_BUILDFLAGS=	-v -ldflags "${LD_FLAG_STRING}"
 
 PLIST_FILES=	bin/redis_exporter
@@ -27,8 +25,5 @@ PLIST_FILES=	bin/redis_exporter
 LD_FLAG_X_PREFIX=	-X main
 LD_FLAG_STRING=		-s \
 		${LD_FLAG_X_PREFIX}.BuildVersion=${PORTVERSION}
-
-do-install:
-	${INSTALL_PROGRAM} ${WRKDIR}/bin/redis_exporter ${STAGEDIR}${PREFIX}/bin
 
 .include <bsd.port.mk>


More information about the svn-ports-all mailing list