[packages/php-eaccelerator] add banner about need to purge disk cache on upgrade
glen
glen at pld-linux.org
Tue Apr 29 08:31:35 CEST 2014
commit 9857e5b00d61da07748905d22c8e4d9ba77e738c
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Tue Apr 29 09:30:54 2014 +0300
add banner about need to purge disk cache on upgrade
https://github.com/eaccelerator/eaccelerator/commit/2108ccb6f515e5838edf3f0f58b553084154f997
or maybe should we automate it after version change with a trigger?
php-eaccelerator.spec | 25 +++++++++++++++++--------
1 file changed, 17 insertions(+), 8 deletions(-)
---
diff --git a/php-eaccelerator.spec b/php-eaccelerator.spec
index bf01f2c..11225a4 100644
--- a/php-eaccelerator.spec
+++ b/php-eaccelerator.spec
@@ -1,4 +1,3 @@
-#
%define pkgname eaccelerator
Summary: eAccelerator module for PHP
Summary(pl.UTF-8): Moduł eAccelerator dla PHP
@@ -10,14 +9,14 @@ Group: Libraries
Source0: http://bart.eaccelerator.net/source/%{version}/%{pkgname}-%{version}.tar.bz2
# Source0-md5: 32ccd838e06ef5613c2610c1c65ed228
Source1: %{pkgname}.ini
-URL: https://eaccelerator.net/
+URL: http://www.eaccelerator.net/
BuildRequires: php-devel >= 3:5.1.0
BuildRequires: rpmbuild(macros) >= 1.344
%requires_eq php-common
%{?requires_php_extension}
Requires: php(core) >= 5.1.0
-Requires: php-session
-Requires: php-zlib
+Requires: php(session)
+Requires: php(zlib)
Conflicts: php-mmcache
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -96,12 +95,12 @@ phpize
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{php_extensiondir},%{_bindir},%{php_sysconfdir}/conf.d,/var/cache/%{pkgname},%{_sysconfdir},%{_appdir},/etc/tmpwatch}
-install modules/eaccelerator.so $RPM_BUILD_ROOT%{php_extensiondir}
-install %{SOURCE1} $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{pkgname}.ini
+install -p modules/eaccelerator.so $RPM_BUILD_ROOT%{php_extensiondir}
+cp -p %{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 httpd.conf $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
+cp -p apache.conf $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
+cp -p httpd.conf $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
echo "/var/cache/%{pkgname} 720" > $RPM_BUILD_ROOT/etc/tmpwatch/%{name}.conf
@@ -122,6 +121,16 @@ rm -rf $RPM_BUILD_ROOT
%post
%php_webserver_restart
+%banner %{name} <<EOF
++-------------------------------------------------------+
+| !!! Attention !!! |
+| |
+| For disk cache users (using eaccelerator.shm_only=0): |
+| |
+| Please remember to empty your eAccelerator disk cache |
+| when upgrading, otherwise things will break! |
++-------------------------------------------------------+
+EOF
%postun
if [ "$1" = 0 ]; then
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/php-eaccelerator.git/commitdiff/9857e5b00d61da07748905d22c8e4d9ba77e738c
More information about the pld-cvs-commit
mailing list