Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Jul 2019 07:36:02 +0000 (UTC)
From:      Tobias Kortkamp <tobik@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r507343 - head/net-mgmt/alertmanager
Message-ID:  <201907260736.x6Q7a2N9087453@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tobik
Date: Fri Jul 26 07:36:02 2019
New Revision: 507343
URL: https://svnweb.freebsd.org/changeset/ports/507343

Log:
  net-mgmt/alertmanager: Switch to USES=go:modules
  
  - Remove unneeded targets
  - Fix build with go1.13beta1
  
  ===>  Building for alertmanager-0.16.2
  go: github.com/DataDog/datadog-go@v0.0.0-20180822151419-281ae9f2d895: G
  et https://proxy.golang.org/github.com/%21data%21dog/datadog-go/@v/v0.0
  .0-20180822151419-281ae9f2d895.mod: dial tcp: lookup proxy.golang.org o
  n 1.0.0.1:53: write udp 127.0.0.1:45569->1.0.0.1:53: write: permission
  denied
  *** Error code 1
  
  PR:		238917
  Submitted by:	Dmitri Goutnik <dg@syrec.org>
  Approved by:	michal@hanu.la (maintainer)

Modified:
  head/net-mgmt/alertmanager/Makefile

Modified: head/net-mgmt/alertmanager/Makefile
==============================================================================
--- head/net-mgmt/alertmanager/Makefile	Fri Jul 26 07:30:33 2019	(r507342)
+++ head/net-mgmt/alertmanager/Makefile	Fri Jul 26 07:36:02 2019	(r507343)
@@ -12,23 +12,18 @@ COMMENT=	Alert routing for prometheus
 LICENSE=	APACHE20
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-USES=		go gmake
+USES=		go:modules
 USE_GITHUB=	yes
 GH_ACCOUNT=	prometheus
 USE_RC_SUBR=	alertmanager
 
-GO_PKGNAME=	github.com/prometheus/${PORTNAME}
+GO_TARGET=	./cmd/alertmanager \
+		./cmd/amtool
 
 USERS=		alertmanager
 GROUPS=		alertmanager
 
-do-build:
-	@cd ${GO_WRKSRC}/cmd/alertmanager && ${SETENV} ${MAKE_ENV} ${GO_ENV} go install
-	@cd ${GO_WRKSRC}/cmd/amtool && ${SETENV} ${MAKE_ENV} ${GO_ENV} go install
-
-do-install:
-	${INSTALL_PROGRAM} ${GO_WRKDIR_BIN}/alertmanager ${STAGEDIR}${PREFIX}/bin
-	${INSTALL_PROGRAM} ${GO_WRKDIR_BIN}/amtool ${STAGEDIR}${PREFIX}/bin
+post-install:
 	@${MKDIR} ${STAGEDIR}${PREFIX}/etc/alertmanager
 	${INSTALL_DATA} ${WRKSRC}/doc/examples/simple.yml ${STAGEDIR}${PREFIX}/etc/alertmanager/alertmanager.yml.sample
 



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