$OpenBSD: patch-LibreNMS_Config_php,v 1.11 2020/10/02 18:45:23 sthen Exp $

openbsd (and netbsd) whereis don't support -b

Index: LibreNMS/Config.php
--- LibreNMS/Config.php.orig
+++ LibreNMS/Config.php
@@ -497,7 +497,7 @@ class Config
     public static function locateBinary($binary)
     {
         if (! Str::contains($binary, '/')) {
-            $output = `whereis -b $binary`;
+            $output = `whereis $binary`;
             $list = trim(substr($output, strpos($output, ':') + 1));
             $targets = explode(' ', $list);
             foreach ($targets as $target) {
