]> git.pld-linux.org Git - packages/bacula-web.git/blobdiff - sys-libs.patch
Version: 6.0.0
[packages/bacula-web.git] / sys-libs.patch
index ff9c586d2539fa3129322a7841e9ba7392d2454d..6f00616da80bef3fd978be5771d31148528de87e 100644 (file)
@@ -1,54 +1,36 @@
---- bacula-web-5.2.11/core/global.inc.php      2013-01-24 19:43:27.543708741 +0200
-+++ bacula-web-5.2.11/core/global.inc.php      2013-01-24 19:43:27.543708741 +0200
-@@ -20,12 +20,11 @@
- define('BW_LIBS', BW_ROOT . '/application/libs/');
- define('BW_EXTERNAL', BW_OBJ . 'external');
--define('BW_PHPLOT', BW_EXTERNAL . '/phplot/');
--define('BW_SMARTY', BW_EXTERNAL . '/smarty/libs/');
--define('BW_SMARTY_GETTEXT', BW_EXTERNAL . '/smarty-gettext/');
-+define('BW_PHPLOT', '/usr/share/php/phplot/');
-+define('BW_SMARTY', '/usr/share/php/Smarty/');
- // Configuration
--define('CONFIG_DIR', BW_ROOT . "/application/config/");
-+define('CONFIG_DIR', '/etc/webapps/bacula-web/');
- define('CONFIG_FILE', CONFIG_DIR . "config.php");
- // Main application
-@@ -33,7 +32,6 @@
- // Template engine
- require_once( BW_SMARTY . "Smarty.class.php");
--require_once( BW_SMARTY_GETTEXT . "smarty_gettext.php" );
- // Graph
- require_once( BW_PHPLOT . "phplot.php");
-@@ -77,7 +75,8 @@
- // Views
- define('VIEW_DIR', BW_ROOT . "/application/view/");
--define('VIEW_CACHE_DIR', "application/view/cache");
-+define('VIEW_CACHE_DIR', '/var/cache/bacula-web');
-+define('VIEW_CACHE_URL', 'cache');
- // Locale
- define('LOCALE_DIR', BW_ROOT . '/application/locale');
---- bacula-web-5.2.11/core/i18n/ctranslation.class.php~        2012-08-11 13:14:04.000000000 +0300
-+++ bacula-web-5.2.11/core/i18n/ctranslation.class.php 2013-01-24 19:38:38.147079534 +0200
-@@ -32,9 +32,6 @@
-     }
-     function set_Language(&$template) {
--        // Template engine block registration
--        $template->register_block('t', 'smarty_translate');
--
-         // Setting up language
-         putenv("LANGUAGE=" . $this->language . '.' . $this->charset);
-         putenv("LANG=" . $this->language . '.' . $this->charset);
---- bacula-web-5.2.11/core/graph/cgraph.class.php      2012-12-14 06:56:54.000000000 +0200
-+++ bacula-web-5.2.11/core/graph/cgraph.class.php      2013-01-24 19:51:05.000000000 +0200
-@@ -31,6 +31,7 @@
+diff -dur bacula-web-6.0.0.orig/core/global.inc.php bacula-web-6.0.0/core/global.inc.php
+--- bacula-web-6.0.0.orig/core/global.inc.php  2013-11-11 17:06:40.000000000 +0100
++++ bacula-web-6.0.0/core/global.inc.php       2013-12-06 09:45:58.000000000 +0100
+@@ -31,20 +31,21 @@
+  // Views path
+  define('BW_ROOT', getcwd());
+  define('VIEW_DIR', BW_ROOT . "/application/view/");
+- define('VIEW_CACHE_DIR', "application/view/cache");
++ define('VIEW_CACHE_DIR', '/var/cache/bacula-web');
++ define('VIEW_CACHE_URL', 'cache');
+  
+  // Configuration
+- define('CONFIG_DIR', BW_ROOT . "/application/config/");
++ define('CONFIG_DIR', '/etc/webapps/bacula-web/');
+  define('CONFIG_FILE', CONFIG_DIR . "config.php");
+  
+  // Locales
+  define('LOCALE_DIR', BW_ROOT . '/application/locale');
+  
+  // Smarty
+- require_once(BW_ROOT . '/core/external/smarty-gettext/smarty-gettext.php');
++ require_once('/usr/share/php/Smarty/Smarty.class.php');
+  
+  // PHPLot
+- require_once(BW_ROOT . '/core/external/phplot/phplot.php');
++ require_once('/usr/share/php/phplot/phplot.php');
+  
+  // Constants
+  require_once(BW_ROOT . '/core/const.inc.php');
+diff -dur bacula-web-6.0.0.orig/core/graph/cgraph.class.php bacula-web-6.0.0/core/graph/cgraph.class.php
+--- bacula-web-6.0.0.orig/core/graph/cgraph.class.php  2013-11-11 17:06:40.000000000 +0100
++++ bacula-web-6.0.0/core/graph/cgraph.class.php       2013-12-06 09:40:53.000000000 +0100
+@@ -32,6 +32,7 @@
  
      function __construct($filename = "graph.png") {
          $this->img_filename = VIEW_CACHE_DIR . '/' . $filename;
@@ -56,7 +38,7 @@
      }
  
      public function SetData($data_in, $graph_type) {
-@@ -51,7 +52,7 @@
+@@ -52,7 +53,7 @@
      }
  
      private function get_Filepath() {
      }
        
      // ==================================================================================
+Only in bacula-web-6.0.0/core/graph: cgraph.class.php.orig
+diff -dur bacula-web-6.0.0.orig/core/i18n/ctranslation.class.php bacula-web-6.0.0/core/i18n/ctranslation.class.php
+--- bacula-web-6.0.0.orig/core/i18n/ctranslation.class.php     2013-11-11 17:06:40.000000000 +0100
++++ bacula-web-6.0.0/core/i18n/ctranslation.class.php  2013-12-06 09:40:53.000000000 +0100
+@@ -32,9 +32,6 @@
+     }
+     function set_Language(&$template) {
+-        // Template engine block registration
+-        $template->register_block('t', 'smarty_translate');
+-
+         // Setting up language
+         putenv("LANGUAGE=" . $this->language . '.' . $this->charset);
+         putenv("LANG=" . $this->language . '.' . $this->charset);
This page took 0.032567 seconds and 4 git commands to generate.