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