commit 1d65fe6e38181b231ba63a24887609dfd5a32800
Author: Jan Rękorajski <[email protected]>
Date:   Thu May 16 21:36:03 2013 +0200

    - migrated to apache 2.4

 php-eaccelerator.spec | 16 ++++++++++++----
 1 file changed, 12 insertions(+), 4 deletions(-)
---
diff --git a/php-eaccelerator.spec b/php-eaccelerator.spec
index 36c6294..bac5824 100644
--- a/php-eaccelerator.spec
+++ b/php-eaccelerator.spec
@@ -4,7 +4,7 @@ Summary:        eAccelerator module for PHP
 Summary(pl.UTF-8):     Moduł eAccelerator dla PHP
 Name:          php-%{pkgname}
 Version:       0.9.6.1
-Release:       24
+Release:       25
 License:       GPL
 Group:         Libraries
 Source0:       
http://bart.eaccelerator.net/source/%{version}/%{pkgname}-%{version}.tar.bz2
@@ -45,6 +45,7 @@ Group:                Libraries
 Requires:      %{name} = %{epoch}:%{version}-%{release}
 Requires:      webapps
 Requires:      webserver(php)
+Conflicts:     apache-base < 2.4.0-1
 
 %description webinterface
 PHP Accelerator can be managed through web interface script
@@ -74,6 +75,13 @@ Alias /%{_webapp} %{_appdir}
 </Directory>
 EOF
 
+cat > httpd.conf <<EOF
+Alias /%{_webapp} %{_appdir}
+<Directory %{_appdir}/>
+       Require local
+</Directory>
+EOF
+
 %build
 phpize
 %configure \
@@ -93,7 +101,7 @@ install %{SOURCE1} 
$RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{pkgname}.ini
 
 cp -a {PHP_Highlight,control,dasm}.php $RPM_BUILD_ROOT%{_appdir}
 install apache.conf $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
-install apache.conf $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
+install httpd.conf $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
 
 echo "/var/cache/%{pkgname} 720" > $RPM_BUILD_ROOT/etc/tmpwatch/%{name}.conf
 
@@ -106,10 +114,10 @@ rm -rf $RPM_BUILD_ROOT
 %triggerun webinterface -- apache1 < 1.3.37-3, apache1-base
 %webapp_unregister apache %{_webapp}
 
-%triggerin webinterface -- apache < 2.2.0, apache-base
+%triggerin webinterface -- apache-base
 %webapp_register httpd %{_webapp}
 
-%triggerun webinterface -- apache < 2.2.0, apache-base
+%triggerun webinterface -- apache-base
 %webapp_unregister httpd %{_webapp}
 
 %post
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php-eaccelerator.git/commitdiff/1d65fe6e38181b231ba63a24887609dfd5a32800

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to