--- /dev/null
+--- xcache-3.0.0/xcache.ini~ 2012-10-18 10:49:34.000000000 +0300
++++ xcache-3.0.0/xcache.ini 2012-11-21 17:37:53.122003769 +0200
+@@ -1,9 +1,5 @@
+-;; this is an example, it won't work unless properly configured into php.ini
+ [xcache-common]
+-;; non-Windows example:
+-extension = xcache.so
+-;; Windows example:
+-; extension = php_xcache.dll
++extension = @extensiondir@/xcache.so
+
+ [xcache.admin]
+ xcache.admin.enable_auth = On
+--- xcache-3.0.0/htdocs/common/common.php~ 2012-10-18 10:49:31.000000000 +0300
++++ xcache-3.0.0/htdocs/common/common.php 2012-11-21 19:41:43.568179416 +0200
+@@ -248,16 +248,7 @@
+ ini_set('magic_quotes_runtime', '0');
+
+ $config = array();
+-if (file_exists("./config.default.php")) {
+- include "./config.default.php";
+-}
+-include "../config.default.php";
+-if (file_exists("../config.php")) {
+- include "../config.php";
+-}
+-if (file_exists("./config.php")) {
+- include "./config.php";
+-}
++include "../config.php";
+
+ $strings = array();
+ include get_language_file("../common/lang");
+++ /dev/null
---- xcache-3.0.0/xcache.ini~ 2012-10-18 10:49:34.000000000 +0300
-+++ xcache-3.0.0/xcache.ini 2012-11-21 17:37:53.122003769 +0200
-@@ -1,9 +1,5 @@
--;; this is an example, it won't work unless properly configured into php.ini
- [xcache-common]
--;; non-Windows example:
--extension = xcache.so
--;; Windows example:
--; extension = php_xcache.dll
-+extension = @extensiondir@/xcache.so
-
- [xcache.admin]
- xcache.admin.enable_auth = On
Summary(pl.UTF-8): %{modname} - buforowanie opcodów PHP
Name: php-%{modname}
Version: 3.0.0
-Release: 0.5
+Release: 0.6
License: BSD
Group: Development/Languages/PHP
URL: http://xcache.lighttpd.net/
# Source0-md5: 63be7c8b14ffc01babe5378111f13228
Source1: %{modname}-apache.conf
Source2: %{modname}-lighttpd.conf
-Patch0: ini.patch
+Patch0: config.patch
BuildRequires: php-devel >= 4:5.2.17-8
BuildRequires: rpmbuild(macros) >= 1.344
BuildRequires: sed >= 4.0