]> git.pld-linux.org Git - packages/rpm.git/commitdiff
- add %php_webserver_restart, %php4_webserver_restart, RFC welcome
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 14 Dec 2006 08:18:00 +0000 (08:18 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    rpm.macros -> 1.342

rpm.macros

index e6f662c2b547c1074dba7ecb55176ef55934dc46..dd7d62d9c751e8ed4e80364f59fe2b7408c7f629 100644 (file)
@@ -577,6 +577,18 @@ fi \
 # 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]")
This page took 0.050819 seconds and 4 git commands to generate.