git: 41f052e8e2ba - main - sysutils/mkr: add port: Command line tool for Mackerel
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 20 Jun 2025 19:35:11 UTC
The branch main has been updated by tagattie:
URL: https://cgit.FreeBSD.org/ports/commit/?id=41f052e8e2ba75e711189c456a25964417737097
commit 41f052e8e2ba75e711189c456a25964417737097
Author: Hiroki Tagato <tagattie@FreeBSD.org>
AuthorDate: 2025-06-20 19:33:51 +0000
Commit: Hiroki Tagato <tagattie@FreeBSD.org>
CommitDate: 2025-06-20 19:33:51 +0000
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
---
sysutils/Makefile | 1 +
sysutils/mkr/Makefile | 32 ++++++++++++++++++++++++++++++++
sysutils/mkr/distinfo | 5 +++++
sysutils/mkr/pkg-descr | 4 ++++
4 files changed, 42 insertions(+)
diff --git a/sysutils/Makefile b/sysutils/Makefile
index e094eaa9b3b6..a5430da5802c 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -718,6 +718,7 @@
SUBDIR += mkfwimage
SUBDIR += mkjail
SUBDIR += mkntpwd
+ SUBDIR += mkr
SUBDIR += mmc-utils
SUBDIR += mmve
SUBDIR += modman
diff --git a/sysutils/mkr/Makefile b/sysutils/mkr/Makefile
new file mode 100644
index 000000000000..e77b484db099
--- /dev/null
+++ b/sysutils/mkr/Makefile
@@ -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>
diff --git a/sysutils/mkr/distinfo b/sysutils/mkr/distinfo
new file mode 100644
index 000000000000..30dbbb83ebe2
--- /dev/null
+++ b/sysutils/mkr/distinfo
@@ -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
diff --git a/sysutils/mkr/pkg-descr b/sysutils/mkr/pkg-descr
new file mode 100644
index 000000000000..3d42cb839c38
--- /dev/null
+++ b/sysutils/mkr/pkg-descr
@@ -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.