1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-05 06:27:37 +00:00

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)
This commit is contained in:
Tobias Kortkamp 2019-07-26 07:36:02 +00:00
parent 97804ade38
commit 435407595b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=507343

View File

@ -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