git: d7df63431951 - main - net-mgmt/librenms: Unbreak capture page

From: Dan Langille <dvl_at_FreeBSD.org>
Date: Wed, 20 Dec 2023 15:34:58 UTC
The branch main has been updated by dvl:

URL: https://cgit.FreeBSD.org/ports/commit/?id=d7df634319511db8234937808723b1b7695a4288

commit d7df634319511db8234937808723b1b7695a4288
Author:     Dan Langille <dvl@FreeBSD.org>
AuthorDate: 2023-12-20 15:34:23 +0000
Commit:     Dan Langille <dvl@FreeBSD.org>
CommitDate: 2023-12-20 15:34:23 +0000

    net-mgmt/librenms: Unbreak capture page
    
    My previous patch was broken, now fixed.
---
 net-mgmt/librenms/Makefile                                         | 1 +
 net-mgmt/librenms/files/patch-includes_html_output_capture.inc.php | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/net-mgmt/librenms/Makefile b/net-mgmt/librenms/Makefile
index 140c730b38bd..38bd57339b9d 100644
--- a/net-mgmt/librenms/Makefile
+++ b/net-mgmt/librenms/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	librenms
 PORTVERSION=	23.11.0
+PORTREVISION=	1
 PORTEPOCH=	1
 CATEGORIES=	net-mgmt
 MASTER_SITES=	LOCAL/dvl:vendor
diff --git a/net-mgmt/librenms/files/patch-includes_html_output_capture.inc.php b/net-mgmt/librenms/files/patch-includes_html_output_capture.inc.php
index 22e95d6b950a..9db94e486f2b 100644
--- a/net-mgmt/librenms/files/patch-includes_html_output_capture.inc.php
+++ b/net-mgmt/librenms/files/patch-includes_html_output_capture.inc.php
@@ -5,7 +5,7 @@
  switch ($type) {
      case 'poller':
 -        $cmd = ['php', \LibreNMS\Config::get('install_dir') . '/lnms', 'device:poll', $hostname, '--no-data', '-vv'];
-+        $cmd = [''%%LOCALBASE%%/bin/php', \LibreNMS\Config::get('install_dir') . '/lnms', 'device:poll', $hostname, '--no-data', '-vv'];
++        $cmd = ['%%LOCALBASE%%/bin/php', \LibreNMS\Config::get('install_dir') . '/lnms', 'device:poll', $hostname, '--no-data', '-vv'];
          $filename = "poller-$hostname.txt";
          break;
      case 'snmpwalk':
@@ -14,7 +14,7 @@
          break;
      case 'discovery':
 -        $cmd = ['php', \LibreNMS\Config::get('install_dir') . '/discovery.php', '-h', $hostname, '-d'];
-+        $cmd = [''%%LOCALBASE%%/bin/php', \LibreNMS\Config::get('install_dir') . '/discovery.php', '-h', $hostname, '-d'];
++        $cmd = ['%%LOCALBASE%%/bin/php', \LibreNMS\Config::get('install_dir') . '/discovery.php', '-h', $hostname, '-d'];
          $filename = "discovery-$hostname.txt";
          break;
      default: