]> git.pld-linux.org Git - packages/php-xcache.git/commitdiff
- migrated to apache 2.4 auto/ac/php-xcache-3.0.1-2 auto/th/php-xcache-3.0.1-2 auto/ti/php-xcache-3.0.1-2
authorJan Rękorajski <baggins@pld-linux.org>
Thu, 16 May 2013 19:42:45 +0000 (21:42 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Thu, 16 May 2013 19:42:45 +0000 (21:42 +0200)
php-xcache.spec
xcache-httpd.conf [new file with mode: 0644]

index a3c6be32ff01fb262298c16b69e26fb790f5daa2..4c9a37842cb5015a7084ac9de4d98e65229e7474 100644 (file)
@@ -6,7 +6,7 @@ Summary:        %{modname} - PHP opcode cacher
 Summary(pl.UTF-8):     %{modname} - buforowanie opcodów PHP
 Name:          %{php_name}-%{modname}
 Version:       3.0.1
 Summary(pl.UTF-8):     %{modname} - buforowanie opcodów PHP
 Name:          %{php_name}-%{modname}
 Version:       3.0.1
-Release:       1
+Release:       2
 License:       BSD
 Group:         Development/Languages/PHP
 URL:           http://xcache.lighttpd.net/
 License:       BSD
 Group:         Development/Languages/PHP
 URL:           http://xcache.lighttpd.net/
@@ -14,6 +14,7 @@ Source0:      http://xcache.lighttpd.net/pub/Releases/%{version}/xcache-%{version}.ta
 # Source0-md5: 45086010bc4f82f506c08be1c556941b
 Source1:       %{modname}-apache.conf
 Source2:       %{modname}-lighttpd.conf
 # Source0-md5: 45086010bc4f82f506c08be1c556941b
 Source1:       %{modname}-apache.conf
 Source2:       %{modname}-lighttpd.conf
+Source3:       %{modname}-httpd.conf
 Patch0:                config.patch
 BuildRequires: %{php_name}-devel >= 4:5.2.17-8
 BuildRequires: rpmbuild(macros) >= 1.344
 Patch0:                config.patch
 BuildRequires: %{php_name}-devel >= 4:5.2.17-8
 BuildRequires: rpmbuild(macros) >= 1.344
@@ -42,6 +43,7 @@ Group:                Libraries
 Requires:      %{name} = %{version}-%{release}
 Requires:      webapps
 Requires:      webserver(php) >= 5.0
 Requires:      %{name} = %{version}-%{release}
 Requires:      webapps
 Requires:      webserver(php) >= 5.0
+Conflicts:     apache-base < 2.4.0-1
 
 %description web
 Via this web interface script you can manage and view statistics of
 
 %description web
 Via this web interface script you can manage and view statistics of
@@ -101,7 +103,7 @@ ln -s %{_sysconfdir}/config.php $RPM_BUILD_ROOT%{_appdir}/config.php
 ln -s %{_sysconfdir}/cacher.config.php $RPM_BUILD_ROOT%{_appdir}/cacher/config.php
 ln -s %{_sysconfdir}/coverager.config.php $RPM_BUILD_ROOT%{_appdir}/coverager/config.php
 cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
 ln -s %{_sysconfdir}/cacher.config.php $RPM_BUILD_ROOT%{_appdir}/cacher/config.php
 ln -s %{_sysconfdir}/coverager.config.php $RPM_BUILD_ROOT%{_appdir}/coverager/config.php
 cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
-cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
+cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
 cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/lighttpd.conf
 
 %clean
 cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/lighttpd.conf
 
 %clean
@@ -124,10 +126,10 @@ fi
 %triggerun web -- apache1 < 1.3.37-3, apache1-base
 %webapp_unregister apache %{_webapp}
 
 %triggerun web -- apache1 < 1.3.37-3, apache1-base
 %webapp_unregister apache %{_webapp}
 
-%triggerin web -- apache < 2.2.0, apache-base
+%triggerin web -- apache-base
 %webapp_register httpd %{_webapp}
 
 %webapp_register httpd %{_webapp}
 
-%triggerun web -- apache < 2.2.0, apache-base
+%triggerun web -- apache-base
 %webapp_unregister httpd %{_webapp}
 
 %triggerin web -- lighttpd
 %webapp_unregister httpd %{_webapp}
 
 %triggerin web -- lighttpd
diff --git a/xcache-httpd.conf b/xcache-httpd.conf
new file mode 100644 (file)
index 0000000..27f928c
--- /dev/null
@@ -0,0 +1,9 @@
+# allow from localhost
+#
+# NOTE: you should set xcache.admin.user and xcache.admin.pass php.ini settings
+# to access it.
+
+Alias /xcache /usr/share/xcache
+<Directory /usr/share/xcache>
+       Require local
+</Directory>
This page took 0.14471 seconds and 4 git commands to generate.