mirror of
https://github.com/netbirdio/FreeBSD-ports.git
synced 2026-05-22 18:42:42 -07:00
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
33 lines
698 B
Makefile
33 lines
698 B
Makefile
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>
|