SOURCES: lms-PLD.patch - upgrade to lms 1.6.0

hunter hunter at pld-linux.org
Wed Jun 15 23:07:18 CEST 2005


Author: hunter                       Date: Wed Jun 15 21:07:18 2005 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- upgrade to lms 1.6.0

---- Files affected:
SOURCES:
   lms-PLD.patch (1.6 -> 1.7) 

---- Diffs:

================================================================
Index: SOURCES/lms-PLD.patch
diff -u SOURCES/lms-PLD.patch:1.6 SOURCES/lms-PLD.patch:1.7
--- SOURCES/lms-PLD.patch:1.6	Fri Oct 15 15:35:16 2004
+++ SOURCES/lms-PLD.patch	Wed Jun 15 23:07:13 2005
@@ -1,65 +1,58 @@
---- lms.orig/index.php	2004-09-18 21:26:55.000000000 +0200
-+++ lms/index.php	2004-10-03 04:09:36.022502648 +0200
-@@ -98,13 +98,13 @@
- }
+--- lms/index.php-u	2005-06-15 22:48:13.000000000 +0200
++++ lms/index.php	2005-06-15 22:53:52.000000000 +0200
+@@ -85,13 +85,13 @@
+ 	$_CONFIG[$key] = $val;
  
  // Check for configuration vars and set default values
--$_CONFIG['directories']['sys_dir'] = (! $_CONFIG['directories']['sys_dir'] ? getcwd() : $_CONFIG['directories']['sys_dir']);
--$_CONFIG['directories']['backup_dir'] = (! $_CONFIG['directories']['backup_dir'] ? $_CONFIG['directories']['sys_dir'].'/backups' : $_CONFIG['directories']['backup_dir']);
-+$_CONFIG['directories']['sys_dir'] = (! $_CONFIG['directories']['sys_dir'] ? '/usr/share/lms' : $_CONFIG['directories']['sys_dir']);
-+$_CONFIG['directories']['backup_dir'] = (! $_CONFIG['directories']['backup_dir'] ? '/var/lib/lms/backups' : $_CONFIG['directories']['backup_dir']);
- $_CONFIG['directories']['lib_dir'] = (! $_CONFIG['directories']['lib_dir'] ? $_CONFIG['directories']['sys_dir'].'/lib' : $_CONFIG['directories']['lib_dir']);
- $_CONFIG['directories']['modules_dir'] = (! $_CONFIG['directories']['modules_dir'] ? $_CONFIG['directories']['sys_dir'].'/modules' : $_CONFIG['directories']['modules_dir']);
- $_CONFIG['directories']['config_templates_dir'] = (! $_CONFIG['directories']['config_templates_dir'] ? $_CONFIG['directories']['sys_dir'].'/config_templates' : $_CONFIG['directories']['config_templates_dir']);
--$_CONFIG['directories']['smarty_dir'] = (! $_CONFIG['directories']['smarty_dir'] ? (is_readable('/usr/share/php/smarty/libs/Smarty.class.php') ? '/usr/share/php/smarty/libs' : $_CONFIG['directories']['lib_dir'].'/Smarty') : $_CONFIG['directories']['smarty_dir']);
--$_CONFIG['directories']['smarty_compile_dir'] = (! $_CONFIG['directories']['smarty_compile_dir'] ? $_CONFIG['directories']['sys_dir'].'/templates_c' : $_CONFIG['directories']['smarty_compile_dir']);
-+$_CONFIG['directories']['smarty_dir'] = (! $_CONFIG['directories']['smarty_dir'] ? '/usr/share/pear/Smarty' : $_CONFIG['directories']['smarty_dir']);
-+$_CONFIG['directories']['smarty_compile_dir'] = (! $_CONFIG['directories']['smarty_compile_dir'] ? '/var/lib/lms/templates_c/' : $_CONFIG['directories']['smarty_compile_dir']);
- $_CONFIG['directories']['smarty_templates_dir'] = (! $_CONFIG['directories']['smarty_templates_dir'] ? $_CONFIG['directories']['sys_dir'].'/templates' : $_CONFIG['directories']['smarty_templates_dir']);
+-$_CONFIG['directories']['sys_dir'] = (!isset($_CONFIG['directories']['sys_dir']) ? getcwd() : $_CONFIG['directories']['sys_dir']);
+-$_CONFIG['directories']['backup_dir'] = (!isset($_CONFIG['directories']['backup_dir']) ? $_CONFIG['directories']['sys_dir'].'/backups' : $_CONFIG['directories']['backup_dir']);
++$_CONFIG['directories']['sys_dir'] = (!isset($_CONFIG['directories']['sys_dir']) ? '/usr/share/lms' : $_CONFIG['directories']['sys_dir']);
++$_CONFIG['directories']['backup_dir'] = (!isset($_CONFIG['directories']['backup_dir']) ? '/var/lib/lms/backups' : $_CONFIG['directories']['backup_dir']);
+ $_CONFIG['directories']['lib_dir'] = (!isset($_CONFIG['directories']['lib_dir']) ? $_CONFIG['directories']['sys_dir'].'/lib' : $_CONFIG['directories']['lib_dir']);
+ $_CONFIG['directories']['modules_dir'] = (!isset($_CONFIG['directories']['modules_dir']) ? $_CONFIG['directories']['sys_dir'].'/modules' : $_CONFIG['directories']['modules_dir']);
+ $_CONFIG['directories']['config_templates_dir'] = (!isset($_CONFIG['directories']['config_templates_dir']) ? $_CONFIG['directories']['sys_dir'].'/config_templates' : $_CONFIG['directories']['config_templates_dir']);
+-$_CONFIG['directories']['smarty_dir'] = (!isset($_CONFIG['directories']['smarty_dir']) ? (is_readable('/usr/share/php/smarty/libs/Smarty.class.php') ? '/usr/share/php/smarty/libs' : $_CONFIG['directories']['lib_dir'].'/Smarty') : $_CONFIG['directories']['smarty_dir']);
+-$_CONFIG['directories']['smarty_compile_dir'] = (!isset($_CONFIG['directories']['smarty_compile_dir']) ? $_CONFIG['directories']['sys_dir'].'/templates_c' : $_CONFIG['directories']['smarty_compile_dir']);
++$_CONFIG['directories']['smarty_dir'] = (!isset($_CONFIG['directories']['smarty_dir']) ? '/usr/share/pear/Smarty' : $_CONFIG['directories']['smarty_dir']);
++$_CONFIG['directories']['smarty_compile_dir'] = (!isset($_CONFIG['directories']['smarty_compile_dir']) ? '/var/lib/lms/templates_c/' : $_CONFIG['directories']['smarty_compile_dir']);
+ $_CONFIG['directories']['smarty_templates_dir'] = (!isset($_CONFIG['directories']['smarty_templates_dir']) ? $_CONFIG['directories']['sys_dir'].'/templates' : $_CONFIG['directories']['smarty_templates_dir']);
  
  foreach(lms_parse_ini_file($_CONFIG['directories']['lib_dir'].'/config_defaults.ini', TRUE) as $section => $values)
---- lms.orig/sample/lms.ini	2004-08-25 14:52:18.000000000 +0200
-+++ lms/sample/lms.ini	2004-10-04 02:52:16.676497680 +0200
-@@ -25,7 +25,7 @@
- ; ze wskazówkami w doc/INSTALL) będzie to 'lms'. Jeżeli chcesz używać
- ; konta uprzywilejowanego, prawdopodobnie wpiszesz 'root' (MySQL na
- ; większości *nixów), 'mysql' (na PLD) bądź 'postgres' (PostgreSQL).
--; Domyślnie: root
-+; Domyślnie: mysql
- 
- ; user			= mysql
- 
-@@ -170,7 +170,7 @@
- ; stara się sam odnaleźć w filesystemie używając getcwd(), ale lepiej
- ; by było gdyby mu powiedzieć gdzie jest:
- 
--; sys_dir		= /var/www/htdocs/lms/
-+; sys_dir		= /usr/share/lms/www/
- 
- ; Katalog z "modułami" LMS'a - kawałkami kodu które szumnie ktoś 
- ; (czyli Baseciq) nazwał modułami. Domyślnie jest to podkatalog modules
-@@ -193,13 +193,13 @@
+
+--- lms/sample/lms.ini.orig	2005-05-13 13:36:19.000000000 +0200
++++ lms/sample/lms.ini	2005-06-15 23:04:30.000000000 +0200
+@@ -253,7 +253,7 @@
+ ; index.php, graphics, templates and the rest. By default index.php seek in filesystem
+ ; using getcwd(), but better is to say him where hi is:
+ 
+-; sys_dir          = /var/www/htdocs/lms/
++; sys_dir      = /usr/share/lms/www/
+ 
+ ; Directory with "modules" of LMS. That is content of /modules directory.
+ ; By default it is subdirectory modules in sys_dir
+@@ -270,13 +270,14 @@
+ ; If directory with backups will be accessible from WWW level, then anybody will
+ ; can to access them without authorization.
  
- ; config_templates_dir	= /usr/share/lms/config_templates
+-; backup_dir          = /var/backup/lms/
++; backup_dir       = /var/lib/lms/backups/
  
--; backup_dir		= /var/backup/lms/
-+; backup_dir		= /var/lib/lms/backups/
- 
- ; Katalog z biblioteką Smarty - domyślnie podkatalog Smarty w 
- ; lib_dir.
+ ; Directory with Smarty library
+ ; By default, subdirectory Smarty in lib_dir
  ; http://smarty.php.net
  
--; smarty_dir		= /usr/lib/php/Smarty
-+; smarty_dir		= /usr/share/pear/Smarty
+-; smarty_dir          = /usr/lib/php/Smarty
++; smarty_dir       = /usr/share/pear/Smarty
++
  
  ; W pld jest domyślnie tutaj: (nie zapomnij o "poldek -i Smarty");
  ; smarty_dir      = /usr/share/pear/Smarty
-@@ -208,7 +208,7 @@
- ; Katalog kompilacji Smartyego. Miejsce gdzie Smarty psuje nasze
- ; templejty. Domyślnie to templates_c w katalogu sysdir.
+@@ -284,7 +285,7 @@
+ ; Smarty's compilation directory. Place where Smarty compile templates.
+ ; By default it is subdirectory templates_c in sys_dir.
  
--; smarty_compile_dir	= /var/smarty/compile/lms
-+; smarty_compile_dir	= /var/lib/lms/templates_c
+-; smarty_compile_dir     = /var/smarty/compile/lms
++; smarty_compile_dir   = /var/lib/lms/templates_c
  
- ; Katalog z templejtami którymi karmimy Smartiego. Domyślnie to
- ; podkatalog templates z sys_dir'a.
+ ; Directory with Smarty's templates.
+ ; By default it is subdirectory templates in sys_dir.
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/lms-PLD.patch?r1=1.6&r2=1.7&f=u




More information about the pld-cvs-commit mailing list