[packages/php] - rel 2; switch module name to mod_php.so (first step to using alternatives and allowing apache-mod_

arekm arekm at pld-linux.org
Mon Oct 5 12:52:09 CEST 2015


commit c0917211973f50bdb37e225247b334313903ff1b
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Mon Oct 5 12:52:02 2015 +0200

    - rel 2; switch module name to mod_php.so (first step to using alternatives and allowing apache-mod_php coexistence)

 php-mod_php.conf | 2 +-
 php.spec         | 9 ++++++---
 2 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/php.spec b/php.spec
index 839aeef..4359a9e 100644
--- a/php.spec
+++ b/php.spec
@@ -140,7 +140,7 @@
 %undefine	with_filter
 %endif
 
-%define		rel	1
+%define		rel	2
 %define		subver	RC4
 %define		orgname	php
 %define		ver_suffix 70
@@ -2523,7 +2523,7 @@ v=$(echo %{version} | cut -d. -f1-2)
 %if %{with apache2}
 libtool --mode=install install -p sapi/apache2handler/libphp7.la $RPM_BUILD_ROOT%{_libdir}/apache
 mv $RPM_BUILD_ROOT%{_libdir}/apache/libphp7{,-$v}.so
-ln -s libphp7-$v.so $RPM_BUILD_ROOT%{_libdir}/apache/libphp7.so
+ln -s libphp7-$v.so $RPM_BUILD_ROOT%{_libdir}/apache/mod_php.so
 %endif
 
 # install litespeed sapi
@@ -2731,6 +2731,9 @@ if [ ! -e /usr/share/browscap/php_browscap.ini ]; then
 	%{__sed} -i -e 's#^browscap = /usr/share/browscap/php_browscap.ini#;&#' %{_sysconfdir}/php.ini
 fi
 
+%triggerpostun -n apache-mod_%{name} -- apache-mod_%{name} < 4:7.0.0-2.RC4
+sed -i -e 's#modules/libphp[57].so#modules/mod_php.so#g' /etc/httpd/conf.d/*_mod_php.conf
+
 # common macros called at extension post/postun scriptlet
 %define	extension_scripts() \
 %post %1 \
@@ -2818,7 +2821,7 @@ fi
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/httpd/conf.d/*_mod_php.conf
 %dir %{_sysconfdir}/apache2handler.d
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-apache2handler.ini
-%attr(755,root,root) %{_libdir}/apache/libphp7.so
+%attr(755,root,root) %{_libdir}/apache/mod_php.so
 %attr(755,root,root) %{_libdir}/apache/libphp7-*.*.so
 %endif
 
diff --git a/php-mod_php.conf b/php-mod_php.conf
index a5f5f59..7619b67 100644
--- a/php-mod_php.conf
+++ b/php-mod_php.conf
@@ -1,4 +1,4 @@
-LoadModule php5_module modules/libphp5.so
+LoadModule php7_module modules/mod_php.so
 
 <IfModule mod_php5.c>
 	<Files *.php>
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php.git/commitdiff/c0917211973f50bdb37e225247b334313903ff1b



More information about the pld-cvs-commit mailing list