]> git.pld-linux.org Git - packages/cacti.git/commitdiff
- outdated
authorJakub Bogusz <qboosh@pld-linux.org>
Tue, 3 Feb 2009 22:15:09 +0000 (22:15 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    cacti-rrdtool-1.3.patch -> 1.3
    reset_each_patch.patch -> 1.2
    snmp_auth_none_notice.patch -> 1.2
    upgrade_from_086k_fix.patch -> 1.3

cacti-rrdtool-1.3.patch [deleted file]
reset_each_patch.patch [deleted file]
snmp_auth_none_notice.patch [deleted file]
upgrade_from_086k_fix.patch [deleted file]

diff --git a/cacti-rrdtool-1.3.patch b/cacti-rrdtool-1.3.patch
deleted file mode 100644 (file)
index 3ee004a..0000000
+++ /dev/null
@@ -1,149 +0,0 @@
-Index: graph.php
-===================================================================
---- graph.php  (wersja 4583)
-+++ graph.php  (wersja 4584)
-@@ -174,7 +174,7 @@
-       $graph_height = $graph["height"];
-       $graph_width = $graph["width"];
--      if ((read_config_option("rrdtool_version")) == "rrd-1.2.x") {
-+      if ((read_config_option("rrdtool_version")) != "rrd-1.0.x") {
-               if (read_graph_config_option("title_font") == "") {
-                       if (read_config_option("title_font") == "") {
-                               $title_font_size = 10;
-Index: lib/rrd.php
-===================================================================
---- lib/rrd.php        (wersja 4583)
-+++ lib/rrd.php        (wersja 4584)
-@@ -610,7 +610,7 @@
-                               }
-                               break;
-                       case "3": /* autoscale-min, accepts a given upper limit */
--                              if (read_config_option("rrdtool_version") == "rrd-1.2.x") {
-+                              if (read_config_option("rrdtool_version") != "rrd-1.0.x") {
-                                       $scale = "--alt-autoscale-min" . RRD_NL;
-                                       if ( is_numeric($graph["upper_limit"])) {
-                                               $scale .= "--upper-limit=" . $graph["upper_limit"] . RRD_NL;
-@@ -647,7 +647,7 @@
-       }
-       if (!empty($graph["unit_value"])) {
--              if (read_config_option("rrdtool_version") == "rrd-1.2.x") {
-+              if (read_config_option("rrdtool_version") != "rrd-1.0.x") {
-                       $unit_value = "--y-grid=" . $graph["unit_value"] . RRD_NL;
-               }else{
-                       $unit_value = "--unit=" . $graph["unit_value"] . RRD_NL;
-@@ -743,13 +743,13 @@
-       /* display the timespan for zoomed graphs */
-       if ((isset($graph_data_array["graph_start"])) && (isset($graph_data_array["graph_end"]))) {
-               if (($graph_data_array["graph_start"] < 0) && ($graph_data_array["graph_end"] < 0)) {
--                      if (read_config_option("rrdtool_version") == "rrd-1.2.x") {
-+                      if (read_config_option("rrdtool_version") != "rrd-1.0.x") {
-                               $graph_legend .= "COMMENT:\"From " . str_replace(":", "\:", date($graph_date, time()+$graph_data_array["graph_start"])) . " To " . str_replace(":", "\:", date($graph_date, time()+$graph_data_array["graph_end"])) . "\\c\"" . RRD_NL . "COMMENT:\"  \\n\"" . RRD_NL;
-                       }else {
-                               $graph_legend .= "COMMENT:\"From " . date($graph_date, time()+$graph_data_array["graph_start"]) . " To " . date($graph_date, time()+$graph_data_array["graph_end"]) . "\\c\"" . RRD_NL . "COMMENT:\"  \\n\"" . RRD_NL;
-                       }
-               }else if (($graph_data_array["graph_start"] >= 0) && ($graph_data_array["graph_end"] >= 0)) {
--                      if (read_config_option("rrdtool_version") == "rrd-1.2.x") {
-+                      if (read_config_option("rrdtool_version") != "rrd-1.0.x") {
-                               $graph_legend .= "COMMENT:\"From " . str_replace(":", "\:", date($graph_date, $graph_data_array["graph_start"])) . " To " . str_replace(":", "\:", date($graph_date, $graph_data_array["graph_end"])) . "\\c\"" . RRD_NL . "COMMENT:\"  \\n\"" . RRD_NL;
-                       }else {
-                               $graph_legend .= "COMMENT:\"From " . date($graph_date, $graph_data_array["graph_start"]) . " To " . date($graph_date, $graph_data_array["graph_end"]) . "\\c\"" . RRD_NL . "COMMENT:\"  \\n\"" . RRD_NL;
-@@ -774,14 +774,14 @@
-               "--vertical-label=\"" . $graph["vertical_label"] . "\"" . RRD_NL;
-       /* rrdtool 1.2.x does not provide smooth lines, let's force it */
--      if (read_config_option("rrdtool_version") == "rrd-1.2.x") {
-+      if (read_config_option("rrdtool_version") != "rrd-1.0.x") {
-               if ($graph["slope_mode"] == "on") {
-                       $graph_opts .= "--slope-mode" . RRD_NL;
-               }
-       }
-       /* rrdtool 1.2 font options */
--      if (read_config_option("rrdtool_version") == "rrd-1.2.x") {
-+      if (read_config_option("rrdtool_version") != "rrd-1.0.x") {
-               /* title fonts */
-               $graph_opts .= rrdtool_set_font("title", ((!empty($graph_data_array["graph_nolegend"])) ? $graph_data_array["graph_nolegend"] : ""));
-@@ -1129,7 +1129,7 @@
-               $need_rrd_nl = TRUE;
-               if ($graph_item_types{$graph_item["graph_type_id"]} == "COMMENT") {
--                      if (read_config_option("rrdtool_version") == "rrd-1.2.x") {
-+                      if (read_config_option("rrdtool_version") != "rrd-1.0.x") {
-                               $comment_string = $graph_item_types{$graph_item["graph_type_id"]} . ":\"" . str_replace(":", "\:", $graph_variables["text_format"][$graph_item_id]) . $hardreturn[$graph_item_id] . "\" ";
-                               if (trim($comment_string) != "COMMENT:\"\"") {
-                                       $txt_graph_items .= rrd_substitute_host_query_data($comment_string, $graph, $graph_item);
-@@ -1150,7 +1150,7 @@
-                               $graph_item_color_code = "";
-                       }else{
-                               $graph_item_color_code = "#" . $graph_item["hex"];
--                              if (read_config_option("rrdtool_version") == "rrd-1.2.x") {
-+                              if (read_config_option("rrdtool_version") != "rrd-1.0.x") {
-                                       $graph_item_color_code .= $graph_item["alpha"];
-                               }
-                       }
-@@ -1160,7 +1160,7 @@
-                               $graph_variables["text_format"][$graph_item_id] = str_replace(":", "\:", $graph_variables["text_format"][$graph_item_id]); /* escape colons */
-                               $txt_graph_items .= $graph_item_types{$graph_item["graph_type_id"]} . ":" . $data_source_name . $graph_item_color_code . ":" . "\"" . $graph_variables["text_format"][$graph_item_id] . $hardreturn[$graph_item_id] . "\" ";
-                       }elseif ($graph_item_types{$graph_item["graph_type_id"]} == "STACK") {
--                              if (read_config_option("rrdtool_version") == "rrd-1.2.x") {
-+                              if (read_config_option("rrdtool_version") != "rrd-1.0.x") {
-                                       $graph_variables["text_format"][$graph_item_id] = str_replace(":", "\:", $graph_variables["text_format"][$graph_item_id]); /* escape colons */
-                                       $txt_graph_items .= $graph_item_stack_type . ":" . $data_source_name . $graph_item_color_code . ":" . "\"" . $graph_variables["text_format"][$graph_item_id] . $hardreturn[$graph_item_id] . "\":STACK";
-                               }else {
-Index: utilities.php
-===================================================================
---- utilities.php      (wersja 4583)
-+++ utilities.php      (wersja 4584)
-@@ -225,7 +225,9 @@
-               exec(read_config_option("path_rrdtool"), $out_array);
-               if (sizeof($out_array) > 0) {
--                      if (ereg("^RRDtool 1\.2", $out_array[0])) {
-+                      if (ereg("^RRDtool 1\.3", $out_array[0])) {
-+                              $rrdtool_version = "rrd-1.3.x";
-+                      }else if (ereg("^RRDtool 1\.2\.", $out_array[0])) {
-                               $rrdtool_version = "rrd-1.2.x";
-                       }else if (ereg("^RRDtool 1\.0\.", $out_array[0])) {
-                               $rrdtool_version = "rrd-1.0.x";
-@@ -239,7 +241,7 @@
-               $rrdtool_error .= "<br><font color='red'>ERROR: Installed RRDTool version does not match configured version.<br>Please visit the <a href='settings.php?tab=general'>Configuration Settings</a> and select the correct RRDTool Utility Version.</font><br>";
-       }
-       $graph_gif_count = db_fetch_cell("SELECT COUNT(*) FROM graph_templates_graph WHERE image_format_id = 2");
--      if (($graph_gif_count > 0) && (read_config_option("rrdtool_version") == "rrd-1.2.x")) {
-+      if (($graph_gif_count > 0) && (read_config_option("rrdtool_version") != "rrd-1.0.x")) {
-               $rrdtool_error .= "<br><font color='red'>ERROR: RRDTool 1.2.x does not support the GIF images format, but " . $graph_gif_count . " graph(s) and/or templates have GIF set as the image format.</font><br>";
-       }
-Index: install/index.php
-===================================================================
---- install/index.php  (wersja 4583)
-+++ install/index.php  (wersja 4584)
-@@ -262,7 +262,9 @@
-       exec($input["path_rrdtool"]["default"], $out_array);
-       if (sizeof($out_array) > 0) {
--              if (ereg("^RRDtool 1\.2", $out_array[0])) {
-+              if (ereg("^RRDtool 1\.3", $out_array[0])) {
-+                      $input["rrdtool_version"]["default"] = "rrd-1.3.x";
-+              }else if (ereg("^RRDtool 1\.2\.", $out_array[0])) {
-                       $input["rrdtool_version"]["default"] = "rrd-1.2.x";
-               }else if (ereg("^RRDtool 1\.0\.", $out_array[0])) {
-                       $input["rrdtool_version"]["default"] = "rrd-1.0.x";
-Index: include/global_arrays.php
-===================================================================
---- include/global_arrays.php  (wersja 4581)
-+++ include/global_arrays.php  (wersja 4582)
-@@ -257,7 +256,8 @@
- $rrdtool_versions = array(
-       "rrd-1.0.x" => "RRDTool 1.0.x",
--      "rrd-1.2.x" => "RRDTool 1.2.x");
-+      "rrd-1.2.x" => "RRDTool 1.2.x",
-+      "rrd-1.3.x" => "RRDTool 1.3.x");
- $cdef_item_types = array(
-       1 => "Function",
-
diff --git a/reset_each_patch.patch b/reset_each_patch.patch
deleted file mode 100644 (file)
index 5092198..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
---- 0.8.7/lib/functions.php    2008/02/01 19:58:05     4448
-+++ 0.8.7-patched/lib/functions.php    2008/03/17 23:45:09     4552
-@@ -143,14 +143,16 @@
- function read_default_config_option($config_name) {
-       global $config, $settings;
--      reset($settings);
--      while (list($tab_name, $tab_array) = each($settings)) {
--              if ((isset($tab_array[$config_name])) && (isset($tab_array[$config_name]["default"]))) {
--                      return $tab_array[$config_name]["default"];
--              }else{
--                      while (list($field_name, $field_array) = each($tab_array)) {
--                              if ((isset($field_array["items"])) && (isset($field_array["items"][$config_name])) && (isset($field_array["items"][$config_name]["default"]))) {
--                                      return $field_array["items"][$config_name]["default"];
-+      if (is_array($settings)) {
-+              reset($settings);
-+              while (list($tab_name, $tab_array) = each($settings)) {
-+                      if ((isset($tab_array[$config_name])) && (isset($tab_array[$config_name]["default"]))) {
-+                              return $tab_array[$config_name]["default"];
-+                      }else{
-+                              while (list($field_name, $field_array) = each($tab_array)) {
-+                                      if ((isset($field_array["items"])) && (isset($field_array["items"][$config_name])) && (isset($field_array["items"][$config_name]["default"]))) {
-+                                              return $field_array["items"][$config_name]["default"];
-+                                      }
-                               }
-                       }
-               }
diff --git a/snmp_auth_none_notice.patch b/snmp_auth_none_notice.patch
deleted file mode 100644 (file)
index 9e4708b..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-diff -ruBbd cacti-0.8.7b/lib/snmp.php cacti-0.8.7b-patched/lib/snmp.php
---- cacti-0.8.7b/lib/snmp.php  2008-02-11 19:57:48.000000000 -0500
-+++ cacti-0.8.7b-patched/lib/snmp.php  2008-02-29 20:53:00.000000000 -0500
-@@ -225,6 +225,7 @@
- function cacti_snmp_walk($hostname, $community, $oid, $version, $username, $password, $auth_proto, $priv_pass, $priv_proto, $context, $port = 161, $timeout = 500, $retries = 0, $environ = SNMP_POLLER) {
-       global $config;
-+      $snmp_auth      = '';
-       $snmp_array = array();
-       $temp_array = array();
diff --git a/upgrade_from_086k_fix.patch b/upgrade_from_086k_fix.patch
deleted file mode 100644 (file)
index a06e47a..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -urN cacti-0.8.7b.orig/install/index.php cacti-0.8.7b/install/index.php
---- cacti-0.8.7b.orig/install/index.php        2008-02-12 01:57:48.000000000 +0100
-+++ cacti-0.8.7b/install/index.php     2008-02-25 13:25:57.000000000 +0100
-@@ -27,7 +27,7 @@
- /* allow the upgrade script to run for as long as it needs to */
- ini_set("max_execution_time", "0");
--$cacti_versions = array("0.8", "0.8.1", "0.8.2", "0.8.2a", "0.8.3", "0.8.3a", "0.8.4", "0.8.5", "0.8.5a", "0.8.6", "0.8.6a", "0.8.6b", "0.8.6c", "0.8.6d", "0.8.6e", "0.8.6f", "0.8.6g", "0.8.6h", "0.8.6i", "0.8.6j", "0.8.7", "0.8.7a", "0.8.7b");
-+$cacti_versions = array("0.8", "0.8.1", "0.8.2", "0.8.2a", "0.8.3", "0.8.3a", "0.8.4", "0.8.5", "0.8.5a", "0.8.6", "0.8.6a", "0.8.6b", "0.8.6c", "0.8.6d", "0.8.6e", "0.8.6f", "0.8.6g", "0.8.6h", "0.8.6i", "0.8.6j", "0.8.6k", "0.8.7", "0.8.7a", "0.8.7b");
- $old_cacti_version = db_fetch_cell("select cacti from version");
This page took 0.177963 seconds and 4 git commands to generate.