mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-24 09:25:01 +00:00
Add patches missing from previous commit.
Add note to pkg-message about my.cnf Add not to UPGRADING about my.cnf Bump PORTREVISION Submitted by: Larry Rosenman <ler@FreeBSD.org>
This commit is contained in:
parent
f713c02ed6
commit
de5844a4cf
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=431614
10
UPDATING
10
UPDATING
@ -5,6 +5,16 @@ they are unavoidable.
|
||||
You should get into the habit of checking this file for changes each time
|
||||
you update your ports collection, before attempting any port upgrades.
|
||||
|
||||
20170115:
|
||||
AFFECTS: users of net-mgmt/librenms
|
||||
AUTHOR: dvl@FreeBSD.org
|
||||
|
||||
The following is recommended for /var/db/mysql/my.cnf
|
||||
|
||||
[mysqld]
|
||||
innodb_file_per_table=1
|
||||
sql-mode=""
|
||||
|
||||
20170109:
|
||||
AFFECTS: users of lang/ruby22
|
||||
AUTHOR: swills@FreeBSD.org
|
||||
|
@ -4,7 +4,7 @@
|
||||
PORTNAME= librenms
|
||||
PORTVERSION= 1.23
|
||||
PORTEPOCH= 1
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= net-mgmt
|
||||
|
||||
USE_GITHUB= yes
|
||||
|
16
net-mgmt/librenms/files/patch-includes-common.php
Normal file
16
net-mgmt/librenms/files/patch-includes-common.php
Normal file
@ -0,0 +1,16 @@
|
||||
--- includes/common.php.orig 2017-01-15 20:50:30.075142000 +0000
|
||||
+++ includes/common.php 2017-01-15 20:42:35.634055000 +0000
|
||||
@@ -1110,10 +1110,10 @@
|
||||
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;
|
||||
+# list($local_sha, $local_date) = explode('|', rtrim(`git show --pretty='%H|%ct' -s HEAD`));
|
||||
+ $output['local_sha'] = '%%PORTVERSION%%';
|
||||
$output['local_date'] = $local_date;
|
||||
- $output['local_branch'] = rtrim(`git rev-parse --abbrev-ref HEAD`);
|
||||
+# $output['local_branch'] = rtrim(`git rev-parse --abbrev-ref HEAD`);
|
||||
|
||||
$output['db_schema'] = dbFetchCell('SELECT version FROM dbSchema');
|
||||
$output['php_ver'] = phpversion();
|
52
net-mgmt/librenms/files/patch-validate.php
Normal file
52
net-mgmt/librenms/files/patch-validate.php
Normal file
@ -0,0 +1,52 @@
|
||||
--- validate.php.orig 2017-01-15 20:10:36.344602000 +0000
|
||||
+++ validate.php 2017-01-15 20:04:36.094612000 +0000
|
||||
@@ -103,10 +103,10 @@
|
||||
print_fail('You need to run this script as root' . (isset($config['user']) ? ' or '.$config['user'] : ''));
|
||||
}
|
||||
|
||||
-if ($config['update_channel'] == 'master' && $cur_sha != $versions['github']['sha']) {
|
||||
- $commit_date = new DateTime('@'.$versions['local_date'], new DateTimeZone(date_default_timezone_get()));
|
||||
- print_warn("Your install is out of date, last update: " . $commit_date->format('r'));
|
||||
-}
|
||||
+#if ($config['update_channel'] == 'master' && $cur_sha != $versions['github']['sha']) {
|
||||
+# $commit_date = new DateTime('@'.$versions['local_date'], new DateTimeZone(date_default_timezone_get()));
|
||||
+# print_warn("Your install is out of date, last update: " . $commit_date->format('r'));
|
||||
+#}
|
||||
|
||||
// Check php modules we use to make sure they are loaded
|
||||
$extensions = array('pcre','curl','session','snmp','mcrypt');
|
||||
@@ -250,20 +250,20 @@
|
||||
print_list($devices, "\t %s\n");
|
||||
}
|
||||
|
||||
-if ($versions['local_branch'] != 'master') {
|
||||
- print_warn("Your local git branch is not master, this will prevent automatic updates.");
|
||||
-}
|
||||
-
|
||||
-// check for modified files
|
||||
-$modifiedcmd = 'git diff --name-only --exit-code';
|
||||
-if ($username === 'root') {
|
||||
- $modifiedcmd = 'su '.$config['user'].' -c "'.$modifiedcmd.'"';
|
||||
-}
|
||||
-exec($modifiedcmd, $cmdoutput, $code);
|
||||
-if ($code !== 0 && !empty($cmdoutput)) {
|
||||
- print_warn("Your local git contains modified files, this could prevent automatic updates.\nModified files:");
|
||||
- print_list($cmdoutput, "\t %s\n");
|
||||
-}
|
||||
+#if ($versions['local_branch'] != 'master') {
|
||||
+# print_warn("Your local git branch is not master, this will prevent automatic updates.");
|
||||
+#}
|
||||
+#
|
||||
+#// check for modified files
|
||||
+#$modifiedcmd = 'git diff --name-only --exit-code';
|
||||
+#if ($username === 'root') {
|
||||
+# $modifiedcmd = 'su '.$config['user'].' -c "'.$modifiedcmd.'"';
|
||||
+#}
|
||||
+#exec($modifiedcmd, $cmdoutput, $code);
|
||||
+#if ($code !== 0 && !empty($cmdoutput)) {
|
||||
+# print_warn("Your local git contains modified files, this could prevent automatic updates.\nModified files:");
|
||||
+# print_list($cmdoutput, "\t %s\n");
|
||||
+#}
|
||||
|
||||
// Modules test
|
||||
$modules = explode(',', $options['m']);
|
@ -1,4 +1,10 @@
|
||||
=== Configuration details ===
|
||||
The following is recommended for /var/db/mysql/my.cnf
|
||||
|
||||
[mysqld]
|
||||
innodb_file_per_table=1
|
||||
sql-mode=""
|
||||
|
||||
You can mostly follow the guide at:
|
||||
http://docs.librenms.org/
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user