]> git.pld-linux.org Git - packages/eventum.git/blob - eventum-paths.patch
up to 3.8.6
[packages/eventum.git] / eventum-paths.patch
1 --- eventum-3.7.4-440-gcc5ad3db5/src/Config/Paths.php   2019-08-21 23:32:40.826463576 +0300
2 +++ eventum-3.7.4-440-gcc5ad3db5/src/Config/Paths.php   2019-08-21 23:38:04.548486455 +0300
3 @@ -24,14 +24,13 @@
4      // "/var" path for writable data
5 -    public const APP_VAR_PATH = APP_PATH . '/var';
6 -    public const APP_CACHE_PATH = self::APP_VAR_PATH . '/cache';
7 +    public const APP_CACHE_PATH = '/var/cache/eventum';
8  
9      // define other paths
10      public const APP_TPL_PATH = APP_PATH . '/templates';
11      public const APP_TPL_COMPILE_PATH = self::APP_CACHE_PATH . '/smarty';
12 -    public const APP_LOG_PATH = self::APP_VAR_PATH . '/log';
13 +    public const APP_LOG_PATH = '/var/log/eventum';
14      public const APP_ERROR_LOG = self::APP_LOG_PATH . '/errors.log';
15 -    public const APP_LOCKS_PATH = self::APP_VAR_PATH . '/lock';
16 +    public const APP_LOCKS_PATH = '/var/run/eventum';
17  
18      // fonts directory for phplot
19 -    public const APP_FONTS_PATH = APP_PATH . '/vendor/fonts/liberation';
20 +    public const APP_FONTS_PATH = '/usr/share/fonts/TTF';
21  }
22 --- eventum-3.5.6-98-g5b87d2b0/src/Setup/Requirements.php~      2019-01-23 01:50:42.000000000 +0200
23 +++ eventum-3.5.6-98-g5b87d2b0/src/Setup/Requirements.php       2019-01-24 22:18:56.047816296 +0200
24 @@ -64,10 +64,6 @@
25          $configPath = Setup::getConfigPath();
26          $setupFile = Setup::getSetupFile();
27  
28 -        $error = $this->checkPermissions($configPath, "Directory '" . $configPath . "'", true);
29 -        if (!empty($error)) {
30 -            $errors[] = $error;
31 -        }
32          $error = $this->checkPermissions($setupFile, "File '" . $setupFile . "'");
33          if (!empty($error)) {
34              $errors[] = $error;
35 --- eventum-3.5.0/src/Console/Command/MonitorCommand.php~       2018-05-20 17:33:34.000000000 +0300
36 +++ eventum-3.5.0/src/Console/Command/MonitorCommand.php        2018-05-21 01:42:21.463354763 +0300
37 @@ -47,17 +47,17 @@
38          $required_files = [
39              $configPath . '/config.php' => [
40                  'check_owner' => true,
41 -                'owner' => 'apache',
42 +                'owner' => 'root',
43                  'check_group' => true,
44 -                'group' => 'apache',
45 +                'group' => 'http',
46                  'check_permission' => true,
47                  'permission' => 640,
48              ],
49              $configPath . '/setup.php' => [
50                  'check_owner' => true,
51 -                'owner' => 'apache',
52 +                'owner' => 'root',
53                  'check_group' => true,
54 -                'group' => 'apache',
55 +                'group' => 'http',
56                  'check_permission' => true,
57                  'permission' => 660,
58                  'check_filesize' => true,
59 --- eventum-3.1.5/config/sphinx.conf.php~       2016-11-13 12:05:37.000000000 +0200
60 +++ eventum-3.1.5/config/sphinx.conf.php        2016-11-23 03:10:05.855040510 +0200
61 @@ -1,7 +1,7 @@
62  #!/usr/bin/php
63  <?php
64  
65 -require_once __DIR__ . '/../init.php';
66 +require_once '/usr/share/eventum/init.php';
67  
68  if (!defined('SPHINX_LOG_PATH')) {
69      define('SPHINX_LOG_PATH', '/var/log/sphinx/');
70 --- eventum-3.7.4-440-gcc5ad3db5/src/Attachment/StorageManager.php~     2019-08-11 22:49:07.000000000 +0300
71 +++ eventum-3.7.4-440-gcc5ad3db5/src/Attachment/StorageManager.php      2019-08-21 23:33:19.325911295 +0300
72 @@ -33,7 +33,7 @@
73       *
74       * @var string
75       */
76 -    private const STORAGE_PATH = Paths::APP_PATH . '/var/storage/';
77 +    private const STORAGE_PATH = '/var/lib/eventum/storage/';
78  
79      /**
80       * @var MountManager
81 --- eventum/res/services.yml~   2019-08-02 01:33:18.681001511 +0300
82 +++ eventum/res/services.yml    2019-08-02 01:33:20.290978222 +0300
83 @@ -15,13 +15,13 @@
84      # makes classes in src/ available to be used as services
85      # this creates a service per class whose id is the fully-qualified class name
86      Eventum\:
87 -        resource: '../src/*'
88 -        exclude: '../src/{DependencyInjection,Entity,Migrations,Tests,Kernel.php}'
89 +        resource: '/usr/share/eventum/src/*'
90 +        exclude: '/usr/share/eventum/src/{DependencyInjection,Entity,Migrations,Tests,Kernel.php}'
91  
92      # controllers are imported separately to make sure services can be injected
93      # as action arguments even if you don't extend any base controller class
94      Eventum\Controller\:
95 -        resource: '../src/Controller'
96 +        resource: '/usr/share/eventum/src/Controller'
97          tags: ['controller.service_arguments']
98  
99      # add more service definitions when explicit configuration is needed
This page took 0.091841 seconds and 3 git commands to generate.