SOURCES: rpm.macros - add %php_webserver_restart, %php4_webserver_...
glen
glen at pld-linux.org
Thu Dec 14 09:18:05 CET 2006
Author: glen Date: Thu Dec 14 08:18:05 2006 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- add %php_webserver_restart, %php4_webserver_restart, RFC welcome
---- Files affected:
SOURCES:
rpm.macros (1.341 -> 1.342)
---- Diffs:
================================================================
Index: SOURCES/rpm.macros
diff -u SOURCES/rpm.macros:1.341 SOURCES/rpm.macros:1.342
--- SOURCES/rpm.macros:1.341 Thu Dec 14 00:23:57 2006
+++ SOURCES/rpm.macros Thu Dec 14 09:18:00 2006
@@ -577,6 +577,18 @@
# for php pdo modules (php-pecl-PDO_*)
%requires_php_pdo_module %{__php_api_requires PDO_API php_pdo_api_version}
+# for using PHP post scripts. for PHP >= 5.0
+%php_webserver_restart \
+[ ! -f /etc/apache/conf.d/??_mod_php.conf ] || %service -q apache restart \
+[ ! -f /etc/httpd/httpd.conf/??_mod_php.conf ] || %service -q httpd restart \
+%{nil}
+
+# for using php post scripts. for PHP >= 4.0 && PHP < 5.0
+%php4_webserver_restart \
+[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service -q apache restart \
+[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service -q httpd restart \
+%{nil}
+
# Python specific macro definitions.
# python main version
%py_ver %(python -c "import sys; print sys.version[:3]")
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SOURCES/rpm.macros?r1=1.341&r2=1.342&f=u
More information about the pld-cvs-commit
mailing list