]> git.pld-linux.org Git - packages/eventum.git/blob - eventum-paths.patch
rediff init.php patching
[packages/eventum.git] / eventum-paths.patch
1 --- eventum-3.0.2-28-g0d12f69.old/init.php      2015-09-14 13:20:59.450996838 +0300
2 +++ eventum-3.0.2-28-g0d12f69/init.php  2015-09-11 23:17:34.000000000 +0300
3 @@ -28,7 +28,7 @@
4  // | Authors: Elan Ruusamäe <glen@delfi.ee>                               |
5  // +----------------------------------------------------------------------+
6  
7 -if (!file_exists(dirname(__FILE__) . '/config/config.php') || !filesize(dirname(__FILE__) . '/config/config.php')) {
8 +if (!file_exists('/etc/webapps/eventum/config.php') || !filesize('/etc/webapps/eventum/config.php')) {
9      Header('Location: setup/');
10      exit(0);
11  }
12 @@ -45,7 +45,7 @@
13  // define base path
14  define('APP_PATH', realpath(dirname(__FILE__)));
15  if (!defined('APP_CONFIG_PATH')) {
16 -    define('APP_CONFIG_PATH', APP_PATH . '/config');
17 +    define('APP_CONFIG_PATH', '/etc/webapps/eventum');
18  }
19  
20  // include local site config. may override any default
21 @@ -78,7 +78,7 @@
22  }
23  
24  if (!defined('APP_TPL_COMPILE_PATH')) {
25 -    define('APP_TPL_COMPILE_PATH', APP_PATH . '/templates_c');
26 +    define('APP_TPL_COMPILE_PATH', '/var/cache/eventum');
27  }
28  
29  if (!defined('APP_INC_PATH')) {
30 @@ -86,11 +86,11 @@
31  }
32  
33  if (!defined('APP_LOCKS_PATH')) {
34 -    define('APP_LOCKS_PATH', APP_PATH . '/locks');
35 +    define('APP_LOCKS_PATH', '/var/run/eventum/');
36  }
37  
38  if (!defined('APP_LOG_PATH')) {
39 -    define('APP_LOG_PATH', APP_PATH . '/logs');
40 +    define('APP_LOG_PATH', '/var/log/eventum');
41  }
42  
43  if (!defined('APP_ERROR_LOG')) {
44 @@ -197,6 +197,8 @@
45  }
46  
47  require_once APP_PATH . '/autoload.php';
48 +# hack
49 +require_once '/usr/share/php/Smarty3/plugins/block.t.php';
50  
51  // fix magic_quote_gpc'ed values
52  if (get_magic_quotes_gpc()) {
53 --- eventum-3.0.0/htdocs/setup/index.php~       2015-02-02 20:03:49.507010317 +0200
54 +++ eventum-3.0.0/htdocs/setup/index.php        2015-02-02 20:05:00.139257552 +0200
55 @@ -44,10 +44,10 @@
56  define('APP_CONFIG_PATH', APP_PATH . '/config');
57  define('APP_SETUP_FILE', APP_CONFIG_PATH . '/setup.php');
58  define('APP_TPL_PATH', APP_PATH . '/templates');
59 -define('APP_TPL_COMPILE_PATH', APP_PATH . '/templates_c');
60 -define('APP_LOG_PATH', APP_PATH . '/logs');
61 +define('APP_TPL_COMPILE_PATH', '/var/cache/eventum');
62 +define('APP_LOG_PATH', '/var/log/eventum');
63  define('APP_ERROR_LOG', APP_LOG_PATH . '/errors.log');
64 -define('APP_LOCKS_PATH', APP_PATH . '/locks');
65 +define('APP_LOCKS_PATH', '/var/run/eventum');
66  define('APP_LOCAL_PATH', APP_CONFIG_PATH);
67  
68  header('Content-Type: text/html; charset=' . APP_CHARSET);
69 @@ -254,10 +254,6 @@
70          $errors[] = "The 'file_uploads' directive needs to be enabled in your PHP.INI file in order for Eventum to work properly.";
71      }
72  
73 -    $error = checkPermissions(APP_CONFIG_PATH, "Directory '" . APP_CONFIG_PATH . "'", true);
74 -    if (!empty($error)) {
75 -        $errors[] = $error;
76 -    }
77      $error = checkPermissions(APP_SETUP_FILE, "File '" . APP_SETUP_FILE. "'");
78      if (!empty($error)) {
79          $errors[] = $error;
80 --- eventum-2.2/irc/eventum-irc-bot.php~        2009-07-23 14:03:41.422211655 +0300
81 +++ eventum-2.2/irc/eventum-irc-bot.php 2009-07-23 13:54:22.000000000 +0300
82 @@ -32,7 +32,7 @@
83  
84  ini_set('memory_limit', '1024M');
85  
86 -require_once dirname(__FILE__) . '/../init.php';
87 +require_once '/usr/share/eventum/init.php';
88  
89  if (!file_exists(APP_CONFIG_PATH . '/irc_config.php')) {
90      fwrite(STDERR, "ERROR: No config specified. Please see setup/irc_config.php for config information.\n\n");
91 --- eventum/bin/monitor.php     2010-11-24 17:24:23.000000000 +0200
92 +++ eventum/bin/monitor.php     2010-11-24 18:23:09.664934996 +0200
93 @@ -37,17 +37,17 @@
94  $required_files = array(
95      APP_CONFIG_PATH . '/config.php' => array(
96          'check_owner'      => true,
97 -        'owner'            => 'apache',
98 +        'owner'            => 'root',
99          'check_group'      => true,
100 -        'group'            => 'apache',
101 +        'group'            => 'http',
102          'check_permission' => true,
103          'permission'       => 640,
104      ),
105      APP_CONFIG_PATH . '/setup.php' => array(
106          'check_owner'      => true,
107 -        'owner'            => 'apache',
108 +        'owner'            => 'root',
109          'check_group'      => true,
110 -        'group'            => 'apache',
111 +        'group'            => 'http',
112          'check_permission' => true,
113          'permission'       => 660,
114          'check_filesize'   => true,
115 --- eventum-2.3.3/config/sphinx.conf.php~       2012-06-27 14:59:39.000000000 +0300
116 +++ eventum-2.3.3/config/sphinx.conf.php        2012-06-27 15:04:52.928810689 +0300
117 @@ -26,7 +26,7 @@
118  // | Authors: Bryan Alsdorf <bryan@mysql.com>                             |
119  // | Authors: Elan Ruusamäe <glen@delfi.ee>                               |
120  // +----------------------------------------------------------------------+
121 -require_once dirname(__FILE__) . "/../init.php";
122 +require_once '/usr/share/eventum/init.php';
123  
124  if (!defined('SPHINX_LOG_PATH')) {
125      define('SPHINX_LOG_PATH', '/var/log/sphinx/');
126 --- eventum-3.0.0-285-g72865b8/autoload.php~    2015-04-20 23:14:34.904789824 +0300
127 +++ eventum-3.0.0-285-g72865b8/autoload.php     2015-04-20 23:22:44.240566443 +0300
128 @@ -54,11 +54,11 @@
129   */
130  
131  if (!defined('APP_PEAR_PATH')) {
132 -    define('APP_PEAR_PATH', '');
133 +    define('APP_PEAR_PATH', '/usr/share/pear');
134  }
135  
136  if (!defined('APP_PHP_PATH')) {
137 -    define('APP_PHP_PATH', '');
138 +    define('APP_PHP_PATH', '/usr/share/php');
139  }
140  
141  if (!defined('APP_FONTS_PATH')) {
142 @@ -66,7 +66,7 @@
143  }
144  
145  if (!defined('APP_SPHINXAPI_PATH')) {
146 -    define('APP_SPHINXAPI_PATH', '');
147 +    define('APP_SPHINXAPI_PATH', APP_PHP_PATH);
148  }
149  
150  if (!defined('APP_PHP_GETTEXT_PATH')) {
151 @@ -74,7 +74,7 @@
152  }
153  
154  if (!defined('APP_SMARTY_PATH')) {
155 -    define('APP_SMARTY_PATH', '');
156 +    define('APP_SMARTY_PATH', APP_PHP_PATH . '/Smarty3');
157  }
158  
159  // add PEAR to the include path, required by PEAR classes
This page took 0.077948 seconds and 4 git commands to generate.