Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Feb 2018 00:09:45 +0000 (UTC)
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r462467 - in head/net-mgmt/alertmanager: . files
Message-ID:  <201802210009.w1L09jcB065150@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuri
Date: Wed Feb 21 00:09:45 2018
New Revision: 462467
URL: https://svnweb.freebsd.org/changeset/ports/462467

Log:
  net-mgmt/alertmanager: Update to 0.14.0
  
  Additional port changes:
  * Changed to DISTVERSION
  * Moved plist to pkg-plist, added @sample for the config file
  * Silenced some commands
  * Improved syntax
  
  PR:		226065
  Submitted by:	michal@hanu.la (maintainer)
  Approved by:	tcberner (mentor, implicit)

Added:
  head/net-mgmt/alertmanager/pkg-plist   (contents, props changed)
Modified:
  head/net-mgmt/alertmanager/Makefile
  head/net-mgmt/alertmanager/distinfo
  head/net-mgmt/alertmanager/files/alertmanager.in

Modified: head/net-mgmt/alertmanager/Makefile
==============================================================================
--- head/net-mgmt/alertmanager/Makefile	Tue Feb 20 23:38:47 2018	(r462466)
+++ head/net-mgmt/alertmanager/Makefile	Wed Feb 21 00:09:45 2018	(r462467)
@@ -2,8 +2,8 @@
 # $FreeBSD$
 
 PORTNAME=	alertmanager
-PORTVERSION=	0.13.0
 DISTVERSIONPREFIX=	v
+DISTVERSION=	0.14.0
 CATEGORIES=	net-mgmt
 
 MAINTAINER=	michal@hanu.la
@@ -15,26 +15,21 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 USES=		go gmake
 USE_GITHUB=	yes
 GH_ACCOUNT=	prometheus
+USE_RC_SUBR=	alertmanager
 
 GO_PKGNAME=	github.com/prometheus/${PORTNAME}
 
-USE_RC_SUBR=	alertmanager
-
 USERS=		alertmanager
 GROUPS=		alertmanager
 
-PLIST_FILES=	bin/alertmanager \
-		bin/amtool \
-		etc/alertmanager/alertmanager.yml.sample
-
 do-build:
-	(cd ${GO_WRKSRC}/cmd/alertmanager ; ${SETENV} ${GO_ENV} go install)
-	(cd ${GO_WRKSRC}/cmd/amtool ; ${SETENV} ${GO_ENV} go install)
+	@cd ${GO_WRKSRC}/cmd/alertmanager && ${SETENV} ${GO_ENV} go install
+	@cd ${GO_WRKSRC}/cmd/amtool && ${SETENV} ${GO_ENV} go install
 
 do-install:
 	${INSTALL_PROGRAM} ${GO_WRKDIR_BIN}/alertmanager ${STAGEDIR}${PREFIX}/bin
 	${INSTALL_PROGRAM} ${GO_WRKDIR_BIN}/amtool ${STAGEDIR}${PREFIX}/bin
-	${MKDIR} ${STAGEDIR}${PREFIX}/etc/alertmanager
+	@${MKDIR} ${STAGEDIR}${PREFIX}/etc/alertmanager
 	${INSTALL_DATA} ${WRKSRC}/doc/examples/simple.yml ${STAGEDIR}${PREFIX}/etc/alertmanager/alertmanager.yml.sample
 
 .include <bsd.port.mk>

Modified: head/net-mgmt/alertmanager/distinfo
==============================================================================
--- head/net-mgmt/alertmanager/distinfo	Tue Feb 20 23:38:47 2018	(r462466)
+++ head/net-mgmt/alertmanager/distinfo	Wed Feb 21 00:09:45 2018	(r462467)
@@ -1,3 +1,3 @@
-TIMESTAMP = 1516235458
-SHA256 (prometheus-alertmanager-v0.13.0_GH0.tar.gz) = e17225aef987a587dd9f3e6827b090108adc118c3e94cf66d5f7cb3f665687e5
-SIZE (prometheus-alertmanager-v0.13.0_GH0.tar.gz) = 2782163
+TIMESTAMP = 1518647902
+SHA256 (prometheus-alertmanager-v0.14.0_GH0.tar.gz) = f25bd1dad2eb3e050f1208650571195194b0c2362c488a7ad5ca60f40ca866ac
+SIZE (prometheus-alertmanager-v0.14.0_GH0.tar.gz) = 2786623

Modified: head/net-mgmt/alertmanager/files/alertmanager.in
==============================================================================
--- head/net-mgmt/alertmanager/files/alertmanager.in	Tue Feb 20 23:38:47 2018	(r462466)
+++ head/net-mgmt/alertmanager/files/alertmanager.in	Wed Feb 21 00:09:45 2018	(r462467)
@@ -44,8 +44,8 @@ procname="%%PREFIX%%/bin/alertmanager"
 sig_reload=HUP
 extra_commands="reload"
 command_args="-p ${pidfile} /usr/bin/env ${procname} \
-                -config.file=${alertmanager_config} \
-                -storage.path=${alertmanager_data_dir} \
+                --config.file=${alertmanager_config} \
+                --storage.path=${alertmanager_data_dir} \
                 ${alertmanager_args} > ${alertmanager_log_file} 2>&1"
 
 start_precmd=alertmanager_startprecmd

Added: head/net-mgmt/alertmanager/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net-mgmt/alertmanager/pkg-plist	Wed Feb 21 00:09:45 2018	(r462467)
@@ -0,0 +1,3 @@
+bin/alertmanager
+bin/amtool
+@sample %%ETCDIR%%/alertmanager.yml.sample



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