freebsd-ports/net-mgmt/check_mk_agent/files/patch-check__mk__agent.freebsd
Mateusz Piotrowski 5f4eac1478 Update patches missed in the recent version bump
Reported by:	pkg-fallout
2020-02-07 08:23:05 +00:00

31 lines
1.2 KiB
Text

--- check_mk_agent.freebsd.orig 2020-02-05 09:13:20 UTC
+++ check_mk_agent.freebsd
@@ -41,15 +41,15 @@
export LC_ALL=C
unset LANG
-export MK_LIBDIR="/usr/local/lib/check_mk_agent"
-export MK_CONFDIR="/etc/check_mk"
-export MK_TMPDIR="/var/run/check_mk"
+export MK_LIBDIR="%%CHECKMK_LIBDIR%%"
+export MK_CONFDIR="%%CHECKMK_CONFDIR%%"
+export MK_TMPDIR="%%CHECKMK_TMPDIR%%"
# Optionally set a tempdir for all subsequent calls
#export TMPDIR=
# Make sure, locally installed binaries are found
-PATH=$PATH:/usr/local/bin:/usr/local/sbin
+PATH=$PATH:%%LOCALBASE%%/bin:%%LOCALBASE%%/sbin
# All executables in PLUGINSDIR will simply be executed and their
# ouput appended to the output of the agent. Plugins define their own
@@ -109,7 +109,7 @@ function run_cached() {
# Cache file outdated and new job not yet running? Start it
if [ -z "$USE_CACHEFILE" -a ! -e "$CACHEFILE.new" ] ; then
- echo "$CMDLINE" | daemon /usr/local/bin/bash -o noclobber > $CACHEFILE.new && mv $CACHEFILE.new $CACHEFILE || rm -f $CACHEFILE $CACHEFILE.new &
+ echo "$CMDLINE" | daemon %%BASH%% -o noclobber > $CACHEFILE.new && mv $CACHEFILE.new $CACHEFILE || rm -f $CACHEFILE $CACHEFILE.new &
fi
}