Index: Makefile =================================================================== --- Makefile (revision 458864) +++ Makefile (working copy) @@ -120,6 +120,7 @@ BAREOS_UID?= 997 BAREOS_GID?= ${BAREOS_UID} BAREOS_DIR?= /var/db/bareos +MTX?= /usr/local/sbin/mtx PLIST_SUB+= BAREOS_DIR=${BAREOS_DIR} Index: files/patch-scripts_mtx-changer.in =================================================================== --- files/patch-scripts_mtx-changer.in (nonexistent) +++ files/patch-scripts_mtx-changer.in (working copy) @@ -0,0 +1,11 @@ +--- scripts/mtx-changer.in.orig 2018-01-12 13:20:04.913159000 -0600 ++++ scripts/mtx-changer.in 2018-01-12 13:20:15.531373000 -0600 +@@ -251,7 +251,7 @@ case $cmd in + ${MTX} -f $ctl status >${TMPFILE} + rtn=$? + # can be converted to awk+sed+cut, see below +- perl -ne ' ++ /usr/local/bin/perl -ne ' + /Data Transfer Element (\d+):Empty/ && print "D:$1:E\n"; + /Data Transfer Element (\d+):Full \(Storage Element (\d+) Loaded\)(:VolumeTag =\s*(.+))?/ && print "D:$1:F:$2:$4\n"; + /Storage Element (\d+):Empty/ && print "S:$1:E\n";