View | Details | Raw Unified | Return to bug 239275
Collapse All | Expand All

(-)net-mgmt/alertmanager/Makefile (-9 / +15 lines)
Lines 3-9 Link Here
3
3
4
PORTNAME=	alertmanager
4
PORTNAME=	alertmanager
5
DISTVERSIONPREFIX=	v
5
DISTVERSIONPREFIX=	v
6
DISTVERSION=	0.16.2
6
DISTVERSION=	0.18.0
7
CATEGORIES=	net-mgmt
7
CATEGORIES=	net-mgmt
8
8
9
MAINTAINER=	michal@hanu.la
9
MAINTAINER=	michal@hanu.la
Lines 12-18 Link Here
12
LICENSE=	APACHE20
12
LICENSE=	APACHE20
13
LICENSE_FILE=	${WRKSRC}/LICENSE
13
LICENSE_FILE=	${WRKSRC}/LICENSE
14
14
15
USES=		go gmake
15
USES=		go:modules gmake
16
USE_GITHUB=	yes
16
USE_GITHUB=	yes
17
GH_ACCOUNT=	prometheus
17
GH_ACCOUNT=	prometheus
18
USE_RC_SUBR=	alertmanager
18
USE_RC_SUBR=	alertmanager
Lines 22-35 Link Here
22
USERS=		alertmanager
22
USERS=		alertmanager
23
GROUPS=		alertmanager
23
GROUPS=		alertmanager
24
24
25
do-build:
25
BUILD_USER?=	${USER}
26
	@cd ${GO_WRKSRC}/cmd/alertmanager && ${SETENV} ${MAKE_ENV} ${GO_ENV} go install
26
LD_FLAG_X_STRING=	-X ${GO_PKGNAME:H}/common/version
27
	@cd ${GO_WRKSRC}/cmd/amtool && ${SETENV} ${MAKE_ENV} ${GO_ENV} go install
27
LD_FLAG_STRING=		${LD_FLAG_X_STRING}.Version=${PORTVERSION} \
28
			${LD_FLAG_X_STRING}.Revision=${PORTREVISION} \
29
			${LD_FLAG_X_STRING}.Branch=release-${PORTVERSION:R} \
30
			${LD_FLAG_X_STRING}.BuildUser=${BUILD_USER}
31
GO_BUILDFLAGS=		-v -ldflags "${LD_FLAG_STRING}"
32
GO_TARGET=		./cmd/alertmanager \
33
			./cmd/amtool
28
34
29
do-install:
35
post-install:
30
	${INSTALL_PROGRAM} ${GO_WRKDIR_BIN}/alertmanager ${STAGEDIR}${PREFIX}/bin
31
	${INSTALL_PROGRAM} ${GO_WRKDIR_BIN}/amtool ${STAGEDIR}${PREFIX}/bin
32
	@${MKDIR} ${STAGEDIR}${PREFIX}/etc/alertmanager
36
	@${MKDIR} ${STAGEDIR}${PREFIX}/etc/alertmanager
33
	${INSTALL_DATA} ${WRKSRC}/doc/examples/simple.yml ${STAGEDIR}${PREFIX}/etc/alertmanager/alertmanager.yml.sample
37
	${INSTALL_DATA} \
38
		${WRKSRC}/doc/examples/simple.yml \
39
		${STAGEDIR}${PREFIX}/etc/alertmanager/alertmanager.yml.sample
34
40
35
.include <bsd.port.mk>
41
.include <bsd.port.mk>
(-)net-mgmt/alertmanager/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1554715019
1
TIMESTAMP = 1563397402
2
SHA256 (prometheus-alertmanager-v0.16.2_GH0.tar.gz) = 5934ff312c23637ce331f1a221a9671f9af5d748cabe11b84fb4c5ad6b600430
2
SHA256 (prometheus-alertmanager-v0.18.0_GH0.tar.gz) = aa9536f001c4c46ceb5aa1767c81922777b3a2740529d25d86c9f27554cbd466
3
SIZE (prometheus-alertmanager-v0.16.2_GH0.tar.gz) = 3616125
3
SIZE (prometheus-alertmanager-v0.18.0_GH0.tar.gz) = 5181819
(-)net-mgmt/alertmanager/pkg-message (+13 lines)
Line 0 Link Here
1
[
2
{
3
  message: <<EOF
4
There were a number of changes to amtool in 0.17.0 which are not fully
5
backwards compatible, related to the backup and import of silences.
6
If a backup of silences is created using a previous version of amtool (v0.16.1
7
or earlier), it is possible that not all silences can be correctly imported
8
using a later version of amtool.
9
EOF
10
  maximum_version: "0.17.0"
11
  type: upgrade
12
}
13
]

Return to bug 239275