[csw-devel] SF.net SVN: gar:[4456] csw/mgar/pkg/php5/trunk/extensions

valholla at users.sourceforge.net valholla at users.sourceforge.net
Thu Apr 23 23:51:13 CEST 2009


Revision: 4456
          http://gar.svn.sourceforge.net/gar/?rev=4456&view=rev
Author:   valholla
Date:     2009-04-23 21:51:13 +0000 (Thu, 23 Apr 2009)

Log Message:
-----------
commit php5_apache

Added Paths:
-----------
    csw/mgar/pkg/php5/trunk/extensions/php5_apache/
    csw/mgar/pkg/php5/trunk/extensions/php5_apache/Makefile
    csw/mgar/pkg/php5/trunk/extensions/php5_apache/files/
    csw/mgar/pkg/php5/trunk/extensions/php5_apache/files/CSWmodphp5.postinstall
    csw/mgar/pkg/php5/trunk/extensions/php5_apache/files/CSWmodphp5.preremove
    csw/mgar/pkg/php5/trunk/extensions/php5_apache/files/CSWmodphp5.space

Added: csw/mgar/pkg/php5/trunk/extensions/php5_apache/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_apache/Makefile	                        (rev 0)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_apache/Makefile	2009-04-23 21:51:13 UTC (rev 4456)
@@ -0,0 +1,14 @@
+PHP5EXT_NAME = ap2_modphp5
+
+PACKAGES += CSWap2modphp5
+
+CATALOGNAME_CSWap2modphp5 = ap2_modphp5
+SPKG_DESC_CSWap2modphp5 = PHP 5 - Apache 1.3.x Module
+REQUIRED_PKGS_CSWap2modphp5  = CSWapache CSWbdb44 CSWiconv CSWkrb5lib
+REQUIRED_PKGS_CSWap2modphp5 += CSWlibmm CSWlibxml2 CSWosslrt CSWphp5 CSWzlib
+
+
+CONFIGURE_ARGS += --with-apxs=$(prefix)/apache/bin/apxs
+
+PKGFILES_CSWap2modphp5 = .*/csw/apache/.*
+

Added: csw/mgar/pkg/php5/trunk/extensions/php5_apache/files/CSWmodphp5.postinstall
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_apache/files/CSWmodphp5.postinstall	                        (rev 0)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_apache/files/CSWmodphp5.postinstall	2009-04-23 21:51:13 UTC (rev 4456)
@@ -0,0 +1,41 @@
+#!/bin/sh
+
+CSW_PREFIX=${PKG_INSTALL_ROOT}/opt/csw
+AP_PREFIX=$CSW_PREFIX/apache
+AP_BINDIR=$AP_PREFIX/bin
+AP_LIBEXEC=$AP_PREFIX/libexec
+AP_CONFDIR=$AP_PREFIX/conf
+AP_CONFIG=$AP_CONFDIR/httpd.conf
+
+# Enable the PHP module
+PKG_INSTALL_ROOT=${PKG_INSTALL_ROOT:-'/'}
+chroot $PKG_INSTALL_ROOT \
+    $AP_BINDIR/apxs -S LIBEXECDIR=$AP_LIBEXEC -e -a -n php5 libphp5.so
+
+# Add a configuration sample
+if [ -z "`grep 'IfModule mod_php5.c' $AP_CONFIG`" ]; then
+    cp $AP_CONFIG $AP_CONFIG.pre-PHP5
+
+    echo "Adding libphp5 configuration to $AP_CONFIG..."
+    cat <<CONFIG >> $AP_CONFIG
+
+# Added by $PKGINST
+<IfModule mod_php5.c>
+    <IfModule mod_mime.c>
+        AddType application/x-httpd-php .php
+        AddType application/x-httpd-php-source .phps
+    </IfModule>
+</IfModule>
+CONFIG
+
+fi
+
+# Finito
+cat <<END
+
+NOTICE: mod_php5 is enabled in httpd.conf but the server was not restarted.
+Please examine your php5 configuration and restart apache.
+
+END
+
+exit 0

Added: csw/mgar/pkg/php5/trunk/extensions/php5_apache/files/CSWmodphp5.preremove
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_apache/files/CSWmodphp5.preremove	                        (rev 0)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_apache/files/CSWmodphp5.preremove	2009-04-23 21:51:13 UTC (rev 4456)
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+CSW_PREFIX=${PKG_INSTALL_ROOT}/opt/csw
+AP_PREFIX=$CSW_PREFIX/apache
+AP_BINDIR=$AP_PREFIX/bin
+AP_LIBEXEC=$AP_PREFIX/libexec
+AP_CONFDIR=$AP_PREFIX/conf
+AP_CONFIG=$AP_CONFDIR/httpd.conf
+
+# Disable the PHP module
+PKG_INSTALL_ROOT=${PKG_INSTALL_ROOT:-'/'}
+chroot $PKG_INSTALL_ROOT \
+    $AP_BINDIR/apxs -S LIBEXECDIR=$AP_LIBEXEC -e -A -n php5 libphp5.so
+
+cat <<END
+
+NOTICE: mod_php5 is disabled in httpd.conf but the server was not restarted.
+Please check your configuration and restart apache.
+
+END
+
+exit 0

Added: csw/mgar/pkg/php5/trunk/extensions/php5_apache/files/CSWmodphp5.space
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_apache/files/CSWmodphp5.space	                        (rev 0)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_apache/files/CSWmodphp5.space	2009-04-23 21:51:13 UTC (rev 4456)
@@ -0,0 +1 @@
+$BASEDIR 4


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list