After make extract of latest 2.5.0p9: /usr/ports/net-mgmt/check_mk_agent # grep -n MK_CONFDIR work/check_mk_agent-2.5.0p9/check_mk_agent.freebsd 26:# Agent paths (MK_LIBDIR, MK_CONFDIR, MK_VARDIR, MK_LOGDIR, MK_BIN) 148: : "${MK_CONFDIR:="/usr/local/etc/check_mk"}" But after make patch and thus in the script which gets installed: /usr/ports/net-mgmt/check_mk_agent # grep -n MK_CONFDIR work/check_mk_agent-2.5.0p9/check_mk_agent.freebsd 26:# Agent paths (MK_LIBDIR, MK_CONFDIR, MK_VARDIR, MK_LOGDIR, MK_BIN) 148: : "${MK_CONFDIR:="/usr/local/usr/local/etc/check_mk"}" Maybe remove this from the Makefile: -e 's|/etc/check_mk|${_CHECKMK_CONFDIR}|' \
I just found the same thing in a troubleshooting session, appreciate forthcoming (un)patch!
Created attachment 273419 [details] Patchfile for reported bug Thank you for catching this bug! Believe that the patch should still happen, so as to respect different PREFIX values, but I am open to better ways to do that. Upstream commit that introduced this change: https://github.com/Checkmk/checkmk/commit/3919d291dde9961e10b25f11d4cabdc2263dd7f8
Thank you, patch works fine for me. My bad, I reported to upstream only at the same time you fixed MK_CONFDIR in the port's Makefile in August 2024.
Has this been committed to ports?
It has not, I'm not a committer.
I dropped a request on freebsd-ports. A patch is fine, of course, but really only half the work. Anyone who installs or upgrades this port today still has a non-functional piece of software.
Reopen an take this.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=1deeef98daabe9dc293951c1584d7c7aaf17d8ad commit 1deeef98daabe9dc293951c1584d7c7aaf17d8ad Author: Ian Valentine <ivalentine@arizona.edu> AuthorDate: 2026-08-06 18:34:09 +0000 Commit: Bernhard Froehlich <decke@FreeBSD.org> CommitDate: 2026-08-06 18:45:14 +0000 net-mgmt/check_mk_agent: Change default paths Upstream changed default values for MK_CONFDIR and MK_VARDIR. This updates the patch to properly use PREFIX with the new defaults and not hardcode to /usr/local. PR: 297244 Approved by: maintainer net-mgmt/check_mk_agent/Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
Committed. Thanks!