SPECS: mysqlstat.spec - drop triggers
glen
glen at pld-linux.org
Fri May 19 23:34:19 CEST 2006
Author: glen Date: Fri May 19 21:34:19 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- drop triggers
---- Files affected:
SPECS:
mysqlstat.spec (1.43 -> 1.44)
---- Diffs:
================================================================
Index: SPECS/mysqlstat.spec
diff -u SPECS/mysqlstat.spec:1.43 SPECS/mysqlstat.spec:1.44
--- SPECS/mysqlstat.spec:1.43 Mon May 15 11:24:05 2006
+++ SPECS/mysqlstat.spec Fri May 19 23:34:14 2006
@@ -156,69 +156,6 @@
%triggerun cgi -- apache < 2.2.0, apache-base
%webapp_unregister httpd %{_webapp}
-%triggerpostun cgi -- mysqlstat-cgi < 0.0.0.4-2.10
-# config path changed, trigger it
-if [ -f /etc/httpd/mysqlstat.conf.rpmsave ]; then
- cp -f %{_sysconfdir}/apache-%{name}.conf{,.rpmnew}
- mv -f /etc/httpd/mysqlstat.conf.rpmsave %{_sysconfdir}/apache-%{name}.conf
-fi
-if [ -d /etc/httpd/httpd.conf ]; then
- ln -sf %{_sysconfdir}/apache-%{name}.conf /etc/httpd/httpd.conf/99_%{name}.conf
- if [ -f /var/lock/subsys/httpd ]; then
- /etc/rc.d/init.d/httpd reload 1>&2
- fi
-fi
-
-%triggerpostun -- %{name} < 0.0.0.4-2.14
-echo >&2 "IMPORTANT: Renaming .rrd files to .old as the file format has changed!"
-for a in /var/lib/%{name}/*.rrd; do
- mv -v $a $a.old
-done
-
-%triggerpostun cgi -- mysqlstat-cgi < 0.0.0.4-5.1
-# migrate from apache-config macros
-if [ -f /etc/mysqlstat/apache-mysqlstat.conf.rpmsave ]; then
- if [ -d /etc/apache/webapps.d ]; then
- cp -f %{_sysconfdir}/apache.conf{,.rpmnew}
- cp -f /etc/mysqlstat/apache-mysqlstat.conf.rpmsave %{_sysconfdir}/apache.conf
- fi
-
- if [ -d /etc/httpd/webapps.d ]; then
- cp -f %{_sysconfdir}/httpd.conf{,.rpmnew}
- cp -f /etc/mysqlstat/apache-mysqlstat.conf.rpmsave %{_sysconfdir}/httpd.conf
- fi
- rm -f /etc/mysqlstat/apache-mysqlstat.conf.rpmsave
-fi
-
-# place new config location, as trigger puts config only on first install, do it here.
-if [ -d /etc/apache/webapps.d ]; then
- /usr/sbin/webapp register apache %{_webapp}
- apache_reload=1
-fi
-if [ -d /etc/httpd/webapps.d ]; then
- /usr/sbin/webapp register httpd %{_webapp}
- httpd_reload=1
-fi
-
-# register webapp on apaches which were registered earlier
-if [ -L /etc/apache/conf.d/99_mysqlstat.conf ]; then
- rm -f /etc/apache/conf.d/99_mysqlstat.conf
- /usr/sbin/webapp register apache %{_webapp}
- apache_reload=1
-fi
-if [ -L /etc/httpd/httpd.conf/99_mysqlstat.conf ]; then
- rm -f /etc/httpd/httpd.conf/99_mysqlstat.conf
- /usr/sbin/webapp register httpd %{_webapp}
- httpd_reload=1
-fi
-
-if [ "$httpd_reload" ]; then
- %service -q httpd reload
-fi
-if [ "$apache_reload" ]; then
- %service -q apache reload
-fi
-
%files
%defattr(644,root,root,755)
%doc %lang(ru) FAQ.RUS README.RUS TODO.RUS
@@ -247,6 +184,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.44 2006/05/19 21:34:14 glen
+- drop triggers
+
Revision 1.43 2006/05/15 09:24:05 glen
- put webapps trigger on correct package, rel 8
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/mysqlstat.spec?r1=1.43&r2=1.44&f=u
More information about the pld-cvs-commit
mailing list