sysutils/mkr: add port: Command line tool for Mackerel
mkr is a command-line interface tool for the Mackerel API written in Go. mkr helps to automate tedious daily server operations to best leverage Mackerel's and Unix's tools. mkr output format is JSON, so it can be filtered with a JSON processor such as jq. WWW: https://github.com/mackerelio/mkr
This commit is contained in:
@@ -718,6 +718,7 @@
|
||||
SUBDIR += mkfwimage
|
||||
SUBDIR += mkjail
|
||||
SUBDIR += mkntpwd
|
||||
SUBDIR += mkr
|
||||
SUBDIR += mmc-utils
|
||||
SUBDIR += mmve
|
||||
SUBDIR += modman
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
PORTNAME= mkr
|
||||
DISTVERSIONPREFIX= v
|
||||
DISTVERSION= 0.61.0
|
||||
CATEGORIES= sysutils
|
||||
|
||||
MAINTAINER= tagattie@FreeBSD.org
|
||||
COMMENT= Command line tool for Mackerel
|
||||
WWW= https://github.com/mackerelio/mkr
|
||||
|
||||
LICENSE= APACHE20
|
||||
LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||
|
||||
USES= go:modules
|
||||
|
||||
GO_MODULE= github.com/mackerelio/mkr
|
||||
GO_BUILDFLAGS= -ldflags="-s -w"
|
||||
|
||||
PLIST_FILES= bin/${PORTNAME}
|
||||
|
||||
PORTDOCS= CHANGELOG.md README.md
|
||||
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e "s|/etc|${PREFIX}&|" \
|
||||
${WRKSRC}/vendor/github.com/mackerelio/mackerel-agent/config/config_unix.go
|
||||
|
||||
post-install-DOCS-on:
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
${INSTALL_MAN} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
@@ -0,0 +1,5 @@
|
||||
TIMESTAMP = 1750446393
|
||||
SHA256 (go/sysutils_mkr/mkr-v0.61.0/v0.61.0.mod) = 57446e37e58babf1a5d0a60152d17751cd49ef89dbba7423ebd5686e89cb81dc
|
||||
SIZE (go/sysutils_mkr/mkr-v0.61.0/v0.61.0.mod) = 3435
|
||||
SHA256 (go/sysutils_mkr/mkr-v0.61.0/v0.61.0.zip) = 07babf61f50a4382647a4a024f55def0c387ea0847037be9b4355bd57635ac3b
|
||||
SIZE (go/sysutils_mkr/mkr-v0.61.0/v0.61.0.zip) = 132736
|
||||
@@ -0,0 +1,4 @@
|
||||
mkr is a command-line interface tool for the Mackerel API written in
|
||||
Go. mkr helps to automate tedious daily server operations to best
|
||||
leverage Mackerel's and Unix's tools. mkr output format is JSON, so it
|
||||
can be filtered with a JSON processor such as jq.
|
||||
Reference in New Issue
Block a user