SPECS: php-pam_auth.spec, php-pecl-timezonedb.spec - use %php_webs...

glen glen at pld-linux.org
Tue Jan 16 23:09:04 CET 2007


Author: glen                         Date: Tue Jan 16 22:09:04 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- use %php_webserver_restart

---- Files affected:
SPECS:
   php-pam_auth.spec (1.5 -> 1.6) , php-pecl-timezonedb.spec (1.7 -> 1.8) 

---- Diffs:

================================================================
Index: SPECS/php-pam_auth.spec
diff -u SPECS/php-pam_auth.spec:1.5 SPECS/php-pam_auth.spec:1.6
--- SPECS/php-pam_auth.spec:1.5	Tue Jan 16 23:07:11 2007
+++ SPECS/php-pam_auth.spec	Tue Jan 16 23:08:59 2007
@@ -54,13 +54,11 @@
 rm -rf $RPM_BUILD_ROOT
 
 %post
-[ ! -f /etc/apache/conf.d/??_mod_php.conf ] || %service -q apache restart
-[ ! -f /etc/httpd/httpd.conf/??_mod_php.conf ] || %service -q httpd restart
+%php_webserver_restart
 
 %postun
 if [ "$1" = 0 ]; then
-	[ ! -f /etc/apache/conf.d/??_mod_php.conf ] || %service -q apache restart
-	[ ! -f /etc/httpd/httpd.conf/??_mod_php.conf ] || %service -q httpd restart
+	%php_webserver_restart
 fi
 
 %files
@@ -75,6 +73,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.6  2007/01/16 22:08:59  glen
+- use %php_webserver_restart
+
 Revision 1.5  2007/01/16 22:07:11  glen
 - use new php extension macros
 

================================================================
Index: SPECS/php-pecl-timezonedb.spec
diff -u SPECS/php-pecl-timezonedb.spec:1.7 SPECS/php-pecl-timezonedb.spec:1.8
--- SPECS/php-pecl-timezonedb.spec:1.7	Tue Jan 16 23:07:11 2007
+++ SPECS/php-pecl-timezonedb.spec	Tue Jan 16 23:08:59 2007
@@ -59,13 +59,11 @@
 rm -rf $RPM_BUILD_ROOT
 
 %post
-[ ! -f /etc/apache/conf.d/??_mod_php.conf ] || %service -q apache restart
-[ ! -f /etc/httpd/httpd.conf/??_mod_php.conf ] || %service -q httpd restart
+%php_webserver_restart
 
 %postun
 if [ "$1" = 0 ]; then
-	[ ! -f /etc/apache/conf.d/??_mod_php.conf ] || %service -q apache restart
-	[ ! -f /etc/httpd/httpd.conf/??_mod_php.conf ] || %service -q httpd restart
+	%php_webserver_restart
 fi
 
 %files
@@ -80,6 +78,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.8  2007/01/16 22:08:59  glen
+- use %php_webserver_restart
+
 Revision 1.7  2007/01/16 22:07:11  glen
 - use new php extension macros
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/php-pam_auth.spec?r1=1.5&r2=1.6&f=u
    http://cvs.pld-linux.org/SPECS/php-pecl-timezonedb.spec?r1=1.7&r2=1.8&f=u



More information about the pld-cvs-commit mailing list