mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-29 05:38:00 +00:00
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)
This commit is contained in:
parent
7bfdafcd93
commit
128eb0fda4
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=462467
@ -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>
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
3
net-mgmt/alertmanager/pkg-plist
Normal file
3
net-mgmt/alertmanager/pkg-plist
Normal file
@ -0,0 +1,3 @@
|
||||
bin/alertmanager
|
||||
bin/amtool
|
||||
@sample %%ETCDIR%%/alertmanager.yml.sample
|
Loading…
Reference in New Issue
Block a user