OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall
Root: /v/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src Date: 06-Jun-2007 13:06:07
Branch: HEAD Handle: 2007060612060700
Modified files:
openpkg-src/apache2-php apache2-php.spec
Log:
restart Apache if PHP DSO is upgraded (by cs)
Summary:
Revision Changes Path
1.6 +8 -1 openpkg-src/apache2-php/apache2-php.spec
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/apache2-php/apache2-php.spec
============================================================================
$ cvs diff -u -r1.5 -r1.6 apache2-php.spec
--- openpkg-src/apache2-php/apache2-php.spec 2 Jun 2007 11:11:48 -0000
1.5
+++ openpkg-src/apache2-php/apache2-php.spec 6 Jun 2007 11:06:07 -0000
1.6
@@ -39,7 +39,7 @@
Group: Language
License: PHP
Version: %{V_php}
-Release: 20070602
+Release: 20070606
# package options
%option with_suhosin no
@@ -543,3 +543,10 @@
%clean
rm -rf $RPM_BUILD_ROOT
+%post
+ # after upgrade, restart service
+ [ $1 -eq 2 ] || exit 0
+ eval `%{l_rc} apache2 status 2>/dev/null`
+ [ ".$apache2_active" = .yes ] && %{l_rc} apache2 restart
+ exit 0
+
@@ .
______________________________________________________________________
OpenPKG http://openpkg.org
CVS Repository Commit List [email protected]