SPECS: php4.spec - added missing postun apache restarts back

glen glen at pld-linux.org
Fri Aug 12 20:57:05 CEST 2005


Author: glen                         Date: Fri Aug 12 18:57:05 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- added missing postun apache restarts back

---- Files affected:
SPECS:
   php4.spec (1.462 -> 1.463) 

---- Diffs:

================================================================
Index: SPECS/php4.spec
diff -u SPECS/php4.spec:1.462 SPECS/php4.spec:1.463
--- SPECS/php4.spec:1.462	Fri Aug 12 20:17:49 2005
+++ SPECS/php4.spec	Fri Aug 12 20:57:00 2005
@@ -74,7 +74,7 @@
 Summary(uk):	PHP ÷ĹŇÓŚ§ 4 - ÍĎ×Á ĐŇĹĐŇĎĂĹÓŐ×ÁÎÎŃ HTML-ĆÁĘĚŚ×, ×ÉËĎÎŐ×ÁÎÁ ÎÁ ÓĹŇ×ĹŇŚ
 Name:		php4
 Version:	4.4.0
-Release:	4%{?with_hardening:hardened}
+Release:	4.1%{?with_hardening:hardened}
 Epoch:		3
 Group:		Libraries
 License:	PHP
@@ -1940,6 +1940,12 @@
 [ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
 [ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
 
+%postun bcmath
+if [ "$1" = "0" ]; then
+	[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
+	[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+fi
+
 %triggerun bcmath -- %{name}-bcmath < 3:4.4.0-2.1
 [ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove bcmath %{_sysconfdir}/php.ini
 
@@ -1947,6 +1953,12 @@
 [ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
 [ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
 
+%postun bzip2
+if [ "$1" = "0" ]; then
+	[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
+	[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+fi
+
 %triggerun bzip2 -- %{name}-bzip2 < 3:4.4.0-2.1
 [ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove bz2 %{_sysconfdir}/php.ini
 
@@ -1954,6 +1966,12 @@
 [ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
 [ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
 
+%postun calendar
+if [ "$1" = "0" ]; then
+	[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
+	[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+fi
+
 %triggerun calendar -- %{name}-calendar < 3:4.4.0-2.1
 [ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove calendar %{_sysconfdir}/php.ini
 
@@ -1961,6 +1979,12 @@
 [ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
 [ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
 
+%postun cpdf
+if [ "$1" = "0" ]; then
+	[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
+	[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+fi
+
 %triggerun cpdf -- %{name}-cpdf < 3:4.4.0-2.1
 [ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove cpdf %{_sysconfdir}/php.ini
 
@@ -1968,6 +1992,12 @@
 [ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
 [ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
 
+%postun crack
+if [ "$1" = "0" ]; then
+	[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
+	[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+fi
+
 %triggerun crack -- %{name}-crack < 3:4.4.0-2.1
 [ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove crack %{_sysconfdir}/php.ini
 
@@ -1975,6 +2005,12 @@
 [ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
 [ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
 
+%postun ctype
+if [ "$1" = "0" ]; then
+	[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
+	[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+fi
+
 %triggerun ctype -- %{name}-ctype < 3:4.4.0-2.1
 [ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove ctype %{_sysconfdir}/php.ini
 
@@ -1982,6 +2018,12 @@
 [ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
 [ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
 
+%postun curl
+if [ "$1" = "0" ]; then
+	[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
+	[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+fi
+
 %triggerun curl -- %{name}-curl < 3:4.4.0-2.1
 [ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove curl %{_sysconfdir}/php.ini
 
@@ -1989,6 +2031,12 @@
 [ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
 [ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
 
+%postun db
+if [ "$1" = "0" ]; then
+	[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
+	[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+fi
+
 %triggerun db -- %{name}-db < 3:4.4.0-2.1
 [ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove db %{_sysconfdir}/php.ini
 
@@ -1996,6 +2044,12 @@
 [ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
 [ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
 
+%postun dba
+if [ "$1" = "0" ]; then
+	[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
+	[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+fi
+
 %triggerun dba -- %{name}-dba < 3:4.4.0-2.1
 [ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove dba %{_sysconfdir}/php.ini
 
@@ -2003,6 +2057,12 @@
 [ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
 [ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
 
+%postun dbase
+if [ "$1" = "0" ]; then
+	[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
+	[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+fi
+
 %triggerun dbase -- %{name}-dbase < 3:4.4.0-2.1
 [ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove dbase %{_sysconfdir}/php.ini
 
@@ -2010,6 +2070,12 @@
 [ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
 [ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
 
+%postun dbx
+if [ "$1" = "0" ]; then
+	[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
+	[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+fi
+
 %triggerun dbx -- %{name}-dbx < 3:4.4.0-2.1
 [ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove dbx %{_sysconfdir}/php.ini
 
@@ -2017,6 +2083,12 @@
 [ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
 [ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
 
+%postun dio
+if [ "$1" = "0" ]; then
+	[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
+	[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+fi
+
 %triggerun dio -- %{name}-dio < 3:4.4.0-2.1
 [ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove dio %{_sysconfdir}/php.ini
 
@@ -2024,6 +2096,12 @@
 [ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
 [ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
 
+%postun domxml
+if [ "$1" = "0" ]; then
+	[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
+	[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+fi
+
 %triggerun domxml -- %{name}-domxml < 3:4.4.0-2.1
 [ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove domxml %{_sysconfdir}/php.ini
 
@@ -2031,6 +2109,12 @@
 [ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
 [ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
 
+%postun exif
+if [ "$1" = "0" ]; then
+	[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
+	[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+fi
+
 %triggerun exif -- %{name}-exif < 3:4.4.0-2.1
 [ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove exif %{_sysconfdir}/php.ini
 
@@ -2038,6 +2122,12 @@
 [ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
 [ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
 
+%postun fdf
+if [ "$1" = "0" ]; then
+	[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
+	[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+fi
+
 %triggerun fdf -- %{name}-fdf < 3:4.4.0-2.1
 [ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove fdf %{_sysconfdir}/php.ini
 
@@ -2045,6 +2135,12 @@
 [ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
 [ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
 
+%postun filepro
+if [ "$1" = "0" ]; then
+	[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
+	[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+fi
+
 %triggerun filepro -- %{name}-filepro < 3:4.4.0-2.1
 [ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove filepro %{_sysconfdir}/php.ini
 
@@ -2052,6 +2148,12 @@
 [ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
 [ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
 
+%postun fribidi
+if [ "$1" = "0" ]; then
+	[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
+	[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+fi
+
 %triggerun fribidi -- %{name}-fribidi < 3:4.4.0-2.1
 [ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove fribidi %{_sysconfdir}/php.ini
 
@@ -2059,6 +2161,12 @@
 [ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
 [ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
 
+%postun ftp
+if [ "$1" = "0" ]; then
+	[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
+	[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+fi
+
 %triggerun ftp -- %{name}-ftp < 3:4.4.0-2.1
 [ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove ftp %{_sysconfdir}/php.ini
 
@@ -2066,6 +2174,12 @@
 [ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
 [ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
 
+%postun gd
+if [ "$1" = "0" ]; then
+	[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
+	[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+fi
+
 %triggerun gd -- %{name}-gd < 3:4.4.0-2.1
 [ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove gd %{_sysconfdir}/php.ini
 
@@ -2073,6 +2187,12 @@
 [ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
 [ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
 
+%postun gettext
+if [ "$1" = "0" ]; then
+	[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
+	[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+fi
+
 %triggerun gettext -- %{name}-gettext < 3:4.4.0-2.1
 [ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove gettext %{_sysconfdir}/php.ini
 
@@ -2080,6 +2200,12 @@
 [ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
 [ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
 
+%postun gmp
+if [ "$1" = "0" ]; then
+	[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
+	[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+fi
+
 %triggerun gmp -- %{name}-gmp < 3:4.4.0-2.1
 [ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove gmp %{_sysconfdir}/php.ini
 
@@ -2087,6 +2213,12 @@
 [ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
 [ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
 
+%postun hyperwave
+if [ "$1" = "0" ]; then
+	[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
+	[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+fi
+
 %triggerun hyperwave -- %{name}-hyperwave < 3:4.4.0-2.1
 [ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove hyperwave %{_sysconfdir}/php.ini
 
@@ -2094,6 +2226,12 @@
 [ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
 [ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
 
+%postun iconv
+if [ "$1" = "0" ]; then
+	[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
+	[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+fi
+
 %triggerun iconv -- %{name}-iconv < 3:4.4.0-2.1
 [ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove iconv %{_sysconfdir}/php.ini
 
@@ -2101,6 +2239,12 @@
 [ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
 [ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
 
+%postun imap
+if [ "$1" = "0" ]; then
+	[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
+	[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+fi
+
 %triggerun imap -- %{name}-imap < 3:4.4.0-2.1
 [ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove imap %{_sysconfdir}/php.ini
 
@@ -2108,6 +2252,12 @@
 [ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
 [ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
 
+%postun interbase
+if [ "$1" = "0" ]; then
+	[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
+	[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+fi
+
 %triggerun interbase -- %{name}-interbase < 3:4.4.0-2.1
 [ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove interbase %{_sysconfdir}/php.ini
 
@@ -2115,6 +2265,12 @@
 [ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
 [ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
 
+%postun java
+if [ "$1" = "0" ]; then
+	[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
+	[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+fi
+
 %triggerun java -- %{name}-java < 3:4.4.0-2.1
 [ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove java %{_sysconfdir}/php.ini
 
@@ -2122,6 +2278,12 @@
 [ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
 [ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
 
+%postun ldap
+if [ "$1" = "0" ]; then
+	[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
+	[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+fi
+
 %triggerun ldap -- %{name}-ldap < 3:4.4.0-2.1
 [ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove ldap %{_sysconfdir}/php.ini
 
@@ -2129,6 +2291,12 @@
 [ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
 [ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
 
+%postun mbstring
+if [ "$1" = "0" ]; then
+	[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
+	[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+fi
+
 %triggerun mbstring -- %{name}-mbstring < 3:4.4.0-2.1
 [ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove mbstring %{_sysconfdir}/php.ini
 
@@ -2136,6 +2304,12 @@
 [ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
 [ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
 
+%postun mcal
+if [ "$1" = "0" ]; then
+	[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
+	[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+fi
+
 %triggerun mcal -- %{name}-mcal < 3:4.4.0-2.1
 [ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove mcal %{_sysconfdir}/php.ini
 
@@ -2143,6 +2317,12 @@
 [ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
 [ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
 
+%postun mcrypt
+if [ "$1" = "0" ]; then
+	[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
+	[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+fi
+
 %triggerun mcrypt -- %{name}-mcrypt < 3:4.4.0-2.1
 [ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove mcrypt %{_sysconfdir}/php.ini
 
@@ -2150,6 +2330,12 @@
 [ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
 [ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
 
+%postun mhash
+if [ "$1" = "0" ]; then
+	[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
+	[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+fi
+
 %triggerun mhash -- %{name}-mhash < 3:4.4.0-2.1
 [ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove mhash %{_sysconfdir}/php.ini
 
@@ -2157,6 +2343,12 @@
 [ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
 [ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
 
+%postun mime_magic
+if [ "$1" = "0" ]; then
+	[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
+	[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+fi
+
 %triggerun mime_magic -- %{name}-mime_magic < 3:4.4.0-2.1
 [ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove mime_magic %{_sysconfdir}/php.ini
 
@@ -2164,6 +2356,12 @@
 [ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
 [ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
 
+%postun ming
+if [ "$1" = "0" ]; then
+	[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
+	[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+fi
+
 %triggerun ming -- %{name}-ming < 3:4.4.0-2.1
 [ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove ming %{_sysconfdir}/php.ini
 
@@ -2171,6 +2369,12 @@
 [ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
 [ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
 
+%postun mnogosearch
+if [ "$1" = "0" ]; then
+	[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
+	[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+fi
+
 %triggerun mnogosearch -- %{name}-mnogosearch < 3:4.4.0-2.1
 [ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove mnogosearch %{_sysconfdir}/php.ini
 
@@ -2178,6 +2382,12 @@
 [ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
 [ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
 
+%postun msession
+if [ "$1" = "0" ]; then
+	[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
+	[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+fi
+
 %triggerun msession -- %{name}-msession < 3:4.4.0-2.1
 [ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove msession %{_sysconfdir}/php.ini
 
@@ -2185,6 +2395,12 @@
 [ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
 [ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
 
+%postun mssql
+if [ "$1" = "0" ]; then
+	[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
+	[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+fi
+
 %triggerun mssql -- %{name}-mssql < 3:4.4.0-2.1
 [ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove mssql %{_sysconfdir}/php.ini
 
@@ -2192,6 +2408,12 @@
 [ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
 [ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
 
+%postun mysql
+if [ "$1" = "0" ]; then
+	[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
+	[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+fi
+
 %triggerun mysql -- %{name}-mysql < 3:4.4.0-2.1
 [ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove mysql %{_sysconfdir}/php.ini
 
@@ -2218,6 +2440,12 @@
 [ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
 [ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
 
+%postun oci8
+if [ "$1" = "0" ]; then
+	[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
+	[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+fi
+
 %triggerun oci8 -- %{name}-oci8 < 3:4.4.0-2.1
 [ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove oci8 %{_sysconfdir}/php.ini
 
@@ -2225,6 +2453,12 @@
 [ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
 [ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
 
+%postun odbc
+if [ "$1" = "0" ]; then
+	[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
+	[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+fi
+
 %triggerun odbc -- %{name}-odbc < 3:4.4.0-2.1
 [ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove odbc %{_sysconfdir}/php.ini
 
@@ -2236,6 +2470,12 @@
 [ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
 [ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
 
+%postun oracle
+if [ "$1" = "0" ]; then
+	[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
+	[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+fi
+
 %triggerun oracle -- %{name}-oracle < 3:4.4.0-2.1
 [ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove oracle %{_sysconfdir}/php.ini
 
@@ -2243,6 +2483,12 @@
 [ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
 [ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
 
+%postun overload
+if [ "$1" = "0" ]; then
+	[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
+	[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+fi
+
 %triggerun overload -- %{name}-overload < 3:4.4.0-2.1
 [ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove overload %{_sysconfdir}/php.ini
 
@@ -2269,6 +2515,12 @@
 [ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
 [ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
 
+%postun pcre
+if [ "$1" = "0" ]; then
+	[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
+	[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+fi
+
 %triggerun pcre -- %{name}-pcre < 3:4.4.0-2.1
 [ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove pcre %{_sysconfdir}/php.ini
 
@@ -2276,6 +2528,12 @@
 [ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
 [ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
 
+%postun pdf
+if [ "$1" = "0" ]; then
+	[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
+	[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+fi
+
 %triggerun pdf -- %{name}-pdf < 3:4.4.0-2.1
 [ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove pdf %{_sysconfdir}/php.ini
 
@@ -2283,6 +2541,12 @@
 [ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
 [ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
 
+%postun pgsql
+if [ "$1" = "0" ]; then
+	[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
+	[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+fi
+
 %triggerun pgsql -- %{name}-pgsql < 3:4.4.0-2.1
 [ ! -x %{_sbindir}/php4-module-install ] || %{_sbindir}/php4-module-install remove pgsql %{_sysconfdir}/php.ini
 
@@ -2290,6 +2554,12 @@
 [ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
 [ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
 
+%postun posix
+if [ "$1" = "0" ]; then
+	[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service apache restart
+	[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service httpd restart
+fi
+
 %triggerun posix -- %{name}-posix < 3:4.4.0-2.1
<<Diff was trimmed, longer than 597 lines>>

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/php4.spec?r1=1.462&r2=1.463&f=u




More information about the pld-cvs-commit mailing list