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