SPECS: phpBB.spec - never use '<=' in trigger comparision (drop ol...
glen
glen at pld-linux.org
Wed Feb 6 21:55:42 CET 2008
Author: glen Date: Wed Feb 6 20:55:42 2008 GMT
Module: SPECS Tag: HEAD
---- Log message:
- never use '<=' in trigger comparision (drop old triggers); rel 3
---- Files affected:
SPECS:
phpBB.spec (1.97 -> 1.98)
---- Diffs:
================================================================
Index: SPECS/phpBB.spec
diff -u SPECS/phpBB.spec:1.97 SPECS/phpBB.spec:1.98
--- SPECS/phpBB.spec:1.97 Tue Feb 13 09:06:40 2007
+++ SPECS/phpBB.spec Wed Feb 6 21:55:37 2008
@@ -3,7 +3,7 @@
Summary(pl.UTF-8): Forum dyskusyjne o dużych możliwościach
Name: phpBB
Version: 2.0.21
-Release: 2
+Release: 3
License: GPL v2
Group: Applications/WWW
Source0: http://dl.sourceforge.net/phpbb/%{name}-%{version}.tar.bz2
@@ -128,52 +128,6 @@
%triggerun -- apache < 2.2.0, apache-base
%webapp_unregister httpd %{_webapp}
-%triggerpostun -- %{name} <= 2.0.10-1
-for i in `grep -lr "/home/\(services/\)*httpd/html/phpBB" /etc/httpd/*`; do
- cp $i $i.backup
- sed -i -e "s#/home/httpd/html/phpBB#%{_appdir}#g" $i
- sed -i -e "s#/home/services/httpd/html/phpBB#%{_appdir}#g" $i
- echo "File changed by trigger: $i (backup: $i.backup)"
-done
-
-%triggerpostun -- %{name} < 2.0.19-0.5
-# rescue app config from various old locations
-for i in config.php favicon.ico robots.txt; do
- if [ -f /home/services/httpd/html/phpBB/$i.rpmsave ]; then
- mv -f %{_sysconfdir}/$i{,.rpmnew}
- mv -f /home/services/httpd/html/phpBB/$i.rpmsave %{_sysconfdir}/$i
- fi
-done
-
-for i in config.php favicon.ico robots.txt; do
- if [ -f /home/httpd/html/phpBB/$i.rpmsave ]; then
- mv -f %{_sysconfdir}/$i{,.rpmnew}
- mv -f /home/httpd/html/phpBB/$i.rpmsave %{_sysconfdir}/$i
- fi
-done
-
-for i in config.php favicon.ico robots.txt; do
- if [ -f /etc/%{name}/$i.rpmsave ]; then
- mv -f %{_sysconfdir}/$i{,.rpmnew}
- mv -f /etc/%{name}/$i.rpmsave %{_sysconfdir}/$i
- fi
-done
-
-# nuke very-old config location (this mostly for Ra)
-if [ -f /etc/httpd/httpd.conf ]; then
- sed -i -e "/^Include.*%{name}.conf/d" /etc/httpd/httpd.conf
-fi
-
-# migrate from httpd (apache2) config dir
-if [ -f /etc/httpd/%{name}.conf.rpmsave ]; then
- cp -f %{_sysconfdir}/httpd.conf{,.rpmnew}
- mv -f /etc/httpd/%{name}.conf.rpmsave %{_sysconfdir}/httpd.conf
-fi
-
-rm -f /etc/httpd/httpd.conf/99_%{name}.conf
-/usr/sbin/webapp register httpd %{_webapp}
-%service -q httpd reload
-
%files
%defattr(644,root,root,755)
%dir %attr(750,root,http) %{_sysconfdir}
@@ -228,6 +182,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.98 2008-02-06 20:55:37 glen
+- never use '<=' in trigger comparision (drop old triggers); rel 3
+
Revision 1.97 2007-02-13 08:06:40 glen
- tabs in preamble
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/phpBB.spec?r1=1.97&r2=1.98&f=u
More information about the pld-cvs-commit
mailing list