[Bug 226918] net-mgmt/monitoring-plugins: check_mailq sudo option requires build time security/sudo dependency to work
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Tue Mar 27 08:16:15 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=226918
--- Comment #1 from Mathieu Arnold <mat at FreeBSD.org> ---
I just checked, and the fact that sudo is not present at build time does not
change anything.
There is an autoconf variable set to force the location of sudo.
$ grep sudo Makefile
ac_cv_path_PATH_TO_SUDO=${LOCALBASE}/bin/sudo \
and it is correctly set even if sudo is not present:
root at 11amd64-ports:~ # grep sudo /usr/local/libexec/nagios/utils.pm
$PATH_TO_SUDO = "/usr/local/bin/sudo";
root at 11amd64-ports:~ # type sudo
sudo: not found
And the code is not removed from check_mailq, but it only works if sudo is
installed. So, all in all, I do not understand. All you need to do is have
sudo present when check_mailq rans for it to be able to use it.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list