diff options
author | Muhammad Moinur Rahman <bofh@FreeBSD.org> | 2017-02-26 11:01:41 +0000 |
---|---|---|
committer | Muhammad Moinur Rahman <bofh@FreeBSD.org> | 2017-02-26 11:01:41 +0000 |
commit | c508314de862b2b7c58c8b20cb4f7bbfedea62d7 (patch) | |
tree | 4957384a3491c28145b7703246eb4045ca33c93f /net-mgmt/librenms/files/patch-includes_common.php | |
parent | mail/imapfilter: Update version 2.6.7=>2.6.10 (diff) |
net-mgmt/librenms: Update version 1.23=>1.24
- Add PHP 7.0 support [1]
- Pet portlint
PR: 213376[1]
Submitted by: fredrik.eriksson@loopia.se[1]
Diffstat (limited to 'net-mgmt/librenms/files/patch-includes_common.php')
-rw-r--r-- | net-mgmt/librenms/files/patch-includes_common.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/net-mgmt/librenms/files/patch-includes_common.php b/net-mgmt/librenms/files/patch-includes_common.php new file mode 100644 index 000000000000..7ff08bbc4c82 --- /dev/null +++ b/net-mgmt/librenms/files/patch-includes_common.php @@ -0,0 +1,14 @@ +--- includes/common.php.orig 2017-01-29 06:54:29 UTC ++++ includes/common.php +@@ -1095,10 +1095,8 @@ function version_info($remote = true) + curl_setopt($api, CURLOPT_RETURNTRANSFER, 1); + $output['github'] = json_decode(curl_exec($api), true); + } +- list($local_sha, $local_date) = explode('|', rtrim(`git show --pretty='%H|%ct' -s HEAD`)); +- $output['local_sha'] = $local_sha; ++ $output['local_sha'] = '%%PORTVERSION%%'; + $output['local_date'] = $local_date; +- $output['local_branch'] = rtrim(`git rev-parse --abbrev-ref HEAD`); + } + $output['db_schema'] = dbFetchCell('SELECT version FROM dbSchema'); + $output['php_ver'] = phpversion(); |