]> git.pld-linux.org Git - packages/eventum.git/blame - eventum-paths.patch
- update to 2.2-dev-r3890
[packages/eventum.git] / eventum-paths.patch
CommitLineData
ae3e48e6
ER
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
d6775ce9
ER
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)) {
3197cdb4
ER
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());
ae3e48e6
ER
25--- trunk/init.php~ 2009-06-27 17:31:32.000000000 +0300
26+++ trunk/init.php 2009-06-27 17:33:35.745565456 +0300
bc46f6d4
ER
27@@ -26,7 +26,7 @@
28 // | Authors: Elan Ruusamäe <glen@delfi.ee> |
31dabce6
ER
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;
bc46f6d4 35 }
ae3e48e6 36@@ -46,7 +46,7 @@
31dabce6
ER
37
38 // define base path
ae3e48e6
ER
39 define('APP_PATH', realpath(dirname(__FILE__)));
40-define('APP_CONFIG_PATH', APP_PATH . '/config');
41+define('APP_CONFIG_PATH', '/etc/webapps/eventum');
6c5cabb4 42
ae3e48e6
ER
43 // include local site config. may override any default
44 require_once APP_CONFIG_PATH . '/config.php';
45@@ -61,19 +61,15 @@
31dabce6 46 }
6c5cabb4 47
ae3e48e6
ER
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');
31dabce6 51 }
9ff5b0e3 52
ae3e48e6
ER
53 if (!defined('APP_INC_PATH')) {
54 define('APP_INC_PATH', APP_PATH . '/lib/eventum');
9ff5b0e3 55 }
465c3ab7 56
ae3e48e6
ER
57-if (!defined('APP_PEAR_PATH')) {
58- define('APP_PEAR_PATH', APP_PATH . '/lib/pear');
59-}
60-
31dabce6 61 if (!defined('APP_SMARTY_PATH')) {
ae3e48e6
ER
62- define('APP_SMARTY_PATH', APP_PATH . '/lib/Smarty');
63+ define('APP_SMARTY_PATH', '/usr/share/php/Smarty');
3955d156
ER
64 }
65
31dabce6 66 if (!defined('APP_JPGRAPH_PATH')) {
ae3e48e6 67@@ -81,7 +77,7 @@
31dabce6 68 }
3955d156 69
31dabce6 70 if (!defined('APP_LOCKS_PATH')) {
ae3e48e6 71- define('APP_LOCKS_PATH', APP_PATH . '/locks');
31dabce6
ER
72+ define('APP_LOCKS_PATH', '/var/run/eventum/');
73 }
3955d156 74
bc46f6d4 75 if (!defined('APP_SQL_PATCHES_PATH')) {
ae3e48e6 76@@ -89,7 +85,7 @@
3955d156
ER
77 }
78
31dabce6 79 if (!defined('APP_LOG_PATH')) {
ae3e48e6
ER
80- define('APP_LOG_PATH', APP_PATH . '/logs');
81+ define('APP_LOG_PATH', '/var/log/eventum');
31dabce6 82 }
3955d156 83
bc46f6d4 84 if (!defined('APP_ROUTED_MAILS_SAVEDIR')) {
ae3e48e6
ER
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');
31dabce6 99+define('APP_TPL_COMPILE_PATH', '/var/cache/eventum');
ae3e48e6
ER
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');
31dabce6 104
ae3e48e6 105 header('Content-Type: text/html; charset=' . APP_CHARSET);
31dabce6
ER
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.";
452347b6 110 }
31dabce6
ER
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;
452347b6 120
31dabce6
ER
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()) . '";
b33d41f0
ER
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.053453 seconds and 4 git commands to generate.