]> git.pld-linux.org Git - packages/cacti-spine.git/blobdiff - cacti-spine-paths.patch
- add 3 official patches
[packages/cacti-spine.git] / cacti-spine-paths.patch
index dba3bcb37bbed5d321877270d0bb1f53c4ec0311..1cf2ca3a6b0d1f4f51fbb5c78d64b358d3ca45c1 100644 (file)
@@ -1,13 +1,14 @@
 --- cacti-spine-0.8.7a/spine.h~        2007-11-26 05:40:21.000000000 +0200
 +++ cacti-spine-0.8.7a/spine.h 2008-10-05 05:33:49.545548298 +0300
-@@ -136,20 +136,18 @@
+@@ -136,21 +136,18 @@
  #define MAX_SIMULTANEOUS_SCRIPTS 20
  
  /* locations to search for the config file */
--#define CONFIG_PATHS 3
+-#define CONFIG_PATHS 4
 -#define CONFIG_PATH_1 ""
 -#define CONFIG_PATH_2 "/etc/"
--#define CONFIG_PATH_3 "../etc/"
+-#define CONFIG_PATH_3 "/etc/cacti/"
+-#define CONFIG_PATH_4 "../etc/"
 +#define CONFIG_PATHS 1
 +#define CONFIG_PATH_1 "/etc/webapps/cacti/"
  
  /* threads constants */
 --- cacti-spine-0.8.7a/util.c~ 2007-11-26 05:40:21.000000000 +0200
 +++ cacti-spine-0.8.7a/util.c  2008-10-05 05:35:03.349764684 +0300
-@@ -462,8 +462,6 @@
+@@ -462,9 +462,6 @@
        STRNCOPY(set.dbpass, DEFAULT_DB_PASS);
  
        STRNCOPY(config_paths[0], CONFIG_PATH_1);
 -      STRNCOPY(config_paths[1], CONFIG_PATH_2);
 -      STRNCOPY(config_paths[2], CONFIG_PATH_3);
+-      STRNCOPY(config_paths[3], CONFIG_PATH_4);
+
        set.log_destination = LOGDEST_FILE;
  }
---- cacti-spine-0.8.7a/spine.conf.dist~        2007-11-26 05:40:21.000000000 +0200
-+++ cacti-spine-0.8.7a/spine.conf.dist 2008-10-05 05:41:07.495832134 +0300
+--- cacti-spine-0.8.7a/spine.conf~     2007-11-26 05:40:21.000000000 +0200
++++ cacti-spine-0.8.7a/spine.conf      2008-10-05 05:41:07.495832134 +0300
 @@ -28,8 +28,8 @@
  # | DB_User      The user to access the database, typically 'cactiuser'     |
  # | DB_Pass      The password for the Cacti user                            |
This page took 0.069787 seconds and 4 git commands to generate.