]> git.pld-linux.org Git - packages/eventum.git/blob - eventum-paths.patch
- update to 2.2-dev-r3890
[packages/eventum.git] / eventum-paths.patch
1 --- ./lib/eventum/class.monitor.php~    2005-02-22 21:50:49.000000000 +0200
2 +++ ./lib/eventum/class.monitor.php     2005-02-22 23:04:50.000000000 +0200
3 @@ -157,6 +165,7 @@
4                  'permission'       => 100,
5              ),
6          );
7 +        $required_directories = array();
8          foreach ($required_directories as $dir_path => $options) {
9              // check if directory exists
10              if (!file_exists($dir_path)) {
11 --- ./cli/eventum       2009-06-27 19:46:44.401524716 +0300
12 +++ ./cli/eventum       2009-06-27 19:45:22.781438493 +0300
13 @@ -12,9 +12,8 @@
14  // @(#) $Id$
15  
16  // definitions of path related variables
17 -define('APP_PATH', dirname(__FILE__) . '/');
18 -define('APP_INC_PATH', APP_PATH . '/lib/eventum');
19 -define('APP_PEAR_PATH', APP_PATH . '/lib/pear');
20 +define('APP_PATH', '/usr/share/eventum');
21 +define('APP_INC_PATH', APP_PATH . '/cli');
22  
23  if (defined('APP_PEAR_PATH')) {
24      set_include_path(APP_PEAR_PATH . PATH_SEPARATOR . get_include_path());
25 --- trunk/init.php~     2009-06-27 17:31:32.000000000 +0300
26 +++ trunk/init.php      2009-06-27 17:33:35.745565456 +0300
27 @@ -26,7 +26,7 @@
28  // | Authors: Elan Ruusamäe <glen@delfi.ee>                               |
29  // +----------------------------------------------------------------------+
30  
31 -if (!file_exists(dirname(__FILE__) . '/config/config.php')) {
32 +if (!file_exists('/etc/webapps/eventum/config.php')) {
33      Header('Location: setup/');
34      exit;
35  }
36 @@ -46,7 +46,7 @@
37  
38  // define base path
39  define('APP_PATH', realpath(dirname(__FILE__)));
40 -define('APP_CONFIG_PATH', APP_PATH . '/config');
41 +define('APP_CONFIG_PATH', '/etc/webapps/eventum');
42  
43  // include local site config. may override any default
44  require_once APP_CONFIG_PATH . '/config.php';
45 @@ -61,19 +61,15 @@
46  }
47  
48  if (!defined('APP_TPL_COMPILE_PATH')) {
49 -    define('APP_TPL_COMPILE_PATH', APP_PATH . '/templates_c');
50 +    define('APP_TPL_COMPILE_PATH', '/var/cache/eventum');
51  }
52  
53  if (!defined('APP_INC_PATH')) {
54      define('APP_INC_PATH', APP_PATH . '/lib/eventum');
55  }
56  
57 -if (!defined('APP_PEAR_PATH')) {
58 -    define('APP_PEAR_PATH', APP_PATH . '/lib/pear');
59 -}
60 -
61  if (!defined('APP_SMARTY_PATH')) {
62 -    define('APP_SMARTY_PATH', APP_PATH . '/lib/Smarty');
63 +    define('APP_SMARTY_PATH', '/usr/share/php/Smarty');
64  }
65  
66  if (!defined('APP_JPGRAPH_PATH')) {
67 @@ -81,7 +77,7 @@
68  }
69  
70  if (!defined('APP_LOCKS_PATH')) {
71 -    define('APP_LOCKS_PATH', APP_PATH . '/locks');
72 +    define('APP_LOCKS_PATH', '/var/run/eventum/');
73  }
74  
75  if (!defined('APP_SQL_PATCHES_PATH')) {
76 @@ -89,7 +85,7 @@
77  }
78  
79  if (!defined('APP_LOG_PATH')) {
80 -    define('APP_LOG_PATH', APP_PATH . '/logs');
81 +    define('APP_LOG_PATH', '/var/log/eventum');
82  }
83  
84  if (!defined('APP_ROUTED_MAILS_SAVEDIR')) {
85 --- trunk/htdocs/setup/index.php~       2009-06-27 17:34:22.000000000 +0300
86 +++ trunk/htdocs/setup/index.php        2009-06-27 17:35:07.108898271 +0300
87 @@ -42,14 +42,14 @@
88  define('APP_PATH', realpath(dirname(__FILE__) . '/../..'));
89  define('APP_INC_PATH', APP_PATH . '/lib/eventum');
90  define('APP_PEAR_PATH', APP_INC_PATH . '/lib/pear');
91 -define('APP_SMARTY_PATH', APP_INC_PATH . '/lib/Smarty');
92 -define('APP_CONFIG_PATH', APP_PATH . '/config');
93 +define('APP_SMARTY_PATH', '/usr/share/php/Smarty');
94 +define('APP_CONFIG_PATH', '/etc/webapps/eventum');
95  define('APP_SETUP_FILE', APP_CONFIG_PATH . '/setup.php');
96  define('APP_TPL_PATH', APP_PATH . '/templates');
97 -define('APP_TPL_COMPILE_PATH', APP_PATH . '/templates_c');
98 -define('APP_LOG_PATH', APP_PATH . '/logs');
99 +define('APP_TPL_COMPILE_PATH', '/var/cache/eventum');
100 +define('APP_LOG_PATH', '/var/log/eventum');
101  define('APP_ERROR_LOG', APP_LOG_PATH . '/errors.log');
102 -define('APP_LOCKS_PATH', APP_PATH . '/locks');
103 +define('APP_LOCKS_PATH', '/var/run/eventum');
104  
105  header('Content-Type: text/html; charset=' . APP_CHARSET);
106  
107 @@ -192,10 +192,6 @@
108      if (ini_get('file_uploads') != "1") {
109          $errors[] = "The 'file_uploads' directive needs to be enabled in your PHP.INI file in order for Eventum to work properly.";
110      }
111 -    $error = checkPermissions(APP_CONFIG_PATH, "Directory '" . APP_CONFIG_PATH . "'", TRUE);
112 -    if (!empty($error)) {
113 -        $errors[] = $error;
114 -    }
115      $error = checkPermissions(APP_LOCKS_PATH, "Directory '" . APP_LOCKS_PATH . "'", TRUE);
116      if (!empty($error)) {
117          $errors[] = $error;
118 @@ -329,10 +325,6 @@
119      $setup_file_path = APP_SETUP_FILE;
120  
121      clearstatcache();
122 -    // check if config directory is writable
123 -    if (!is_writable(APP_CONFIG_PATH)) {
124 -        return "The file '" . APP_CONFIG_PATH . "' directory needs to be writable by the web server user. Please correct this problem and try again.";
125 -    }
126      // need to create a random private key variable
127      $private_key = '<?php
128  $private_key = "' . md5(microtime()) . '";
129 --- eventum-2.2/irc/eventum-irc-bot~    2009-07-23 14:03:41.422211655 +0300
130 +++ eventum-2.2/irc/eventum-irc-bot     2009-07-23 13:54:22.000000000 +0300
131 @@ -32,7 +32,7 @@
132  
133  ini_set('memory_limit', '1024M');
134  
135 -require_once dirname(__FILE__) . '/../init.php';
136 +require_once '/usr/share/eventum/init.php';
137  
138  if (!file_exists(APP_CONFIG_PATH . '/irc_config.php')) {
139      fwrite(STDERR, "ERROR: No config specified. Please see setup/irc_config.php for config information.\n\n");
This page took 0.074147 seconds and 4 git commands to generate.