]> git.pld-linux.org Git - packages/eventum.git/blob - eventum-paths.patch
up to 3.0.3-1.287.ge48a790, uses var constant internally
[packages/eventum.git] / eventum-paths.patch
1 --- eventum-3.0.3-287-ge48a790/init.php~        2015-10-26 21:42:14.000000000 +0200
2 +++ eventum-3.0.3-287-ge48a790/init.php 2015-10-26 21:46:47.983157509 +0200
3 @@ -76,9 +76,9 @@
4  $define('APP_SETUP_FILE', APP_CONFIG_PATH . '/setup.php');
5  $define('APP_INC_PATH', APP_PATH . '/lib/eventum');
6  $define('APP_TPL_PATH', APP_PATH . '/templates');
7 -$define('APP_TPL_COMPILE_PATH', APP_VAR_PATH . '/cache');
8 -$define('APP_LOCKS_PATH', APP_VAR_PATH . '/lock');
9 -$define('APP_LOG_PATH', APP_VAR_PATH . '/log');
10 +$define('APP_TPL_COMPILE_PATH', '/var/cache/eventum');
11 +$define('APP_LOCKS_PATH', '/var/run/eventum');
12 +$define('APP_LOG_PATH', '/var/log/eventum');
13  $define('APP_ERROR_LOG', APP_LOG_PATH . '/errors.log');
14  $define('APP_CLI_LOG', APP_LOG_PATH . '/cli.log');
15  $define('APP_IRC_LOG', APP_LOG_PATH . '/irc_bot.log');
16 --- eventum-3.0.3-287-ge48a790/htdocs/setup/index.php~  2015-10-26 21:45:35.367554219 +0200
17 +++ eventum-3.0.3-287-ge48a790/htdocs/setup/index.php   2015-10-26 21:47:31.775849576 +0200
18 @@ -47,10 +47,10 @@
19  define('APP_CONFIG_PATH', APP_PATH . '/config');
20  define('APP_SETUP_FILE', APP_CONFIG_PATH . '/setup.php');
21  define('APP_TPL_PATH', APP_PATH . '/templates');
22 -define('APP_TPL_COMPILE_PATH', APP_VAR_PATH . '/cache');
23 -define('APP_LOG_PATH', APP_VAR_PATH . '/log');
24 +define('APP_TPL_COMPILE_PATH', '/var/cache/eventum');
25 +define('APP_LOG_PATH', '/var/log/eventum');
26  define('APP_ERROR_LOG', APP_LOG_PATH . '/errors.log');
27 -define('APP_LOCKS_PATH', APP_VAR_PATH . '/lock');
28 +define('APP_LOCKS_PATH', '/var/run/eventum');
29  define('APP_LOCAL_PATH', APP_CONFIG_PATH);
30  
31  header('Content-Type: text/html; charset=' . APP_CHARSET);
32 @@ -254,10 +254,6 @@
33          $errors[] = "The 'file_uploads' directive needs to be enabled in your PHP.INI file in order for Eventum to work properly.";
34      }
35  
36 -    $error = checkPermissions(APP_CONFIG_PATH, "Directory '" . APP_CONFIG_PATH . "'", true);
37 -    if (!empty($error)) {
38 -        $errors[] = $error;
39 -    }
40      $error = checkPermissions(APP_SETUP_FILE, "File '" . APP_SETUP_FILE. "'");
41      if (!empty($error)) {
42          $errors[] = $error;
43 --- eventum/bin/monitor.php     2010-11-24 17:24:23.000000000 +0200
44 +++ eventum/bin/monitor.php     2010-11-24 18:23:09.664934996 +0200
45 @@ -37,17 +37,17 @@
46  $required_files = array(
47      APP_CONFIG_PATH . '/config.php' => array(
48          'check_owner'      => true,
49 -        'owner'            => 'apache',
50 +        'owner'            => 'root',
51          'check_group'      => true,
52 -        'group'            => 'apache',
53 +        'group'            => 'http',
54          'check_permission' => true,
55          'permission'       => 640,
56      ),
57      APP_CONFIG_PATH . '/setup.php' => array(
58          'check_owner'      => true,
59 -        'owner'            => 'apache',
60 +        'owner'            => 'root',
61          'check_group'      => true,
62 -        'group'            => 'apache',
63 +        'group'            => 'http',
64          'check_permission' => true,
65          'permission'       => 660,
66          'check_filesize'   => true,
67 --- eventum-3.0.3-13-gfefa325/config/sphinx.conf.php~   2015-10-13 20:00:48.000000000 +0300
68 +++ eventum-3.0.3-13-gfefa325/config/sphinx.conf.php    2015-10-13 23:34:19.668134549 +0300
69 @@ -26,7 +26,7 @@
70  // | Authors: Bryan Alsdorf <bryan@mysql.com>                             |
71  // | Authors: Elan Ruusamäe <glen@delfi.ee>                               |
72  // +----------------------------------------------------------------------+
73 -require_once __DIR__ . "/../init.php";
74 +require_once '/usr/share/eventum/init.php';
75  
76  if (!defined('SPHINX_LOG_PATH')) {
77      define('SPHINX_LOG_PATH', '/var/log/sphinx/');
This page took 0.029867 seconds and 4 git commands to generate.