aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/librenms/files/patch-LibreNMS_Util_Version.php
diff options
context:
space:
mode:
Diffstat (limited to 'net-mgmt/librenms/files/patch-LibreNMS_Util_Version.php')
-rw-r--r--net-mgmt/librenms/files/patch-LibreNMS_Util_Version.php15
1 files changed, 12 insertions, 3 deletions
diff --git a/net-mgmt/librenms/files/patch-LibreNMS_Util_Version.php b/net-mgmt/librenms/files/patch-LibreNMS_Util_Version.php
index 555581932d1f..5bb6b085f919 100644
--- a/net-mgmt/librenms/files/patch-LibreNMS_Util_Version.php
+++ b/net-mgmt/librenms/files/patch-LibreNMS_Util_Version.php
@@ -1,8 +1,17 @@
---- LibreNMS/Util/Version.php.orig 2021-05-21 10:09:00 UTC
+--- LibreNMS/Util/Version.php.orig 2023-01-24 21:18:47 UTC
+++ LibreNMS/Util/Version.php
-@@ -92,7 +92,7 @@ class Version
+@@ -56,7 +56,7 @@ class Version
- public static function python()
+ public function date(string $format = 'c'): string
+ {
+- return date($format, $this->git->commitDate() ?: filemtime(__FILE__)); // approximate date for non-git installs
++ return date($format, %%RELEASE_TIMESTAMP%%); // obtained via git show --pretty='%H|%ct' -s %%PORTVERSION%%
+ }
+
+ public function name(): string
+@@ -123,7 +123,7 @@
+
+ public function python(): string
{
- $proc = new Process(['python3', '--version']);
+ $proc = new Process(['%%LOCALBASE%%/bin/python3', '--version']);