]> git.pld-linux.org Git - packages/dokuwiki.git/commitdiff
- set memory limit and unify cli apps
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 31 Aug 2009 11:26:19 +0000 (11:26 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    cliapps.patch -> 1.1
    dokuwiki.spec -> 1.54

cliapps.patch [new file with mode: 0644]
dokuwiki.spec

diff --git a/cliapps.patch b/cliapps.patch
new file mode 100644 (file)
index 0000000..fe251a0
--- /dev/null
@@ -0,0 +1,26 @@
+--- dokuwiki/bin/dwpage.php    2009-02-14 14:13:24.000000000 +0200
++++ dokuwiki/bin/dwpage.php    2009-08-07 15:09:50.000000000 +0300
+@@ -1,8 +1,9 @@
+ #!/usr/bin/php -d short_open_tag=on
+ <?php
+-#------------------------------------------------------------------------------
+ if ('cli' != php_sapi_name()) die();
++#------------------------------------------------------------------------------
++ini_set('memory_limit','128M');
+ if(!defined('DOKU_INC')) define('DOKU_INC',realpath(dirname(__FILE__).'/../').'/');
+ require_once DOKU_INC.'inc/init.php';
+ require_once DOKU_INC.'inc/common.php';
+--- dokuwiki/bin/indexer.php   2009-02-14 14:13:24.000000000 +0200
++++ dokuwiki/bin/indexer.php   2009-08-07 15:04:00.000000000 +0300
+@@ -1,7 +1,9 @@
+-#!/usr/bin/php
++#!/usr/bin/php -d short_open_tag=on
+ <?php
+ if ('cli' != php_sapi_name()) die();
++#------------------------------------------------------------------------------
++ini_set('memory_limit','128M');
+ if(!defined('DOKU_INC')) define('DOKU_INC',realpath(dirname(__FILE__).'/../').'/');
+ require_once(DOKU_INC.'inc/init.php');
+ require_once(DOKU_INC.'inc/common.php');
index 0445cf82f6b538e84bebc98f980bf66ed322889b..755484dc8fdabf481d34fe670eca8c6b73a6f16d 100644 (file)
@@ -33,6 +33,7 @@ Patch12:      %{name}-mailthreads.patch
 Patch13:       %{name}-media-directlink.patch
 Patch14:       interwiki-outputonly.patch
 Patch15:       simplepie.patch
+Patch16:       cliapps.patch
 URL:           http://wiki.splitbrain.org/wiki:dokuwiki
 BuildRequires: rpmbuild(macros) >= 1.520
 Requires:      geshi >= 1.0.7.19
@@ -106,6 +107,7 @@ pozostawienie plików instalacyjnych mogłoby być niebezpieczne.
 %patch13 -p1
 %patch14 -p1
 %patch15 -p1
+%patch16 -p1
 
 find -name _dummy | xargs rm
 rm -f lib/index.html lib/plugins/index.html
This page took 0.057652 seconds and 4 git commands to generate.