[csw-devel] SF.net SVN: gar:[5296] csw/mgar/pkg/php4/trunk

valholla at users.sourceforge.net valholla at users.sourceforge.net
Wed Jun 17 16:38:58 CEST 2009


Revision: 5296
          http://gar.svn.sourceforge.net/gar/?rev=5296&view=rev
Author:   valholla
Date:     2009-06-17 14:38:57 +0000 (Wed, 17 Jun 2009)

Log Message:
-----------
add php4_dbase package

Modified Paths:
--------------
    csw/mgar/pkg/php4/trunk/Makefile
    csw/mgar/pkg/php4/trunk/files/admfiles.mk
    csw/mgar/pkg/php4/trunk/files/depend.mk
    csw/mgar/pkg/php4/trunk/files/pkgdef.mk
    csw/mgar/pkg/php4/trunk/files/pkgfiles.mk

Added Paths:
-----------
    csw/mgar/pkg/php4/trunk/files/CSWphp4dbase.postinstall
    csw/mgar/pkg/php4/trunk/files/CSWphp4dbase.preremove

Modified: csw/mgar/pkg/php4/trunk/Makefile
===================================================================
--- csw/mgar/pkg/php4/trunk/Makefile	2009-06-17 14:12:21 UTC (rev 5295)
+++ csw/mgar/pkg/php4/trunk/Makefile	2009-06-17 14:38:57 UTC (rev 5296)
@@ -42,6 +42,7 @@
 CONFIGURE_ARGS += --with-curl=shared,$(prefix)
 CONFIGURE_ARGS += --with-curlwrappers
 CONFIGURE_ARGS += --enable-dba=shared
+CONFIGURE_ARGS += --enable-dbase=shared
 CONFIGURE_ARGS += --enable-exif
 CONFIGURE_ARGS += --enable-fastcgi
 CONFIGURE_ARGS += --enable-force-cgi-redirect

Added: csw/mgar/pkg/php4/trunk/files/CSWphp4dbase.postinstall
===================================================================
--- csw/mgar/pkg/php4/trunk/files/CSWphp4dbase.postinstall	                        (rev 0)
+++ csw/mgar/pkg/php4/trunk/files/CSWphp4dbase.postinstall	2009-06-17 14:38:57 UTC (rev 5296)
@@ -0,0 +1,35 @@
+#!/bin/sh
+MODULE_NAME=dbase
+PHP_INI=/opt/csw/php4/lib/php.ini
+
+echo "[===> Running Post Install <===]"
+echo "   ===> Enabling ${MODULE_NAME} extension"
+if grep 'CSW Extensions' ${PHP_INI} >/dev/null 2>&1; then
+/bin/true
+else
+cat << _EOF_
+******************************************************************************
+* WARNING: Could not enable Extension "${MODULE_NAME}"
+* You will need to enable it by hand as follows:
+*
+* open ${PHP_INI} in your favorite text editor
+* Add the following line to the file, save, and restart your web server
+* extension=${MODULE_NAME}.so
+******************************************************************************
+_EOF_
+exit 0
+fi
+if grep "extension=${MODULE_NAME}.so" ${PHP_INI} >/dev/null 2>&1; then
+perl -i -plne "s|;extension=${MODULE_NAME}.so|extension=${MODULE_NAME}.so|" ${PHP_INI}
+else
+perl -i -pe "s|.*CSW Extensions|; CSW Extensions\nextension=${MODULE_NAME}.so|" ${PHP_INI}
+fi
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Enabled Extension "${MODULE_NAME}"
+* in ${PHP_INI}
+*
+* You will need to restart your web server to finish the install
+******************************************************************************
+_EOF_
+exit 0

Added: csw/mgar/pkg/php4/trunk/files/CSWphp4dbase.preremove
===================================================================
--- csw/mgar/pkg/php4/trunk/files/CSWphp4dbase.preremove	                        (rev 0)
+++ csw/mgar/pkg/php4/trunk/files/CSWphp4dbase.preremove	2009-06-17 14:38:57 UTC (rev 5296)
@@ -0,0 +1,16 @@
+#!/bin/sh
+MODULE_NAME=dbase
+PHP_INI=/opt/csw/php4/lib/php.ini
+
+echo "[===> Running Pre Remove <===]"
+echo "   ===> Disabling ${MODULE_NAME} extension"
+perl -i -plne "s|extension=${MODULE_NAME}.so|;extension=${MODULE_NAME}.so|" ${PHP_INI}
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Disabled Extension "${MODULE_NAME}"
+* in ${PHP_INI}
+*
+* You will need to restart your web server to finish the removal
+******************************************************************************
+_EOF_
+exit 0

Modified: csw/mgar/pkg/php4/trunk/files/admfiles.mk
===================================================================
--- csw/mgar/pkg/php4/trunk/files/admfiles.mk	2009-06-17 14:12:21 UTC (rev 5295)
+++ csw/mgar/pkg/php4/trunk/files/admfiles.mk	2009-06-17 14:38:57 UTC (rev 5296)
@@ -20,6 +20,8 @@
 DISTFILES += CSWphp4curl.preremove
 DISTFILES += CSWphp4dba.postinstall
 DISTFILES += CSWphp4dba.preremove
+DISTFILES += CSWphp4dbase.postinstall
+DISTFILES += CSWphp4dbase.preremove
 DISTFILES += CSWphp4domxml.postinstall
 DISTFILES += CSWphp4domxml.preremove
 DISTFILES += CSWphp4gd.postinstall

Modified: csw/mgar/pkg/php4/trunk/files/depend.mk
===================================================================
--- csw/mgar/pkg/php4/trunk/files/depend.mk	2009-06-17 14:12:21 UTC (rev 5295)
+++ csw/mgar/pkg/php4/trunk/files/depend.mk	2009-06-17 14:38:57 UTC (rev 5296)
@@ -9,6 +9,7 @@
 REQUIRED_PKGS_CSWphp4curl     = CSWphp4cgi CSWcurlrt CSWlibidn 
 REQUIRED_PKGS_CSWphp4curl    += CSWoldaprt CSWosslrt CSWzlib
 REQUIRED_PKGS_CSWphp4dba      = CSWphp4cgi CSWbdb44 CSWgdbm
+REQUIRED_PKGS_CSWphp4dbase    = CSWphp4cgi
 REQUIRED_PKGS_CSWphp4domxml   = CSWphp4cgi CSWiconv CSWlibxml2 
 REQUIRED_PKGS_CSWphp4domxml  += CSWlibxslt CSWzlib
 REQUIRED_PKGS_CSWphp4gd       = CSWphp4cgi CSWgd CSWjpeg CSWpng CSWzlib
@@ -33,4 +34,4 @@
 REQUIRED_PKGS_CSWphp += CSWphp4gettext CSWphp4gmp CSWphp4iconv CSWphp4imap
 REQUIRED_PKGS_CSWphp += CSWphp4ldap CSWphp4mbstring CSWphp4mcal CSWphp4mssql
 REQUIRED_PKGS_CSWphp += CSWphp4mysql CSWphp4ncurses CSWphp4odbc CSWphp4openssl
-REQUIRED_PKGS_CSWphp += CSWphp4pgsql CSWphp4zlib CSWmodphp4
+REQUIRED_PKGS_CSWphp += CSWphp4pgsql CSWphp4zlib CSWphp4dbase CSWmodphp4

Modified: csw/mgar/pkg/php4/trunk/files/pkgdef.mk
===================================================================
--- csw/mgar/pkg/php4/trunk/files/pkgdef.mk	2009-06-17 14:12:21 UTC (rev 5295)
+++ csw/mgar/pkg/php4/trunk/files/pkgdef.mk	2009-06-17 14:38:57 UTC (rev 5296)
@@ -5,7 +5,7 @@
 PACKAGES += CSWphp4iconv CSWphp4imap CSWphp4ldap CSWphp4mbstring
 PACKAGES += CSWphp4mcal CSWphp4mssql CSWphp4mysql CSWphp4ncurses CSWphp4odbc
 PACKAGES += CSWphp4openssl CSWphp4pgsql CSWphp4zlib CSWap2modphp4
-PACKAGES += CSWmodphp4 CSWphp
+PACKAGES += CSWmodphp4 CSWphp CSWphp4dbase
 
 CATALOGNAME_CSWphp4bcmath   = php4_bcmath
 SPKG_DESC_CSWphp4bcmath     = bcmath extension for php4
@@ -19,6 +19,8 @@
 SPKG_DESC_CSWphp4curl       = curl extension for php4
 CATALOGNAME_CSWphp4dba      = php4_dba
 SPKG_DESC_CSWphp4dba        = dba extension for php4
+CATALOGNAME_CSWphp4dbase    = php4_dbase
+SPKG_DESC_CSWphp4dbase      = dbase extension for php4
 CATALOGNAME_CSWphp4domxml   = php4_domxml
 SPKG_DESC_CSWphp4domxml     = domxml extension for php4
 CATALOGNAME_CSWphp4gd       = php4_gd

Modified: csw/mgar/pkg/php4/trunk/files/pkgfiles.mk
===================================================================
--- csw/mgar/pkg/php4/trunk/files/pkgfiles.mk	2009-06-17 14:12:21 UTC (rev 5295)
+++ csw/mgar/pkg/php4/trunk/files/pkgfiles.mk	2009-06-17 14:38:57 UTC (rev 5296)
@@ -6,7 +6,8 @@
 PKGFILES_CSWphp4bz2       = .*/extensions/.*/bz2.*
 PKGFILES_CSWphp4calendar  = .*/extensions/.*/calendar.*
 PKGFILES_CSWphp4curl      = .*/extensions/.*/curl.*
-PKGFILES_CSWphp4dba       = .*/extensions/.*/dba.*
+PKGFILES_CSWphp4dba       = .*/extensions/.*/dba\.so
+PKGFILES_CSWphp4dbase     = .*/extensions/.*/dbase\.so
 PKGFILES_CSWphp4domxml    = .*/extensions/.*/domxml.*
 PKGFILES_CSWphp4gd        = .*/extensions/.*/gd.*
 PKGFILES_CSWphp4gettext   = .*/extensions/.*/gettext.*


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