ports/net-mgmt/librenms/files/patch-includes_common.php
Dan Langille 9c43ac72e7 Upgrade to 1.48.1
Take over as maintainer
in pkg-message:
* Correct the .env.example
* Add ./validate

1.48 was skipped because of time issue

Release notes:
1.48.1  Fix for some OS loading issues.
        https://github.com/librenms/librenms/releases/tag/1.48.1
1.48    https://github.com/librenms/librenms/releases/tag/1.48

PR:		235537
Submitted by:	Laszlo Danielisz <lacibsd@gmail.com>
Approved by:	bofh@FreeBSD.org (maintainer)
2019-02-25 21:48:14 +00:00

13 lines
625 B
PHP

--- includes/common.php.orig 2018-10-17 10:33:28 UTC
+++ includes/common.php
@@ -1158,6 +1158,10 @@ function version_info($remote = false)
$output['local_sha'] = $local_sha;
$output['local_date'] = $local_date;
$output['local_branch'] = rtrim(`git rev-parse --abbrev-ref HEAD`);
+ } else {
+ $output['local_ver'] = '%%PORTVERSION%%';
+ # obtained via git show --pretty='%H|%ct' -s %%PORTVERSION%%
+ $output['local_date'] = %%RELEASE_TIMESTAMP%%;
}
$output['db_schema'] = dbIsConnected() ? get_db_schema() : '?';
$output['php_ver'] = phpversion();