summaryrefslogtreecommitdiff
path: root/net-mgmt
diff options
context:
space:
mode:
authorDan Langille <dvl@FreeBSD.org>2023-12-20 15:34:23 +0000
committerDan Langille <dvl@FreeBSD.org>2023-12-20 15:34:23 +0000
commitd7df634319511db8234937808723b1b7695a4288 (patch)
tree0de2c028a18d2133cd840a30180c5743fa79f5cb /net-mgmt
parentmisc/freebsd-release-manifests: Fix plist (diff)
net-mgmt/librenms: Unbreak capture page
My previous patch was broken, now fixed.
Diffstat (limited to 'net-mgmt')
-rw-r--r--net-mgmt/librenms/Makefile1
-rw-r--r--net-mgmt/librenms/files/patch-includes_html_output_capture.inc.php4
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: