diff options
Diffstat (limited to 'net-mgmt/librenms')
-rw-r--r-- | net-mgmt/librenms/Makefile | 43 | ||||
-rw-r--r-- | net-mgmt/librenms/distinfo | 10 | ||||
-rw-r--r-- | net-mgmt/librenms/files/patch-includes_html_output_capture.inc.php | 14 |
3 files changed, 36 insertions, 31 deletions
diff --git a/net-mgmt/librenms/Makefile b/net-mgmt/librenms/Makefile index db8ee52889af..a4b7eaa84e22 100644 --- a/net-mgmt/librenms/Makefile +++ b/net-mgmt/librenms/Makefile @@ -1,5 +1,5 @@ PORTNAME= librenms -PORTVERSION= 25.5.0 +PORTVERSION= 25.8.0 PORTEPOCH= 1 CATEGORIES= net-mgmt MASTER_SITES= LOCAL/dvl:vendor @@ -18,8 +18,7 @@ RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}psutil>0:sysutils/py-psutil@${PY_FLAVOR} \ bash:shells/bash \ dot:graphics/graphviz \ rrdtool:databases/rrdtool \ - snmpget:net-mgmt/net-snmp \ - sudo:security/sudo + snmpget:net-mgmt/net-snmp USES= cpe php python shebangfix USE_GITHUB= yes @@ -32,14 +31,12 @@ USE_RC_SUBR= librenms SHEBANG_FILES= ../${PORTNAME}-vendor-${PORTVERSION}/paragonie/random_compat/build-phar.sh \ ../${PORTNAME}-vendor-${PORTVERSION}/tecnickcom/tcpdf/tools/tcpdf_addfont.php \ ../librenms-vendor-${PORTVERSION}/bin/carbon \ - ../librenms-vendor-${PORTVERSION}/bin/doctrine-dbal \ ../librenms-vendor-${PORTVERSION}/bin/patch-type-declarations \ ../librenms-vendor-${PORTVERSION}/bin/php-parse \ ../librenms-vendor-${PORTVERSION}/bin/psysh \ ../librenms-vendor-${PORTVERSION}/bin/validate-json \ ../librenms-vendor-${PORTVERSION}/bin/var-dump-server \ ../librenms-vendor-${PORTVERSION}/bin/yaml-lint \ - ../librenms-vendor-${PORTVERSION}/doctrine/dbal/bin/doctrine-dbal \ ../librenms-vendor-${PORTVERSION}/justinrainbow/json-schema/bin/validate-json \ ../librenms-vendor-${PORTVERSION}/nesbot/carbon/bin/carbon \ ../librenms-vendor-${PORTVERSION}/nikic/php-parser/bin/php-parse \ @@ -48,13 +45,13 @@ SHEBANG_FILES= ../${PORTNAME}-vendor-${PORTVERSION}/paragonie/random_compat/buil ../librenms-vendor-${PORTVERSION}/symfony/error-handler/Resources/bin/patch-type-declarations \ ../librenms-vendor-${PORTVERSION}/symfony/var-dumper/Resources/bin/var-dump-server \ ../librenms-vendor-${PORTVERSION}/symfony/yaml/Resources/bin/yaml-lint \ - addhost.php alerts.php artisan billing-calculate.php \ - check-services.php config_to_json.php cronic daily.php daily.sh \ - delhost.php discovery-wrapper.py discovery.php dist-pollers.php \ - irc.php librenms-service.py LibreNMS/command_runner.py \ + alerts.php artisan billing-calculate.php check-services.php \ + config_to_json.php cronic daily.php daily.sh delhost.php \ + discovery-wrapper.py discovery.php dist-pollers.php irc.php \ + librenms-service.py LibreNMS/command_runner.py \ LibreNMS/wrapper.py lnms misc/lnms-completion.bash \ misc/smokeping-debian.example misc/smokeping-rhel.example \ - pbin.sh ping.php poll-billing.php poller-wrapper.py poller.php \ + ping.php poll-billing.php poller-wrapper.py poller.php \ renamehost.php scripts/auth_test.php scripts/bash_lint.sh \ scripts/check_requirements.py scripts/collect-port-polling.php \ scripts/collect-snmp-data.php scripts/composer_wrapper.php \ @@ -73,8 +70,8 @@ SHEBANG_FILES= ../${PORTNAME}-vendor-${PORTVERSION}/paragonie/random_compat/buil scripts/rename-mibs.php scripts/rrdstep.php \ scripts/save-test-data.php scripts/syslog-notify-oxidized.php \ scripts/test-alert.php scripts/test-template.php \ - scripts/tune_port.php scripts/watchmaillog/watchmaillog.pl \ - snmp-scan.py snmptrap.php syslog.php validate.php + scripts/watchmaillog/watchmaillog.pl snmp-scan.py snmptrap.php \ + syslog.php validate.php NO_ARCH= yes NO_BUILD= yes @@ -96,12 +93,20 @@ DBDIR= /var/db/${PORTNAME} OPTIONS_DEFINE= DOCS EXAMPLES FPING IPMITOOL LIBVIRT MYSQLD NAGPLUGINS \ NMAP WMIC X11 -OPTIONS_DEFAULT= FPING IPMITOOL LIBVIRT NAGPLUGINS NMAP PYPOLLER WMIC +OPTIONS_DEFAULT= FPING IPMITOOL LIBVIRT NAGPLUGINS NMAP PYPOLLER SUDO \ + WMIC +OPTIONS_RADIO= SUDO +OPTIONS_RADIO_SUDO= SUDO SUDO_SSSD + +SUDO_RUN_DEPENDS= sudo:security/sudo +SUDO_SSSD_RUN_DEPENDS= sudo:security/sudo@sssd FPING_DESC= Enable fping support ping monitoring IPMITOOL_DESC= Enable support for monitoring hardware IPMI MYSQLD_DESC= Use local MySQL server WMIC_DESC= Enable support for WMI polling +SUDO_DESC= use security/sudo +SUDO_SSSD_DESC= use security/sudo@sssd FPING_RUN_DEPENDS= fping:net/fping IPMITOOL_RUN_DEPENDS= ipmitool:sysutils/ipmitool @@ -116,19 +121,19 @@ X11_RUN_DEPENDS_OFF= mtr:net/mtr@nox11 X11_USES= magick:6 X11_USES_OFF= magick:6,nox11 -_ROOT_FILES= addhost.php alerts.php artisan billing-calculate.php \ +_ROOT_FILES= alerts.php artisan billing-calculate.php \ check-services.php composer.json composer.lock \ config.php.default config_to_json.php cronic daily.php \ delhost.php discovery-wrapper.py discovery.php \ dist-pollers.php irc.php librenms-service.py mkdocs.yml \ - pbin.sh phpunit.xml ping.php poll-billing.php \ - poller.php poller-wrapper.py renamehost.php \ - snmp-scan.py snmptrap.php syslog.php validate.php + phpunit.xml ping.php poll-billing.php poller.php \ + poller-wrapper.py renamehost.php snmp-scan.py \ + snmptrap.php syslog.php validate.php _SCRIPT_FILES= daily.sh lnms # _RELEASE_TIMESTAMP is used for a patch inside the vendor code # it represents the release date via: git show --pretty='%H|%ct' -s 1.42.01 # It sits here so you remember to update it with each release -_RELEASE_TIMESTAMP= 1747410665 +_RELEASE_TIMESTAMP= 1755492731 _ROOT_DIRS= LibreNMS app bootstrap config database doc html \ includes lang licenses mibs misc resources routes \ scripts tests @@ -145,7 +150,7 @@ _OTHER_DIRS= database/seeders/config html/plugins html/js/lang \ tests/Browser/source tests/Browser/screenshots \ vendor/librenms/laravel-vue-i18n-generator/tests/output \ vendor/symfony/mime/Resources/bin \ - vendor/symfony/string/Resources/bin + vendor/symfony/string/Resources/bin post-patch: ${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \ diff --git a/net-mgmt/librenms/distinfo b/net-mgmt/librenms/distinfo index d32103c524b2..87c2b96b6a51 100644 --- a/net-mgmt/librenms/distinfo +++ b/net-mgmt/librenms/distinfo @@ -1,5 +1,5 @@ -TIMESTAMP = 1747426836 -SHA256 (librenms-vendor-25.5.0.tar.gz) = 440a27dcf8167a4adebf967ad4bd75866fb9b0178d4cb5158fe579ef72c5d09f -SIZE (librenms-vendor-25.5.0.tar.gz) = 27644603 -SHA256 (librenms-librenms-25.5.0_GH0.tar.gz) = 5895c35ec795c64f412a2a2aa5fe9bfae66ccc5d0ef2f0258265f4d11727021b -SIZE (librenms-librenms-25.5.0_GH0.tar.gz) = 70132766 +TIMESTAMP = 1755522747 +SHA256 (librenms-vendor-25.8.0.tar.gz) = 9986dad74d2ebeee2ce2eeefd3ef1916e3ba058e004f034b137102f59ab79c11 +SIZE (librenms-vendor-25.8.0.tar.gz) = 27512017 +SHA256 (librenms-librenms-25.8.0_GH0.tar.gz) = 6022b7a9a12198fd49f358e281d400a1b704f4066612e07bc7d20223cce98c92 +SIZE (librenms-librenms-25.8.0_GH0.tar.gz) = 71480466 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 9db94e486f2b..3d34dc8eece5 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 @@ -1,20 +1,20 @@ ---- includes/html/output/capture.inc.php.orig 2023-10-27 13:17:37 UTC +--- includes/html/output/capture.inc.php.orig 2025-07-16 12:40:13 UTC +++ includes/html/output/capture.inc.php -@@ -32,7 +32,7 @@ $type = $_REQUEST['type']; +@@ -33,7 +33,7 @@ switch ($type) { 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 = ['php', \App\Facades\LibrenmsConfig::get('install_dir') . '/lnms', 'device:poll', $hostname, '--no-data', '-vv']; ++ $cmd = ['%%LOCALBASE%%/bin/php', \App\Facades\LibrenmsConfig::get('install_dir') . '/lnms', 'device:poll', $hostname, '--no-data', '-vv']; $filename = "poller-$hostname.txt"; break; case 'snmpwalk': -@@ -43,7 +43,7 @@ switch ($type) { +@@ -44,7 +44,7 @@ switch ($type) { $filename = $device['os'] . '-' . $device['hostname'] . '.snmpwalk'; 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 = ['php', \App\Facades\LibrenmsConfig::get('install_dir') . '/discovery.php', '-h', $hostname, '-d']; ++ $cmd = ['%%LOCALBASE%%/bin/php', \App\Facades\LibrenmsConfig::get('install_dir') . '/discovery.php', '-h', $hostname, '-d']; $filename = "discovery-$hostname.txt"; break; default: |