]> git.pld-linux.org Git - packages/php-pecl-memcache.git/commitdiff
- load ourselves after session module; rel 2 auto/ac/php-pecl-memcache-3_0_4-2
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 23 Sep 2009 08:58:28 +0000 (08:58 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    php-pecl-memcache.spec -> 1.38

php-pecl-memcache.spec

index 2c5a2feda9ba2d16d4e2383adcdf35dbc5684cef..81e402df2a5380eafb81fa15d25a2c0c5b12803b 100644 (file)
@@ -3,7 +3,7 @@ Summary:        %{modname} - a memcached extension
 Summary(pl.UTF-8):     %{modname} - rozszerzenie memcached
 Name:          php-pecl-%{modname}
 Version:       3.0.4
-Release:       1
+Release:       2
 License:       PHP 3.01
 Group:         Development/Languages/PHP
 Source0:       http://pecl.php.net/get/%{modname}-%{version}.tgz
@@ -49,7 +49,7 @@ rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{php_sysconfdir}/conf.d,%{php_extensiondir},%{_examplesdir}/%{name}-%{version}}
 
 install modules/%{modname}.so $RPM_BUILD_ROOT%{php_extensiondir}
-cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{modname}.ini
+cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/session_%{modname}.ini
 ; Enable %{modname} extension module
 extension=%{modname}.so
 ;memcache.allow_failover=1
@@ -74,9 +74,17 @@ if [ "$1" = 0 ]; then
        %php_webserver_restart
 fi
 
+%triggerpostun -- %{name} < 3.0.4-2
+if [ -f %{php_sysconfdir}/conf.d/%{modname}.ini.rpmsave ]; then
+       echo >&2 "Restoring old config: %{modname}.ini.rpmsave -> session_%{modname}.ini in %{php_sysconfdir}/conf.d"
+       cp -f %{php_sysconfdir}/conf.d/session_%{modname}.ini{,.rpmnew}
+       mv -f %{php_sysconfdir}/conf.d/{%{modname}.ini.rpmsave,session_%{modname}.ini}
+       %php_webserver_restart
+fi
+
 %files
 %defattr(644,root,root,755)
 %doc CREDITS README
-%config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{modname}.ini
+%config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/session_%{modname}.ini
 %attr(755,root,root) %{php_extensiondir}/%{modname}.so
 %{_examplesdir}/%{name}-%{version}
This page took 0.075932 seconds and 4 git commands to generate.