Date: Tue, 20 Aug 2024 20:32:40 GMT From: Zsolt Udvari <uzsolt@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 61d4ddfb22cf - main - net-mgmt/check_mk_agent: update to 2.3.0p12 Message-ID: <202408202032.47KKWevD053317@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by uzsolt: URL: https://cgit.FreeBSD.org/ports/commit/?id=61d4ddfb22cf8e9e3048887938550dabeb985b51 commit 61d4ddfb22cf8e9e3048887938550dabeb985b51 Author: Ian Valentine <ivalentine@arizona.edu> AuthorDate: 2024-08-20 20:27:35 +0000 Commit: Zsolt Udvari <uzsolt@FreeBSD.org> CommitDate: 2024-08-20 20:32:23 +0000 net-mgmt/check_mk_agent: update to 2.3.0p12 Add dependencies on sysutils/ipmitool, devel/libstatgrab, ftp/wget, and USES=python since those are listed as required in the docs. [https://docs.checkmk.com/latest/en/agent_freebsd.html] Switch to PREFIX (from LOCALBASE). Change MK_VARDIR from /var/lib/check_mk_agent to /var/db/check_mk_agent. Update the pkg-message to remove reference to devel/libstatgrab and devel/libstatgrab since those are included now, and changed the docs URL to be current. Changelog: https://checkmk.com/werks PR: 280953 Approved by: submitter is maintainer --- net-mgmt/check_mk_agent/Makefile | 21 ++++++++++++--------- net-mgmt/check_mk_agent/distinfo | 14 +++++++------- .../files/patch-check__mk__agent.freebsd | 14 ++++++++------ net-mgmt/check_mk_agent/files/pkg-message.in | 4 +--- 4 files changed, 28 insertions(+), 25 deletions(-) diff --git a/net-mgmt/check_mk_agent/Makefile b/net-mgmt/check_mk_agent/Makefile index aec345b5c61b..7d2e7cf89031 100644 --- a/net-mgmt/check_mk_agent/Makefile +++ b/net-mgmt/check_mk_agent/Makefile @@ -1,10 +1,10 @@ PORTNAME= check_mk_agent DISTVERSIONPREFIX= v -DISTVERSION= 2.1.0p22 +DISTVERSION= 2.3.0p12 CATEGORIES= net-mgmt -MASTER_SITES= https://raw.githubusercontent.com/tribe29/checkmk/${DISTVERSIONFULL}/agents/:agent \ - https://raw.githubusercontent.com/tribe29/checkmk/${DISTVERSIONFULL}/doc/agents/:doc \ - https://raw.githubusercontent.com/tribe29/checkmk/${DISTVERSIONFULL}/:license +MASTER_SITES= https://raw.githubusercontent.com/Checkmk/checkmk/${DISTVERSIONFULL}/agents/:agent \ + https://raw.githubusercontent.com/Checkmk/checkmk/${DISTVERSIONFULL}/doc/agents/:doc \ + https://raw.githubusercontent.com/Checkmk/checkmk/${DISTVERSIONFULL}/:license DISTFILES= ${_CHECKMK_AGENT}:agent \ README.FreeBSD:doc \ COPYING:license @@ -17,9 +17,12 @@ WWW= https://checkmk.com/ LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING -RUN_DEPENDS= bash>0:shells/bash +RUN_DEPENDS= bash:shells/bash \ + ipmitool:sysutils/ipmitool \ + statgrab:devel/libstatgrab \ + wget:ftp/wget -USES= perl5 shebangfix +USES= perl5 python:3.4+ shebangfix USE_PERL5= run SHEBANG_FILES= ${_CHECKMK_AGENT} @@ -44,14 +47,14 @@ PORTDOCS= README.FreeBSD OPTIONS_DEFINE= DOCS _CHECKMK_AGENT= ${PORTNAME}.freebsd -_CHECKMK_CONFDIR= ${LOCALBASE}/etc/check_mk -_CHECKMK_LIBDIR= ${LOCALBASE}/lib/check_mk_agent +_CHECKMK_LIBDIR= ${PREFIX}/lib/check_mk_agent +_CHECKMK_CONFDIR= ${PREFIX}/etc/check_mk post-patch: @${REINPLACE_CMD} \ -e 's|%%CHECKMK_LIBDIR%%|${_CHECKMK_LIBDIR}|' \ -e 's|%%CHECKMK_CONFDIR%%|${_CHECKMK_CONFDIR}|' \ - -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \ + -e 's|%%PREFIX%%|${PREFIX}|g' \ ${WRKSRC}/${_CHECKMK_AGENT} do-install: diff --git a/net-mgmt/check_mk_agent/distinfo b/net-mgmt/check_mk_agent/distinfo index 93c84aaa2b46..807877b24a33 100644 --- a/net-mgmt/check_mk_agent/distinfo +++ b/net-mgmt/check_mk_agent/distinfo @@ -1,7 +1,7 @@ -TIMESTAMP = 1677107456 -SHA256 (check_mk_agent-2.1.0.p22/check_mk_agent.freebsd) = c99b59beb8d0eee0916e8dc4b7f9dcce08afb62e157856e785837aadb0f071ec -SIZE (check_mk_agent-2.1.0.p22/check_mk_agent.freebsd) = 28094 -SHA256 (check_mk_agent-2.1.0.p22/README.FreeBSD) = 01094a2197ca0a3a43ac16098c0f800d2ee808db2fd9a2f133f4bad04062ec5f -SIZE (check_mk_agent-2.1.0.p22/README.FreeBSD) = 1349 -SHA256 (check_mk_agent-2.1.0.p22/COPYING) = fbaab079995bef694ef8451f0f763b91b44e5b57b8e2a487d2a240b395187a7f -SIZE (check_mk_agent-2.1.0.p22/COPYING) = 15174 +TIMESTAMP = 1723755628 +SHA256 (check_mk_agent-2.3.0.p12/check_mk_agent.freebsd) = e90757599339de56cab8f5059a1006d20f6bdfe9cb5cfd8460b95deee8039ffd +SIZE (check_mk_agent-2.3.0.p12/check_mk_agent.freebsd) = 32404 +SHA256 (check_mk_agent-2.3.0.p12/README.FreeBSD) = 01094a2197ca0a3a43ac16098c0f800d2ee808db2fd9a2f133f4bad04062ec5f +SIZE (check_mk_agent-2.3.0.p12/README.FreeBSD) = 1349 +SHA256 (check_mk_agent-2.3.0.p12/COPYING) = fbaab079995bef694ef8451f0f763b91b44e5b57b8e2a487d2a240b395187a7f +SIZE (check_mk_agent-2.3.0.p12/COPYING) = 15174 diff --git a/net-mgmt/check_mk_agent/files/patch-check__mk__agent.freebsd b/net-mgmt/check_mk_agent/files/patch-check__mk__agent.freebsd index 0f20cdf271c2..b772f38e4d8e 100644 --- a/net-mgmt/check_mk_agent/files/patch-check__mk__agent.freebsd +++ b/net-mgmt/check_mk_agent/files/patch-check__mk__agent.freebsd @@ -1,24 +1,26 @@ ---- check_mk_agent.freebsd.orig 2023-02-22 23:45:20 UTC +--- check_mk_agent.freebsd.orig 2024-08-15 18:32:18 UTC +++ check_mk_agent.freebsd -@@ -105,8 +105,8 @@ set_up_get_epoch() { +@@ -117,9 +117,9 @@ set_variable_defaults() { # set_variable_defaults() { - : "${MK_LIBDIR:=/usr/local/lib/check_mk_agent}" - : "${MK_CONFDIR:=/etc/check_mk}" +- : "${MK_VARDIR:=/var/lib/check_mk_agent}" + : "${MK_LIBDIR:=%%CHECKMK_LIBDIR%%}" + : "${MK_CONFDIR:=%%CHECKMK_CONFDIR%%}" - : "${MK_VARDIR:=/var/lib/check_mk_agent}" ++ : "${MK_VARDIR:=/var/db/check_mk_agent}" : "${MK_LOGDIR:=/var/log/check_mk_agent}" -@@ -126,8 +126,8 @@ preamble_1() { + # some 'booleans' +@@ -138,8 +138,8 @@ preamble_1() { # Make sure locally installed binaries are found # Only add binaries if they are not already in the path! If you append to path in a loop the process will # eventually each the 128k size limit for the environment and become a zombie process. See execve manpage. - [ "${PATH#*"/usr/local/bin"}" != "${PATH}" ] || PATH="${PATH}:/usr/local/bin" - [ "${PATH#*"/usr/local/sbin"}" != "${PATH}" ] || PATH="${PATH}:/usr/local/sbin" -+ [ "${PATH#*"%%LOCALBASE%%/bin"}" != "${PATH}" ] || PATH="${PATH}:%%LOCALBASE%%/bin" -+ [ "${PATH#*"%%LOCALBASE%%/sbin"}" != "${PATH}" ] || PATH="${PATH}:%%LOCALBASE%%/sbin" ++ [ "${PATH#*"%%PREFIX%%/bin"}" != "${PATH}" ] || PATH="${PATH}:%%PREFIX%%/bin" ++ [ "${PATH#*"%%PREFIX%%/sbin"}" != "${PATH}" ] || PATH="${PATH}:%%PREFIX%%/sbin" [ -d "/var/qmail/bin" ] && { [ "${PATH#*"/var/qmail/bin"}" != "${PATH}" ] || PATH="${PATH}:/var/qmail/bin"; } # All executables in PLUGINSDIR will simply be executed and their diff --git a/net-mgmt/check_mk_agent/files/pkg-message.in b/net-mgmt/check_mk_agent/files/pkg-message.in index e09f614b1b4c..66c7125a0218 100644 --- a/net-mgmt/check_mk_agent/files/pkg-message.in +++ b/net-mgmt/check_mk_agent/files/pkg-message.in @@ -2,8 +2,6 @@ { type: install message: <<EOM Checkmk may collect additional data if the following ports are installed: -- devel/libstatgrab -- sysutils/ipmitool - sysutils/megacli - mail/postfix - mail/qmail @@ -12,7 +10,7 @@ See the code of the agent (%%PREFIX%%/bin/%%PORTNAME%%) for details. Configuration instructions may be found in one of the following places: - %%DOCSDIR%%/README.FreeBSD -- https://checkmk.com/checkmk_freebsd.html +- https://docs.checkmk.com/latest/en/agent_freebsd.html EOM } ]
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202408202032.47KKWevD053317>