update to 5.4.4, use /usr/lib/tmpfiles.d/php-fpm and /run/php-fpm
This commit is contained in:
parent
9f5d563e80
commit
922e10e22d
11
.gitignore
vendored
11
.gitignore
vendored
@ -1,11 +1,2 @@
|
|||||||
php.spec~
|
php.spec~
|
||||||
/php-5.3.7.tar.bz2
|
/php-5.4.4.tar.bz2
|
||||||
/php-5.3.8.tar.bz2
|
|
||||||
/php-5.4.0RC6.tar.bz2
|
|
||||||
/php-5.4.0RC7.tar.bz2
|
|
||||||
/php-5.4.0RC8.tar.bz2
|
|
||||||
/php-5.4.0.tar.bz2
|
|
||||||
/php-5.?.?
|
|
||||||
/php-5.4.1.tar.bz2
|
|
||||||
/php-5.4.2.tar.bz2
|
|
||||||
/php-5.4.3.tar.bz2
|
|
||||||
|
@ -17,7 +17,7 @@ include=/etc/php-fpm.d/*.conf
|
|||||||
[global]
|
[global]
|
||||||
; Pid file
|
; Pid file
|
||||||
; Default Value: none
|
; Default Value: none
|
||||||
pid = /var/run/php-fpm/php-fpm.pid
|
pid = /run/php-fpm/php-fpm.pid
|
||||||
|
|
||||||
; Error log file
|
; Error log file
|
||||||
; Default Value: /var/log/php-fpm.log
|
; Default Value: /var/log/php-fpm.log
|
||||||
|
@ -4,6 +4,6 @@
|
|||||||
sharedscripts
|
sharedscripts
|
||||||
delaycompress
|
delaycompress
|
||||||
postrotate
|
postrotate
|
||||||
/bin/kill -SIGUSR1 `cat /var/run/php-fpm/php-fpm.pid 2>/dev/null` 2>/dev/null || true
|
/bin/kill -SIGUSR1 `cat /run/php-fpm/php-fpm.pid 2>/dev/null` 2>/dev/null || true
|
||||||
endscript
|
endscript
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,7 @@ After=syslog.target network.target
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=forking
|
Type=forking
|
||||||
PIDFile=/var/run/php-fpm/php-fpm.pid
|
PIDFile=/run/php-fpm/php-fpm.pid
|
||||||
EnvironmentFile=/etc/sysconfig/php-fpm
|
EnvironmentFile=/etc/sysconfig/php-fpm
|
||||||
ExecStart=/usr/sbin/php-fpm
|
ExecStart=/usr/sbin/php-fpm
|
||||||
ExecReload=/bin/kill -USR2 $MAINPID
|
ExecReload=/bin/kill -USR2 $MAINPID
|
||||||
|
19
php.spec
19
php.spec
@ -55,7 +55,7 @@
|
|||||||
|
|
||||||
Summary: PHP scripting language for creating dynamic web sites
|
Summary: PHP scripting language for creating dynamic web sites
|
||||||
Name: php
|
Name: php
|
||||||
Version: 5.4.3
|
Version: 5.4.4
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
License: PHP
|
License: PHP
|
||||||
Group: Development/Languages
|
Group: Development/Languages
|
||||||
@ -667,7 +667,7 @@ find . -name \*.[ch] -exec chmod 644 {} \;
|
|||||||
chmod 644 README.*
|
chmod 644 README.*
|
||||||
|
|
||||||
# php-fpm configuration files for tmpfiles.d
|
# php-fpm configuration files for tmpfiles.d
|
||||||
echo "d %{_localstatedir}/run/php-fpm 755 root root" >php-fpm.tmpfiles
|
echo "d /run/php-fpm 755 root root" >php-fpm.tmpfiles
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
@ -1031,15 +1031,15 @@ install -m 700 -d $RPM_BUILD_ROOT%{_localstatedir}/lib/php/session
|
|||||||
# PHP-FPM stuff
|
# PHP-FPM stuff
|
||||||
# Log
|
# Log
|
||||||
install -m 755 -d $RPM_BUILD_ROOT%{_localstatedir}/log/php-fpm
|
install -m 755 -d $RPM_BUILD_ROOT%{_localstatedir}/log/php-fpm
|
||||||
install -m 755 -d $RPM_BUILD_ROOT%{_localstatedir}/run/php-fpm
|
install -m 755 -d $RPM_BUILD_ROOT/run/php-fpm
|
||||||
# Config
|
# Config
|
||||||
install -m 755 -d $RPM_BUILD_ROOT%{_sysconfdir}/php-fpm.d
|
install -m 755 -d $RPM_BUILD_ROOT%{_sysconfdir}/php-fpm.d
|
||||||
install -m 644 %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/php-fpm.conf
|
install -m 644 %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/php-fpm.conf
|
||||||
install -m 644 %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/php-fpm.d/www.conf
|
install -m 644 %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/php-fpm.d/www.conf
|
||||||
mv $RPM_BUILD_ROOT%{_sysconfdir}/php-fpm.conf.default .
|
mv $RPM_BUILD_ROOT%{_sysconfdir}/php-fpm.conf.default .
|
||||||
# tmpfiles.d
|
# tmpfiles.d
|
||||||
install -m 755 -d $RPM_BUILD_ROOT%{_sysconfdir}/tmpfiles.d
|
install -m 755 -d $RPM_BUILD_ROOT%{_prefix}/lib/tmpfiles.d
|
||||||
install -m 644 php-fpm.tmpfiles $RPM_BUILD_ROOT%{_sysconfdir}/tmpfiles.d/php-fpm.conf
|
install -m 644 php-fpm.tmpfiles $RPM_BUILD_ROOT%{_prefix}/lib/tmpfiles.d/php-fpm.conf
|
||||||
# install systemd unit files and scripts for handling server startup
|
# install systemd unit files and scripts for handling server startup
|
||||||
install -m 755 -d $RPM_BUILD_ROOT%{_unitdir}
|
install -m 755 -d $RPM_BUILD_ROOT%{_unitdir}
|
||||||
install -m 644 %{SOURCE6} $RPM_BUILD_ROOT%{_unitdir}/
|
install -m 644 %{SOURCE6} $RPM_BUILD_ROOT%{_unitdir}/
|
||||||
@ -1219,13 +1219,13 @@ fi
|
|||||||
%config(noreplace) %{_sysconfdir}/php-fpm.d/www.conf
|
%config(noreplace) %{_sysconfdir}/php-fpm.d/www.conf
|
||||||
%config(noreplace) %{_sysconfdir}/logrotate.d/php-fpm
|
%config(noreplace) %{_sysconfdir}/logrotate.d/php-fpm
|
||||||
%config(noreplace) %{_sysconfdir}/sysconfig/php-fpm
|
%config(noreplace) %{_sysconfdir}/sysconfig/php-fpm
|
||||||
%config(noreplace) %{_sysconfdir}/tmpfiles.d/php-fpm.conf
|
%{_prefix}/lib/tmpfiles.d/php-fpm.conf
|
||||||
%{_unitdir}/php-fpm.service
|
%{_unitdir}/php-fpm.service
|
||||||
%{_sbindir}/php-fpm
|
%{_sbindir}/php-fpm
|
||||||
%dir %{_sysconfdir}/php-fpm.d
|
%dir %{_sysconfdir}/php-fpm.d
|
||||||
# log owned by apache for log
|
# log owned by apache for log
|
||||||
%attr(770,apache,root) %dir %{_localstatedir}/log/php-fpm
|
%attr(770,apache,root) %dir %{_localstatedir}/log/php-fpm
|
||||||
%dir %{_localstatedir}/run/php-fpm
|
%dir /run/php-fpm
|
||||||
%{_mandir}/man8/php-fpm.8*
|
%{_mandir}/man8/php-fpm.8*
|
||||||
%{_datadir}/fpm/status.html
|
%{_datadir}/fpm/status.html
|
||||||
%endif
|
%endif
|
||||||
@ -1278,6 +1278,11 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Jun 14 2012 Remi Collet <remi@fedoraproject.org> 5.4.4-1
|
||||||
|
- update to 5.4.4 finale
|
||||||
|
- use /usr/lib/tmpfiles.d instead of /etc/tmpfiles.d
|
||||||
|
- use /run/php-fpm instead of /var/run/php-fpm
|
||||||
|
|
||||||
* Wed May 09 2012 Remi Collet <remi@fedoraproject.org> 5.4.3-1
|
* Wed May 09 2012 Remi Collet <remi@fedoraproject.org> 5.4.3-1
|
||||||
- update to 5.4.3 (CVE-2012-2311, CVE-2012-2329)
|
- update to 5.4.3 (CVE-2012-2311, CVE-2012-2329)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user