SPECS: phpBB.spec - added favicon.ico, robots.txt to trigger
dzeus
dzeus at pld-linux.org
Sun Jan 22 19:38:48 CET 2006
Author: dzeus Date: Sun Jan 22 18:38:48 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- added favicon.ico, robots.txt to trigger
---- Files affected:
SPECS:
phpBB.spec (1.84 -> 1.85)
---- Diffs:
================================================================
Index: SPECS/phpBB.spec
diff -u SPECS/phpBB.spec:1.84 SPECS/phpBB.spec:1.85
--- SPECS/phpBB.spec:1.84 Sun Jan 22 17:17:44 2006
+++ SPECS/phpBB.spec Sun Jan 22 19:38:42 2006
@@ -7,7 +7,7 @@
Name: phpBB
Version: 2.0.19
%define fver 20195
-Release: 0.7
+Release: 0.9
License: GPL v2
Group: Applications/WWW
Source0: http://dl.sourceforge.net/phpbb-php5mod/%{fver}.tar.bz2
@@ -148,20 +148,26 @@
%triggerpostun -- %{name} < 2.0.19-0.5
# rescue app config from various old locations
-if [ -f /home/services/httpd/html/phpBB/config.php.rpmsave ]; then
- mv -f %{_sysconfdir}/config.php{,.rpmnew}
- mv -f /home/services/httpd/html/phpBB/config.php.rpmsave %{_sysconfdir}/config.php
-fi
+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
-if [ -f /home/httpd/html/phpBB/config.php.rpmsave ]; then
- mv -f %{_sysconfdir}/config.php{,.rpmnew}
- mv -f /home/httpd/html/phpBB/config.php.rpmsave %{_sysconfdir}/config.php
-fi
+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
-if [ -f /etc/%{name}/config.php.rpmsave ]; then
- mv -f %{_sysconfdir}/config.php{,.rpmnew}
- mv -f /etc/%{name}/config.php.rpmsave %{_sysconfdir}/config.php
-fi
+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
@@ -228,6 +234,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.85 2006/01/22 18:38:42 dzeus
+- added favicon.ico, robots.txt to trigger
+
Revision 1.84 2006/01/22 16:17:44 glen
- more sane way to write %post (= %triggerpostun -- %{name} < %{version})
- corrected changelog header
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/phpBB.spec?r1=1.84&r2=1.85&f=u
More information about the pld-cvs-commit
mailing list