]> git.pld-linux.org Git - packages/dokuwiki.git/commitdiff
- setup cachedir via main config, less patching
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 8 Jul 2012 07:10:44 +0000 (07:10 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    dokuwiki-config.patch -> 1.20
    dokuwiki-paths.patch -> 1.8

dokuwiki-config.patch
dokuwiki-paths.patch

index f50c018e43985cc0cb3b1dae642d6075dd69c3c1..0e956349d7a9a1fa0dbf4f0d05ecc112b3a50ce0 100644 (file)
@@ -1,6 +1,6 @@
---- dokuwiki-2012-06-23/conf/dokuwiki.php~     2012-06-23 13:08:48.000000000 +0300
-+++ dokuwiki-2012-06-23/conf/dokuwiki.php      2012-06-23 13:09:12.871130284 +0300
-@@ -19,8 +19,8 @@
+--- dokuwiki-2012-06-23/conf/dokuwiki.php      2012-06-23 13:09:12.871130284 +0300
++++ dokuwiki-2012-06-24/conf/dokuwiki.php      2012-07-07 15:08:02.939975138 +0300
+@@ -19,8 +19,9 @@
  $conf['template']    = 'dokuwiki';         //see lib/tpl directory
  $conf['tagline']     = '';                //tagline in header (if template supports it)
  $conf['sidebar']     = 'sidebar';         //name of sidebar in root namespace (if template supports it)
@@ -8,16 +8,19 @@
 -$conf['savedir']     = './data';          //where to store all the files
 +$conf['license']     = 'publicdomain';    //see conf/license.php
 +$conf['savedir']     = '/var/lib/dokuwiki';  //where to store all the files
++$conf['cachedir']    = '/var/cache/dokuwiki';  //where cache files are stored
  $conf['basedir']     = '';                //absolute dir from serveroot - blank for autodetection
  $conf['baseurl']     = '';                //URL to server including protocol - blank for autodetect
  $conf['cookiedir']   = '';                //path to use in cookies - blank for basedir
---- dokuwiki-2012-06-24/install.php~   2012-06-24 21:55:08.000000000 +0300
-+++ dokuwiki-2012-06-24/install.php    2012-06-24 21:56:11.184049230 +0300
-@@ -55,6 +55,7 @@
+--- dokuwiki-2012-06-24/install.php    2012-06-24 21:56:11.184049230 +0300
++++ dokuwiki-2012-06-24/install.php    2012-07-07 15:10:52.440544560 +0300
+@@ -54,7 +54,8 @@
+     '2011-05-25'   => '4241865472edb6fa14a1227721008072',
      '2011-11-10'   => 'b46ff19a7587966ac4df61cbab1b8b31',
      '2012-01-25'   => '72c083c73608fc43c586901fd5dabb74',
-     'devel'        => 'eb0b3fc90056fbc12bac6f49f7764df3'
-+    'devel-pld'    => 'e41c579c958478060232b8d6a16bc915'
+-    'devel'        => 'eb0b3fc90056fbc12bac6f49f7764df3'
++    'devel'        => 'eb0b3fc90056fbc12bac6f49f7764df3',
++    'devel-pld'    => '19465557caebbf3fdd381a658196d5c0',
  );
  
  
index bf8769b40b75cf716d202696c0243871919e6693..71ca0da0d8e70c746447f07d3b80a6311b4b9359 100644 (file)
@@ -31,23 +31,6 @@ index 403fbe4..29d96b2 100644
  
  // check for error reporting override or set error reporting to sane values
  if (!defined('DOKU_E_LEVEL') && @file_exists(DOKU_CONF.'report_e_all')) {
-@@ -234,13 +234,14 @@
-             'mediaolddir' => 'media_attic',
-             'metadir'   => 'meta',
-             'mediametadir' => 'media_meta',
--            'cachedir'  => 'cache',
-+            'cachedir'  => '/var/cache/dokuwiki',
-             'indexdir'  => 'index',
-             'lockdir'   => 'locks',
-             'tmpdir'    => 'tmp');
-     foreach($paths as $c => $p) {
--        $path = empty($conf[$c]) ? $conf['savedir'].'/'.$p : $conf[$c];
-+        $path = empty($conf[$c]) ? $p : $conf[$c];
-+        $path = $path[0] == '/' ? $path : $conf['savedir'].'/'.$path;
-         $conf[$c] = init_path($path);
-         if(empty($conf[$c]))
-             nice_die("The $c ('$p') at $path is not found, isn't accessible or writable.
 diff --git a/install.php b/install.php
 index 80e9ad4..fe72513 100644
 --- a/install.php
This page took 0.11806 seconds and 4 git commands to generate.