]> git.pld-linux.org Git - packages/eventum.git/blame - eventum-paths.patch
adapter
[packages/eventum.git] / eventum-paths.patch
CommitLineData
74c64201
ER
1--- ./cli/eventum.php 2009-06-27 19:46:44.401524716 +0300
2+++ ./cli/eventum.php 2009-06-27 19:45:22.781438493 +0300
3197cdb4
ER
3@@ -12,9 +12,8 @@
4 // @(#) $Id$
5
6 // definitions of path related variables
7-define('APP_PATH', dirname(__FILE__) . '/');
8-define('APP_INC_PATH', APP_PATH . '/lib/eventum');
9-define('APP_PEAR_PATH', APP_PATH . '/lib/pear');
10+define('APP_PATH', '/usr/share/eventum');
11+define('APP_INC_PATH', APP_PATH . '/cli');
12
13 if (defined('APP_PEAR_PATH')) {
14 set_include_path(APP_PEAR_PATH . PATH_SEPARATOR . get_include_path());
b366b3c3
ER
15--- eventum-2.3.3/init.php~ 2012-12-17 13:49:09.000000000 +0200
16+++ eventum-2.3.3/init.php 2012-12-17 13:49:41.676803793 +0200
098cbb72 17@@ -27,7 +27,7 @@
bc46f6d4 18 // | Authors: Elan Ruusamäe <glen@delfi.ee> |
31dabce6
ER
19 // +----------------------------------------------------------------------+
20
098cbb72 21-if (!file_exists(dirname(__FILE__) . '/config/config.php') || !filesize(dirname(__FILE__) . '/config/config.php')) {
aa4e445d 22+if (!file_exists('/etc/webapps/eventum/config.php') || !filesize('/etc/webapps/eventum/config.php')) {
31dabce6 23 Header('Location: setup/');
098cbb72 24 exit(0);
bc46f6d4 25 }
b366b3c3 26@@ -47,7 +47,7 @@
31dabce6 27 // define base path
ae3e48e6 28 define('APP_PATH', realpath(dirname(__FILE__)));
b366b3c3
ER
29 if (!defined('APP_CONFIG_PATH')) {
30- define('APP_CONFIG_PATH', APP_PATH . '/config');
31+ define('APP_CONFIG_PATH', '/etc/webapps/eventum');
32 }
6c5cabb4 33
ae3e48e6 34 // include local site config. may override any default
858c6f2a 35@@ -64,23 +64,15 @@
31dabce6 36 }
6c5cabb4 37
ae3e48e6
ER
38 if (!defined('APP_TPL_COMPILE_PATH')) {
39- define('APP_TPL_COMPILE_PATH', APP_PATH . '/templates_c');
40+ define('APP_TPL_COMPILE_PATH', '/var/cache/eventum');
31dabce6 41 }
9ff5b0e3 42
ae3e48e6
ER
43 if (!defined('APP_INC_PATH')) {
44 define('APP_INC_PATH', APP_PATH . '/lib/eventum');
9ff5b0e3 45 }
465c3ab7 46
ae3e48e6
ER
47-if (!defined('APP_PEAR_PATH')) {
48- define('APP_PEAR_PATH', APP_PATH . '/lib/pear');
49-}
858c6f2a
ER
50-
51-if (!defined('APP_SPHINXAPI_PATH')) {
52- define('APP_SPHINXAPI_PATH', APP_PATH . '/lib/sphinxapi');
53-}
ae3e48e6 54-
31dabce6 55 if (!defined('APP_SMARTY_PATH')) {
ae3e48e6
ER
56- define('APP_SMARTY_PATH', APP_PATH . '/lib/Smarty');
57+ define('APP_SMARTY_PATH', '/usr/share/php/Smarty');
3955d156
ER
58 }
59
31dabce6 60 if (!defined('APP_JPGRAPH_PATH')) {
ae3e48e6 61@@ -81,7 +77,7 @@
31dabce6 62 }
3955d156 63
31dabce6 64 if (!defined('APP_LOCKS_PATH')) {
ae3e48e6 65- define('APP_LOCKS_PATH', APP_PATH . '/locks');
31dabce6
ER
66+ define('APP_LOCKS_PATH', '/var/run/eventum/');
67 }
3955d156 68
bc46f6d4 69 if (!defined('APP_SQL_PATCHES_PATH')) {
ae3e48e6 70@@ -89,7 +85,7 @@
3955d156
ER
71 }
72
31dabce6 73 if (!defined('APP_LOG_PATH')) {
ae3e48e6
ER
74- define('APP_LOG_PATH', APP_PATH . '/logs');
75+ define('APP_LOG_PATH', '/var/log/eventum');
31dabce6 76 }
3955d156 77
bc46f6d4 78 if (!defined('APP_ROUTED_MAILS_SAVEDIR')) {
899100ff
ER
79--- eventum-2.3.1/htdocs/setup/index.php~ 2011-09-15 12:34:21.000000000 +0300
80+++ eventum-2.3.1/htdocs/setup/index.php 2011-09-15 12:36:34.061947696 +0300
ae3e48e6
ER
81@@ -42,14 +42,14 @@
82 define('APP_PATH', realpath(dirname(__FILE__) . '/../..'));
83 define('APP_INC_PATH', APP_PATH . '/lib/eventum');
098cbb72
ER
84 define('APP_PEAR_PATH', APP_PATH . '/lib/pear');
85-define('APP_SMARTY_PATH', APP_PATH . '/lib/Smarty');
ae3e48e6
ER
86-define('APP_CONFIG_PATH', APP_PATH . '/config');
87+define('APP_SMARTY_PATH', '/usr/share/php/Smarty');
88+define('APP_CONFIG_PATH', '/etc/webapps/eventum');
89 define('APP_SETUP_FILE', APP_CONFIG_PATH . '/setup.php');
90 define('APP_TPL_PATH', APP_PATH . '/templates');
91-define('APP_TPL_COMPILE_PATH', APP_PATH . '/templates_c');
92-define('APP_LOG_PATH', APP_PATH . '/logs');
31dabce6 93+define('APP_TPL_COMPILE_PATH', '/var/cache/eventum');
ae3e48e6
ER
94+define('APP_LOG_PATH', '/var/log/eventum');
95 define('APP_ERROR_LOG', APP_LOG_PATH . '/errors.log');
96-define('APP_LOCKS_PATH', APP_PATH . '/locks');
97+define('APP_LOCKS_PATH', '/var/run/eventum');
31dabce6 98
ae3e48e6 99 header('Content-Type: text/html; charset=' . APP_CHARSET);
31dabce6 100
899100ff
ER
101@@ -254,10 +254,6 @@
102 $errors[] = "The 'file_uploads' directive needs to be enabled in your PHP.INI file in order for Eventum to work properly.";
452347b6 103 }
abac5638 104
899100ff 105- $error = checkPermissions(APP_CONFIG_PATH, "Directory '" . APP_CONFIG_PATH . "'", true);
31dabce6
ER
106- if (!empty($error)) {
107- $errors[] = $error;
108- }
098cbb72 109 $error = checkPermissions(APP_SETUP_FILE, "File '" . APP_SETUP_FILE. "'");
31dabce6
ER
110 if (!empty($error)) {
111 $errors[] = $error;
112@@ -329,10 +325,6 @@
113 $setup_file_path = APP_SETUP_FILE;
452347b6 114
31dabce6
ER
115 clearstatcache();
116- // check if config directory is writable
117- if (!is_writable(APP_CONFIG_PATH)) {
118- return "The file '" . APP_CONFIG_PATH . "' directory needs to be writable by the web server user. Please correct this problem and try again.";
119- }
120 // need to create a random private key variable
121 $private_key = '<?php
122 $private_key = "' . md5(microtime()) . '";
74c64201
ER
123--- eventum-2.2/irc/eventum-irc-bot.php~ 2009-07-23 14:03:41.422211655 +0300
124+++ eventum-2.2/irc/eventum-irc-bot.php 2009-07-23 13:54:22.000000000 +0300
b33d41f0
ER
125@@ -32,7 +32,7 @@
126
127 ini_set('memory_limit', '1024M');
128
129-require_once dirname(__FILE__) . '/../init.php';
130+require_once '/usr/share/eventum/init.php';
131
132 if (!file_exists(APP_CONFIG_PATH . '/irc_config.php')) {
133 fwrite(STDERR, "ERROR: No config specified. Please see setup/irc_config.php for config information.\n\n");
97f6bb1b
ER
134--- eventum/crons/monitor.php 2010-11-24 17:24:23.000000000 +0200
135+++ eventum/crons/monitor.php 2010-11-24 18:23:09.664934996 +0200
136@@ -37,17 +37,17 @@
137 $required_files = array(
138 APP_CONFIG_PATH . '/config.php' => array(
139 'check_owner' => true,
140- 'owner' => 'apache',
141+ 'owner' => 'root',
142 'check_group' => true,
143- 'group' => 'apache',
144+ 'group' => 'http',
145 'check_permission' => true,
146 'permission' => 640,
147 ),
148 APP_CONFIG_PATH . '/setup.php' => array(
149 'check_owner' => true,
150- 'owner' => 'apache',
151+ 'owner' => 'root',
152 'check_group' => true,
153- 'group' => 'apache',
154+ 'group' => 'http',
155 'check_permission' => true,
156 'permission' => 660,
157 'check_filesize' => true,
73de38a1
ER
158--- eventum-2.3.3/config/sphinx.conf.php~ 2012-06-27 14:59:39.000000000 +0300
159+++ eventum-2.3.3/config/sphinx.conf.php 2012-06-27 15:04:52.928810689 +0300
160@@ -26,7 +26,7 @@
161 // | Authors: Bryan Alsdorf <bryan@mysql.com> |
162 // | Authors: Elan Ruusamäe <glen@delfi.ee> |
163 // +----------------------------------------------------------------------+
858c6f2a
ER
164-require_once dirname(__FILE__) . "/../init.php";
165+require_once '/usr/share/eventum/init.php';
166
167 if (!defined('SPHINX_LOG_PATH')) {
168 define('SPHINX_LOG_PATH', '/var/log/sphinx/');
This page took 0.064786 seconds and 4 git commands to generate.