]> git.pld-linux.org Git - packages/eventum.git/blob - eventum-paths.patch
up to 3.0.3-20-g10ba91f; package config symlink to have less 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 @@ -78,7 +78,7 @@
4  }
5  
6  if (!defined('APP_TPL_COMPILE_PATH')) {
7 -    define('APP_TPL_COMPILE_PATH', APP_PATH . '/templates_c');
8 +    define('APP_TPL_COMPILE_PATH', '/var/cache/eventum');
9  }
10  
11  if (!defined('APP_INC_PATH')) {
12 @@ -86,11 +86,11 @@
13  }
14  
15  if (!defined('APP_LOCKS_PATH')) {
16 -    define('APP_LOCKS_PATH', APP_PATH . '/locks');
17 +    define('APP_LOCKS_PATH', '/var/run/eventum/');
18  }
19  
20  if (!defined('APP_LOG_PATH')) {
21 -    define('APP_LOG_PATH', APP_PATH . '/logs');
22 +    define('APP_LOG_PATH', '/var/log/eventum');
23  }
24  
25  if (!defined('APP_ERROR_LOG')) {
26 --- eventum-3.0.0/htdocs/setup/index.php~       2015-02-02 20:03:49.507010317 +0200
27 +++ eventum-3.0.0/htdocs/setup/index.php        2015-02-02 20:05:00.139257552 +0200
28 @@ -44,10 +44,10 @@
29  define('APP_CONFIG_PATH', APP_PATH . '/config');
30  define('APP_SETUP_FILE', APP_CONFIG_PATH . '/setup.php');
31  define('APP_TPL_PATH', APP_PATH . '/templates');
32 -define('APP_TPL_COMPILE_PATH', APP_PATH . '/templates_c');
33 -define('APP_LOG_PATH', APP_PATH . '/logs');
34 +define('APP_TPL_COMPILE_PATH', '/var/cache/eventum');
35 +define('APP_LOG_PATH', '/var/log/eventum');
36  define('APP_ERROR_LOG', APP_LOG_PATH . '/errors.log');
37 -define('APP_LOCKS_PATH', APP_PATH . '/locks');
38 +define('APP_LOCKS_PATH', '/var/run/eventum');
39  define('APP_LOCAL_PATH', APP_CONFIG_PATH);
40  
41  header('Content-Type: text/html; charset=' . APP_CHARSET);
42 @@ -254,10 +254,6 @@
43          $errors[] = "The 'file_uploads' directive needs to be enabled in your PHP.INI file in order for Eventum to work properly.";
44      }
45  
46 -    $error = checkPermissions(APP_CONFIG_PATH, "Directory '" . APP_CONFIG_PATH . "'", true);
47 -    if (!empty($error)) {
48 -        $errors[] = $error;
49 -    }
50      $error = checkPermissions(APP_SETUP_FILE, "File '" . APP_SETUP_FILE. "'");
51      if (!empty($error)) {
52          $errors[] = $error;
53 --- eventum-3.0.3-13-gfefa325/irc/eventum-irc-bot.php~  2015-10-13 20:00:48.000000000 +0300
54 +++ eventum-3.0.3-13-gfefa325/irc/eventum-irc-bot.php   2015-10-13 23:33:33.408818382 +0300
55 @@ -31,7 +31,7 @@
56  
57  ini_set('memory_limit', '1024M');
58  
59 -require_once __DIR__ . '/../init.php';
60 +require_once '/usr/share/eventum/init.php';
61  
62  if (!file_exists(APP_CONFIG_PATH . '/irc_config.php')) {
63      fwrite(STDERR, "ERROR: No config specified. Please see setup/irc_config.php for config information.\n\n");
64 --- eventum/bin/monitor.php     2010-11-24 17:24:23.000000000 +0200
65 +++ eventum/bin/monitor.php     2010-11-24 18:23:09.664934996 +0200
66 @@ -37,17 +37,17 @@
67  $required_files = array(
68      APP_CONFIG_PATH . '/config.php' => array(
69          'check_owner'      => true,
70 -        'owner'            => 'apache',
71 +        'owner'            => 'root',
72          'check_group'      => true,
73 -        'group'            => 'apache',
74 +        'group'            => 'http',
75          'check_permission' => true,
76          'permission'       => 640,
77      ),
78      APP_CONFIG_PATH . '/setup.php' => array(
79          'check_owner'      => true,
80 -        'owner'            => 'apache',
81 +        'owner'            => 'root',
82          'check_group'      => true,
83 -        'group'            => 'apache',
84 +        'group'            => 'http',
85          'check_permission' => true,
86          'permission'       => 660,
87          'check_filesize'   => true,
88 --- eventum-3.0.3-13-gfefa325/config/sphinx.conf.php~   2015-10-13 20:00:48.000000000 +0300
89 +++ eventum-3.0.3-13-gfefa325/config/sphinx.conf.php    2015-10-13 23:34:19.668134549 +0300
90 @@ -26,7 +26,7 @@
91  // | Authors: Bryan Alsdorf <bryan@mysql.com>                             |
92  // | Authors: Elan Ruusamäe <glen@delfi.ee>                               |
93  // +----------------------------------------------------------------------+
94 -require_once __DIR__ . "/../init.php";
95 +require_once '/usr/share/eventum/init.php';
96  
97  if (!defined('SPHINX_LOG_PATH')) {
98      define('SPHINX_LOG_PATH', '/var/log/sphinx/');
This page took 0.033396 seconds and 4 git commands to generate.