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: 02-Aug-2006 10:36:05
Branch: HEAD Handle: 2006080209360500
Modified files:
openpkg-src/php-eaccelerator
php-eaccelerator.spec
Log:
automatically provide a /php-eaccelerator Alias to Apache, too
Summary:
Revision Changes Path
1.17 +14 -1 openpkg-src/php-eaccelerator/php-eaccelerator.spec
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/php-eaccelerator/php-eaccelerator.spec
============================================================================
$ cvs diff -u -r1.16 -r1.17 php-eaccelerator.spec
--- openpkg-src/php-eaccelerator/php-eaccelerator.spec 1 Aug 2006
10:53:34 -0000 1.16
+++ openpkg-src/php-eaccelerator/php-eaccelerator.spec 2 Aug 2006
08:36:05 -0000 1.17
@@ -37,7 +37,7 @@
Group: Language
License: GPL
Version: %{V_opkg}
-Release: 20060801
+Release: 20060802
# package options
%option with_apache yes
@@ -170,6 +170,13 @@
$RPM_INSTALL_PREFIX/lib/openpkg/rpmtool config \
-a -i "$RPM_INSTALL_PREFIX:php-eaccelerator" -p ";" $phpini
fi
+ # add hook to Apache configuration
+ apacheconf="$RPM_INSTALL_PREFIX/etc/apache/apache.conf"
+ if [ -f $apacheconf ]; then
+ ( echo "Alias /php-eaccelerator
$RPM_INSTALL_PREFIX/lib/php-eaccelerator"
+ ) | $RPM_INSTALL_PREFIX/lib/openpkg/rpmtool config \
+ -a -i "$RPM_INSTALL_PREFIX:php-eaccelerator" $apacheconf
+ fi
%endif
fi
@@ -193,6 +200,12 @@
$RPM_INSTALL_PREFIX/lib/openpkg/rpmtool config \
-r -i "$RPM_INSTALL_PREFIX:php-eaccelerator" -p ";" $phpini
fi
+ # remove hook from Apache configuration
+ apacheconf="$RPM_INSTALL_PREFIX/etc/apache/apache.conf"
+ if [ -f $apacheconf ]; then
+ $RPM_INSTALL_PREFIX/lib/openpkg/rpmtool config \
+ -r -i "$RPM_INSTALL_PREFIX:php-eaccelerator" $apacheconf
+ fi
%endif
fi
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [email protected]