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

valholla at users.sourceforge.net valholla at users.sourceforge.net
Thu Apr 2 03:43:51 CEST 2009


Revision: 4152
          http://gar.svn.sourceforge.net/gar/?rev=4152&view=rev
Author:   valholla
Date:     2009-04-02 01:43:50 +0000 (Thu, 02 Apr 2009)

Log Message:
-----------
admin scripts

Modified Paths:
--------------
    csw/mgar/pkg/php5/trunk/extensions/php5_bcmath/Makefile
    csw/mgar/pkg/php5/trunk/extensions/php5_bz2/Makefile
    csw/mgar/pkg/php5/trunk/extensions/php5_calendar/Makefile
    csw/mgar/pkg/php5/trunk/extensions/php5_ctype/Makefile
    csw/mgar/pkg/php5/trunk/extensions/php5_curl/Makefile
    csw/mgar/pkg/php5/trunk/extensions/php5_dba/Makefile
    csw/mgar/pkg/php5/trunk/extensions/php5_dbase/Makefile
    csw/mgar/pkg/php5/trunk/extensions/php5_dom/Makefile
    csw/mgar/pkg/php5/trunk/extensions/php5_exif/Makefile
    csw/mgar/pkg/php5/trunk/extensions/php5_filter/Makefile
    csw/mgar/pkg/php5/trunk/extensions/php5_ftp/Makefile
    csw/mgar/pkg/php5/trunk/extensions/php5_gd/Makefile
    csw/mgar/pkg/php5/trunk/extensions/php5_gettext/Makefile
    csw/mgar/pkg/php5/trunk/extensions/php5_gmp/Makefile
    csw/mgar/pkg/php5/trunk/extensions/php5_hash/Makefile
    csw/mgar/pkg/php5/trunk/extensions/php5_iconv/Makefile
    csw/mgar/pkg/php5/trunk/extensions/php5_imap/Makefile
    csw/mgar/pkg/php5/trunk/extensions/php5_json/Makefile
    csw/mgar/pkg/php5/trunk/extensions/php5_ldap/Makefile
    csw/mgar/pkg/php5/trunk/extensions/php5_mbstring/Makefile
    csw/mgar/pkg/php5/trunk/extensions/php5_mcrypt/Makefile
    csw/mgar/pkg/php5/trunk/extensions/php5_mhash/Makefile
    csw/mgar/pkg/php5/trunk/extensions/php5_mime_magic/Makefile
    csw/mgar/pkg/php5/trunk/extensions/php5_mssql/Makefile
    csw/mgar/pkg/php5/trunk/extensions/php5_mysql/Makefile
    csw/mgar/pkg/php5/trunk/extensions/php5_mysqli/Makefile
    csw/mgar/pkg/php5/trunk/extensions/php5_ncurses/Makefile
    csw/mgar/pkg/php5/trunk/extensions/php5_odbc/Makefile
    csw/mgar/pkg/php5/trunk/extensions/php5_openssl/Makefile
    csw/mgar/pkg/php5/trunk/extensions/php5_pcntl/Makefile
    csw/mgar/pkg/php5/trunk/extensions/php5_pdomysql/Makefile
    csw/mgar/pkg/php5/trunk/extensions/php5_pdoodbc/Makefile
    csw/mgar/pkg/php5/trunk/extensions/php5_pdopgsql/Makefile
    csw/mgar/pkg/php5/trunk/extensions/php5_pdosqlite/Makefile
    csw/mgar/pkg/php5/trunk/extensions/php5_pgsql/Makefile
    csw/mgar/pkg/php5/trunk/extensions/php5_posix/Makefile
    csw/mgar/pkg/php5/trunk/extensions/php5_pspell/Makefile
    csw/mgar/pkg/php5/trunk/extensions/php5_readline/Makefile
    csw/mgar/pkg/php5/trunk/extensions/php5_session/Makefile
    csw/mgar/pkg/php5/trunk/extensions/php5_shmop/Makefile
    csw/mgar/pkg/php5/trunk/extensions/php5_simplexml/Makefile
    csw/mgar/pkg/php5/trunk/extensions/php5_snmp/Makefile
    csw/mgar/pkg/php5/trunk/extensions/php5_soap/Makefile
    csw/mgar/pkg/php5/trunk/extensions/php5_sockets/Makefile
    csw/mgar/pkg/php5/trunk/extensions/php5_sqlite/Makefile
    csw/mgar/pkg/php5/trunk/extensions/php5_sysvmsg/Makefile
    csw/mgar/pkg/php5/trunk/extensions/php5_sysvsem/Makefile
    csw/mgar/pkg/php5/trunk/extensions/php5_sysvshm/Makefile
    csw/mgar/pkg/php5/trunk/extensions/php5_tidy/Makefile
    csw/mgar/pkg/php5/trunk/extensions/php5_tokenizer/Makefile
    csw/mgar/pkg/php5/trunk/extensions/php5_wddx/Makefile
    csw/mgar/pkg/php5/trunk/extensions/php5_xml/Makefile
    csw/mgar/pkg/php5/trunk/extensions/php5_xmlreader/Makefile
    csw/mgar/pkg/php5/trunk/extensions/php5_xmlrpc/Makefile
    csw/mgar/pkg/php5/trunk/extensions/php5_xmlwriter/Makefile
    csw/mgar/pkg/php5/trunk/extensions/php5_xsl/Makefile
    csw/mgar/pkg/php5/trunk/extensions/php5_zip/Makefile

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_bcmath/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_bcmath/Makefile	2009-04-01 22:11:59 UTC (rev 4151)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_bcmath/Makefile	2009-04-02 01:43:50 UTC (rev 4152)
@@ -9,3 +9,30 @@
 CONFIGURE_ARGS += --enable-bcmath=shared
 
 PKGFILES_CSWphp5bcmath = .*/lib/php/extensions/.*/bcmath.*
+
+define CSWphp5bcmath_postinstall
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Post Install <===]"
+echo "   ===> Enabling bcmath extension"
+
+perl -i -plne 's|;extension=bcmath.so|extension=bcmath.so|' ${PHP_INI}
+
+exit 0
+endef
+
+define CSWphp5bcmath_preremove
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Pre Remove <===]"
+echo "   ===> Disabling bcmath extension"
+
+perl -i -plne 's|extension=bcmath.so|;extension=bcmath.so|' ${PHP_INI}
+
+exit 0
+endef
+

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_bz2/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_bz2/Makefile	2009-04-01 22:11:59 UTC (rev 4151)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_bz2/Makefile	2009-04-02 01:43:50 UTC (rev 4152)
@@ -9,3 +9,30 @@
 CONFIGURE_ARGS += --with-bz2=shared,$(prefix)
 
 PKGFILES_CSWphp5bz2 = .*/lib/php/extensions/.*/bz2.*
+
+define CSWphp5bz2_postinstall
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Post Install <===]"
+echo "   ===> Enabling bz2 extension"
+
+perl -i -plne 's|;extension=bz2.so|extension=bz2.so|' ${PHP_INI}
+
+exit 0
+endef
+
+define CSWphp5bz2_preremove
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Pre Remove <===]"
+echo "   ===> Disabling bz2 extension"
+
+perl -i -plne 's|extension=bz2.so|;extension=bz2.so|' ${PHP_INI}
+
+exit 0
+endef
+

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_calendar/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_calendar/Makefile	2009-04-01 22:11:59 UTC (rev 4151)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_calendar/Makefile	2009-04-02 01:43:50 UTC (rev 4152)
@@ -9,3 +9,30 @@
 CONFIGURE_ARGS += --enable-calendar=shared
 
 PKGFILES_CSWphp5calendar = .*/lib/php/extensions/.*/calendar.*
+
+define CSWphp5calendar_postinstall
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Post Install <===]"
+echo "   ===> Enabling calendar extension"
+
+perl -i -plne 's|;extension=calendar.so|extension=calendar.so|' ${PHP_INI}
+
+exit 0
+endef
+
+define CSWphp5calendar_preremove
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Pre Remove <===]"
+echo "   ===> Disabling calendar extension"
+
+perl -i -plne 's|extension=calendar.so|;extension=calendar.so|' ${PHP_INI}
+
+exit 0
+endef
+

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_ctype/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_ctype/Makefile	2009-04-01 22:11:59 UTC (rev 4151)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_ctype/Makefile	2009-04-02 01:43:50 UTC (rev 4152)
@@ -9,3 +9,30 @@
 CONFIGURE_ARGS += --enable-ctype=shared
 
 PKGFILES_CSWphp5ctype = .*/lib/php/extensions/.*/ctype.*
+
+define CSWphp5ctype_postinstall
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Post Install <===]"
+echo "   ===> Enabling ctype extension"
+
+perl -i -plne 's|;extension=ctype.so|extension=ctype.so|' ${PHP_INI}
+
+exit 0
+endef
+
+define CSWphp5ctype_preremove
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Pre Remove <===]"
+echo "   ===> Disabling ctype extension"
+
+perl -i -plne 's|extension=ctype.so|;extension=ctype.so|' ${PHP_INI}
+
+exit 0
+endef
+

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_curl/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_curl/Makefile	2009-04-01 22:11:59 UTC (rev 4151)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_curl/Makefile	2009-04-02 01:43:50 UTC (rev 4152)
@@ -11,3 +11,30 @@
 CONFIGURE_ARGS += --with-curlwrappers
 
 PKGFILES_CSWphp5curl = .*/lib/php/extensions/.*/curl.*
+
+define CSWphp5curl_postinstall
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Post Install <===]"
+echo "   ===> Enabling curl extension"
+
+perl -i -plne 's|;extension=curl.so|extension=curl.so|' ${PHP_INI}
+
+exit 0
+endef
+
+define CSWphp5curl_preremove
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Pre Remove <===]"
+echo "   ===> Disabling curl extension"
+
+perl -i -plne 's|extension=curl.so|;extension=curl.so|' ${PHP_INI}
+
+exit 0
+endef
+

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_dba/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_dba/Makefile	2009-04-01 22:11:59 UTC (rev 4151)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_dba/Makefile	2009-04-02 01:43:50 UTC (rev 4152)
@@ -14,3 +14,30 @@
 
 PKGFILES_CSWphp5dba = .*/lib/php/extensions/.*/dba\.so
 PKGFILES_CSWphp5dba += .*/lib/php/extensions/.*/dba\.a
+
+define CSWphp5dba_postinstall
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Post Install <===]"
+echo "   ===> Enabling dba extension"
+
+perl -i -plne 's|;extension=dba.so|extension=dba.so|' ${PHP_INI}
+
+exit 0
+endef
+
+define CSWphp5dba_preremove
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Pre Remove <===]"
+echo "   ===> Disabling dba extension"
+
+perl -i -plne 's|extension=dba.so|;extension=dba.so|' ${PHP_INI}
+
+exit 0
+endef
+

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_dbase/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_dbase/Makefile	2009-04-01 22:11:59 UTC (rev 4151)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_dbase/Makefile	2009-04-02 01:43:50 UTC (rev 4152)
@@ -9,3 +9,30 @@
 CONFIGURE_ARGS += --enable-dbase=shared
 
 PKGFILES_CSWphp5dbase = .*/lib/php/extensions/.*/dbase.*
+
+define CSWphp5dbase_postinstall
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Post Install <===]"
+echo "   ===> Enabling dbase extension"
+
+perl -i -plne 's|;extension=dbase.so|extension=dbase.so|' ${PHP_INI}
+
+exit 0
+endef
+
+define CSWphp5dbase_preremove
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Pre Remove <===]"
+echo "   ===> Disabling dbase extension"
+
+perl -i -plne 's|extension=dbase.so|;extension=dbase.so|' ${PHP_INI}
+
+exit 0
+endef
+

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_dom/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_dom/Makefile	2009-04-01 22:11:59 UTC (rev 4151)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_dom/Makefile	2009-04-02 01:43:50 UTC (rev 4152)
@@ -10,3 +10,30 @@
 CONFIGURE_ARGS += --with-libxml-dir=$(prefix)
 
 PKGFILES_CSWphp5dom = .*/lib/php/extensions/.*/dom.*
+
+define CSWphp5dom_postinstall
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Post Install <===]"
+echo "   ===> Enabling dom extension"
+
+perl -i -plne 's|;extension=dom.so|extension=dom.so|' ${PHP_INI}
+
+exit 0
+endef
+
+define CSWphp5dom_preremove
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Pre Remove <===]"
+echo "   ===> Disabling dom extension"
+
+perl -i -plne 's|extension=dom.so|;extension=dom.so|' ${PHP_INI}
+
+exit 0
+endef
+

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_exif/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_exif/Makefile	2009-04-01 22:11:59 UTC (rev 4151)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_exif/Makefile	2009-04-02 01:43:50 UTC (rev 4152)
@@ -12,3 +12,30 @@
 export CPPFLAGS
 
 PKGFILES_CSWphp5exif = .*/lib/php/extensions/.*/exif.*
+
+define CSWphp5exif_postinstall
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Post Install <===]"
+echo "   ===> Enabling exif extension"
+
+perl -i -plne 's|;extension=exif.so|extension=exif.so|' ${PHP_INI}
+
+exit 0
+endef
+
+define CSWphp5exif_preremove
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Pre Remove <===]"
+echo "   ===> Disabling exif extension"
+
+perl -i -plne 's|extension=exif.so|;extension=exif.so|' ${PHP_INI}
+
+exit 0
+endef
+

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_filter/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_filter/Makefile	2009-04-01 22:11:59 UTC (rev 4151)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_filter/Makefile	2009-04-02 01:43:50 UTC (rev 4152)
@@ -10,3 +10,30 @@
 CONFIGURE_ARGS += --with-pcre-dir=$(prefix)
 
 PKGFILES_CSWphp5filter = .*/lib/php/extensions/.*/filter.*
+
+define CSWphp5filter_postinstall
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Post Install <===]"
+echo "   ===> Enabling filter extension"
+
+perl -i -plne 's|;extension=filter.so|extension=filter.so|' ${PHP_INI}
+
+exit 0
+endef
+
+define CSWphp5filter_preremove
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Pre Remove <===]"
+echo "   ===> Disabling filter extension"
+
+perl -i -plne 's|extension=filter.so|;extension=filter.so|' ${PHP_INI}
+
+exit 0
+endef
+

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_ftp/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_ftp/Makefile	2009-04-01 22:11:59 UTC (rev 4151)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_ftp/Makefile	2009-04-02 01:43:50 UTC (rev 4152)
@@ -9,3 +9,30 @@
 CONFIGURE_ARGS += --enable-ftp=shared
 
 PKGFILES_CSWphp5ftp = .*/lib/php/extensions/.*/ftp.*
+
+define CSWphp5ftp_postinstall
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Post Install <===]"
+echo "   ===> Enabling ftp extension"
+
+perl -i -plne 's|;extension=ftp.so|extension=ftp.so|' ${PHP_INI}
+
+exit 0
+endef
+
+define CSWphp5ftp_preremove
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Pre Remove <===]"
+echo "   ===> Disabling ftp extension"
+
+perl -i -plne 's|extension=ftp.so|;extension=ftp.so|' ${PHP_INI}
+
+exit 0
+endef
+

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_gd/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_gd/Makefile	2009-04-01 22:11:59 UTC (rev 4151)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_gd/Makefile	2009-04-02 01:43:50 UTC (rev 4152)
@@ -20,3 +20,30 @@
 CONFIGURE_ARGS += --enable-gd-jis-conv
 
 PKGFILES_CSWphp5gd  = .*/lib/php/extensions/.*/gd.*
+
+define CSWphp5gd_postinstall
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Post Install <===]"
+echo "   ===> Enabling gd extension"
+
+perl -i -plne 's|;extension=gd.so|extension=gd.so|' ${PHP_INI}
+
+exit 0
+endef
+
+define CSWphp5gd_preremove
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Pre Remove <===]"
+echo "   ===> Disabling gd extension"
+
+perl -i -plne 's|extension=gd.so|;extension=gd.so|' ${PHP_INI}
+
+exit 0
+endef
+

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_gettext/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_gettext/Makefile	2009-04-01 22:11:59 UTC (rev 4151)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_gettext/Makefile	2009-04-02 01:43:50 UTC (rev 4152)
@@ -9,3 +9,30 @@
 CONFIGURE_ARGS += --with-gettext=shared,$(prefix)
 
 PKGFILES_CSWphp5gettext = .*/lib/php/extensions/.*/gettext.*
+
+define CSWphp5gettext_postinstall
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Post Install <===]"
+echo "   ===> Enabling gettext extension"
+
+perl -i -plne 's|;extension=gettext.so|extension=gettext.so|' ${PHP_INI}
+
+exit 0
+endef
+
+define CSWphp5gettext_preremove
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Pre Remove <===]"
+echo "   ===> Disabling gettext extension"
+
+perl -i -plne 's|extension=gettext.so|;extension=gettext.so|' ${PHP_INI}
+
+exit 0
+endef
+

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_gmp/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_gmp/Makefile	2009-04-01 22:11:59 UTC (rev 4151)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_gmp/Makefile	2009-04-02 01:43:50 UTC (rev 4152)
@@ -9,3 +9,30 @@
 CONFIGURE_ARGS += --with-gmp=shared,$(prefix)
 
 PKGFILES_CSWphp5gmp = .*/lib/php/extensions/.*/gmp.*
+
+define CSWphp5gmp_postinstall
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Post Install <===]"
+echo "   ===> Enabling gmp extension"
+
+perl -i -plne 's|;extension=gmp.so|extension=gmp.so|' ${PHP_INI}
+
+exit 0
+endef
+
+define CSWphp5gmp_preremove
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Pre Remove <===]"
+echo "   ===> Disabling gmp extension"
+
+perl -i -plne 's|extension=gmp.so|;extension=gmp.so|' ${PHP_INI}
+
+exit 0
+endef
+

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_hash/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_hash/Makefile	2009-04-01 22:11:59 UTC (rev 4151)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_hash/Makefile	2009-04-02 01:43:50 UTC (rev 4152)
@@ -9,3 +9,30 @@
 CONFIGURE_ARGS += --enable-hash=shared
 
 PKGFILES_CSWphp5hash = .*/lib/php/extensions/.*/hash.*
+
+define CSWphp5hash_postinstall
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Post Install <===]"
+echo "   ===> Enabling hash extension"
+
+perl -i -plne 's|;extension=hash.so|extension=hash.so|' ${PHP_INI}
+
+exit 0
+endef
+
+define CSWphp5hash_preremove
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Pre Remove <===]"
+echo "   ===> Disabling hash extension"
+
+perl -i -plne 's|extension=hash.so|;extension=hash.so|' ${PHP_INI}
+
+exit 0
+endef
+

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_iconv/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_iconv/Makefile	2009-04-01 22:11:59 UTC (rev 4151)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_iconv/Makefile	2009-04-02 01:43:50 UTC (rev 4152)
@@ -16,3 +16,30 @@
 #PATCHFILES += iconv.diff
 
 PKGFILES_CSWphp5iconv = .*/lib/php/extensions/.*/iconv.*
+
+define CSWphp5iconv_postinstall
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Post Install <===]"
+echo "   ===> Enabling iconv extension"
+
+perl -i -plne 's|;extension=iconv.so|extension=iconv.so|' ${PHP_INI}
+
+exit 0
+endef
+
+define CSWphp5iconv_preremove
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Pre Remove <===]"
+echo "   ===> Disabling iconv extension"
+
+perl -i -plne 's|extension=iconv.so|;extension=iconv.so|' ${PHP_INI}
+
+exit 0
+endef
+

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_imap/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_imap/Makefile	2009-04-01 22:11:59 UTC (rev 4151)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_imap/Makefile	2009-04-02 01:43:50 UTC (rev 4152)
@@ -11,3 +11,30 @@
 CONFIGURE_ARGS += --with-imap-ssl=$(prefix)
 
 PKGFILES_CSWphp5imap = .*/lib/php/extensions/.*/imap.*
+
+define CSWphp5imap_postinstall
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Post Install <===]"
+echo "   ===> Enabling imap extension"
+
+perl -i -plne 's|;extension=imap.so|extension=imap.so|' ${PHP_INI}
+
+exit 0
+endef
+
+define CSWphp5imap_preremove
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Pre Remove <===]"
+echo "   ===> Disabling imap extension"
+
+perl -i -plne 's|extension=imap.so|;extension=imap.so|' ${PHP_INI}
+
+exit 0
+endef
+

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_json/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_json/Makefile	2009-04-01 22:11:59 UTC (rev 4151)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_json/Makefile	2009-04-02 01:43:50 UTC (rev 4152)
@@ -9,3 +9,30 @@
 CONFIGURE_ARGS += --enable-json=shared
 
 PKGFILES_CSWphp5json = .*/lib/php/extensions/.*/json.*
+
+define CSWphp5json_postinstall
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Post Install <===]"
+echo "   ===> Enabling json extension"
+
+perl -i -plne 's|;extension=json.so|extension=json.so|' ${PHP_INI}
+
+exit 0
+endef
+
+define CSWphp5json_preremove
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Pre Remove <===]"
+echo "   ===> Disabling json extension"
+
+perl -i -plne 's|extension=json.so|;extension=json.so|' ${PHP_INI}
+
+exit 0
+endef
+

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_ldap/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_ldap/Makefile	2009-04-01 22:11:59 UTC (rev 4151)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_ldap/Makefile	2009-04-02 01:43:50 UTC (rev 4152)
@@ -10,3 +10,31 @@
 CONFIGURE_ARGS += --with-ldap-sasl=$(prefix)
 
 PKGFILES_CSWphp5ldap = .*/lib/php/extensions/.*/ldap.*
+
+
+define CSWphp5ldap_postinstall
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Post Install <===]"
+echo "   ===> Enabling ldap extension"
+
+perl -i -plne 's|;extension=ldap.so|extension=ldap.so|' ${PHP_INI}
+
+exit 0
+endef
+
+define CSWphp5ldap_preremove
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Pre Remove <===]"
+echo "   ===> Disabling ldap extension"
+
+perl -i -plne 's|extension=ldap.so|;extension=ldap.so|' ${PHP_INI}
+
+exit 0
+endef
+

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_mbstring/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_mbstring/Makefile	2009-04-01 22:11:59 UTC (rev 4151)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_mbstring/Makefile	2009-04-02 01:43:50 UTC (rev 4152)
@@ -11,3 +11,30 @@
 CONFIGURE_ARGS += --enable-mbregex=shared
 
 PKGFILES_CSWphp5mbstring = .*/lib/php/extensions/.*/mbstring.*
+
+define CSWphp5mbstring_postinstall
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Post Install <===]"
+echo "   ===> Enabling mbstring extension"
+
+perl -i -plne 's|;extension=mbstring.so|extension=mbstring.so|' ${PHP_INI}
+
+exit 0
+endef
+
+define CSWphp5mbstring_preremove
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Pre Remove <===]"
+echo "   ===> Disabling mbstring extension"
+
+perl -i -plne 's|extension=mbstring.so|;extension=mbstring.so|' ${PHP_INI}
+
+exit 0
+endef
+

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_mcrypt/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_mcrypt/Makefile	2009-04-01 22:11:59 UTC (rev 4151)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_mcrypt/Makefile	2009-04-02 01:43:50 UTC (rev 4152)
@@ -9,3 +9,30 @@
 CONFIGURE_ARGS += --with-mcrypt=shared,$(prefix)
 
 PKGFILES_CSWphp5mcrypt = .*/lib/php/extensions/.*/mcrypt.*
+
+define CSWphp5mcrypt_postinstall
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Post Install <===]"
+echo "   ===> Enabling mcrypt extension"
+
+perl -i -plne 's|;extension=mcrypt.so|extension=mcrypt.so|' ${PHP_INI}
+
+exit 0
+endef
+
+define CSWphp5mcrypt_preremove
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Pre Remove <===]"
+echo "   ===> Disabling mcrypt extension"
+
+perl -i -plne 's|extension=mcrypt.so|;extension=mcrypt.so|' ${PHP_INI}
+
+exit 0
+endef
+

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_mhash/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_mhash/Makefile	2009-04-01 22:11:59 UTC (rev 4151)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_mhash/Makefile	2009-04-02 01:43:50 UTC (rev 4152)
@@ -9,3 +9,30 @@
 CONFIGURE_ARGS += --with-mhash=shared,$(prefix)
 
 PKGFILES_CSWphp5mhash = .*/lib/php/extensions/.*/mhash.*
+
+define CSWphp5mhash_postinstall
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Post Install <===]"
+echo "   ===> Enabling mhash extension"
+
+perl -i -plne 's|;extension=mhash.so|extension=mhash.so|' ${PHP_INI}
+
+exit 0
+endef
+
+define CSWphp5mhash_preremove
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Pre Remove <===]"
+echo "   ===> Disabling mhash extension"
+
+perl -i -plne 's|extension=mhash.so|;extension=mhash.so|' ${PHP_INI}
+
+exit 0
+endef
+

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_mime_magic/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_mime_magic/Makefile	2009-04-01 22:11:59 UTC (rev 4151)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_mime_magic/Makefile	2009-04-02 01:43:50 UTC (rev 4152)
@@ -9,3 +9,30 @@
 CONFIGURE_ARGS += --with-mime-magic=shared
 
 PKGFILES_CSWphp5mimemagic = .*/lib/php/extensions/.*/mime_magic.*
+
+define CSWphp5mimemagic_postinstall
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Post Install <===]"
+echo "   ===> Enabling mime_magic extension"
+
+perl -i -plne 's|;extension=mime_magic.so|extension=mime_magic.so|' ${PHP_INI}
+
+exit 0
+endef
+
+define CSWphp5mimemagic_preremove
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Pre Remove <===]"
+echo "   ===> Disabling mime_magic extension"
+
+perl -i -plne 's|extension=mime_magic.so|;extension=mime_magic.so|' ${PHP_INI}
+
+exit 0
+endef
+

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_mssql/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_mssql/Makefile	2009-04-01 22:11:59 UTC (rev 4151)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_mssql/Makefile	2009-04-02 01:43:50 UTC (rev 4152)
@@ -9,3 +9,30 @@
 CONFIGURE_ARGS += --with-mssql=shared,$(prefix)
 
 PKGFILES_CSWphp5mssql = .*/lib/php/extensions/.*/mssql.*
+
+define CSWphp5mssql_postinstall
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Post Install <===]"
+echo "   ===> Enabling mssql extension"
+
+perl -i -plne 's|;extension=mssql.so|extension=mssql.so|' ${PHP_INI}
+
+exit 0
+endef
+
+define CSWphp5mssql_preremove
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Pre Remove <===]"
+echo "   ===> Disabling mssql extension"
+
+perl -i -plne 's|extension=mssql.so|;extension=mssql.so|' ${PHP_INI}
+
+exit 0
+endef
+

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_mysql/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_mysql/Makefile	2009-04-01 22:11:59 UTC (rev 4151)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_mysql/Makefile	2009-04-02 01:43:50 UTC (rev 4152)
@@ -10,3 +10,30 @@
 
 PKGFILES_CSWphp5mysql = .*/lib/php/extensions/.*/mysql\.so
 PKGFILES_CSWphp5mysql += .*/lib/php/extensions/.*/mysql\.a
+
+define CSWphp5mysql_postinstall
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Post Install <===]"
+echo "   ===> Enabling mysql extension"
+
+perl -i -plne 's|;extension=mysql.so|extension=mysql.so|' ${PHP_INI}
+
+exit 0
+endef
+
+define CSWphp5mysql_preremove
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Pre Remove <===]"
+echo "   ===> Disabling mysql extension"
+
+perl -i -plne 's|extension=mysql.so|;extension=mysql.so|' ${PHP_INI}
+
+exit 0
+endef
+

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_mysqli/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_mysqli/Makefile	2009-04-01 22:11:59 UTC (rev 4151)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_mysqli/Makefile	2009-04-02 01:43:50 UTC (rev 4152)
@@ -9,3 +9,30 @@
 CONFIGURE_ARGS += --with-mysqli=shared,$(bindir)/mysql_config
 
 PKGFILES_CSWphp5mysqli = .*/lib/php/extensions/.*/mysqli.*
+
+define CSWphp5mysqli_postinstall
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Post Install <===]"
+echo "   ===> Enabling mysqli extension"
+
+perl -i -plne 's|;extension=mysqli.so|extension=mysqli.so|' ${PHP_INI}
+
+exit 0
+endef
+
+define CSWphp5mysqli_preremove
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Pre Remove <===]"
+echo "   ===> Disabling mysqli extension"
+
+perl -i -plne 's|extension=mysqli.so|;extension=mysqli.so|' ${PHP_INI}
+
+exit 0
+endef
+

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_ncurses/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_ncurses/Makefile	2009-04-01 22:11:59 UTC (rev 4151)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_ncurses/Makefile	2009-04-02 01:43:50 UTC (rev 4152)
@@ -9,3 +9,30 @@
 CONFIGURE_ARGS += --with-ncurses=shared,$(prefix)
 
 PKGFILES_CSWphp5ncurses = .*/lib/php/extensions/.*/ncurses.*
+
+define CSWphp5ncurses_postinstall
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Post Install <===]"
+echo "   ===> Enabling ncurses extension"
+
+perl -i -plne 's|;extension=ncurses.so|extension=ncurses.so|' ${PHP_INI}
+
+exit 0
+endef
+
+define CSWphp5ncurses_preremove
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Pre Remove <===]"
+echo "   ===> Disabling ncurses extension"
+
+perl -i -plne 's|extension=ncurses.so|;extension=ncurses.so|' ${PHP_INI}
+
+exit 0
+endef
+

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_odbc/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_odbc/Makefile	2009-04-01 22:11:59 UTC (rev 4151)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_odbc/Makefile	2009-04-02 01:43:50 UTC (rev 4152)
@@ -11,3 +11,30 @@
 CONFIGURE_ARGS += --with-unixODBC=shared,$(prefix)
 
 PKGFILES_CSWphp5odbc = .*/lib/php/extensions/.*/odbc.*
+
+define CSWphp5odbc_postinstall
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Post Install <===]"
+echo "   ===> Enabling odbc extension"
+
+perl -i -plne 's|;extension=odbc.so|extension=odbc.so|' ${PHP_INI}
+
+exit 0
+endef
+
+define CSWphp5odbc_preremove
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Pre Remove <===]"
+echo "   ===> Disabling odbc extension"
+
+perl -i -plne 's|extension=odbc.so|;extension=odbc.so|' ${PHP_INI}
+
+exit 0
+endef
+

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_openssl/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_openssl/Makefile	2009-04-01 22:11:59 UTC (rev 4151)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_openssl/Makefile	2009-04-02 01:43:50 UTC (rev 4152)
@@ -9,3 +9,30 @@
 CONFIGURE_ARGS += --with-openssl=shared,$(prefix)
 
 PKGFILES_CSWphp5openssl = .*/lib/php/extensions/.*/openssl.*
+
+define CSWphp5openssl_postinstall
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Post Install <===]"
+echo "   ===> Enabling openssl extension"
+
+perl -i -plne 's|;extension=openssl.so|extension=openssl.so|' ${PHP_INI}
+
+exit 0
+endef
+
+define CSWphp5openssl_preremove
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Pre Remove <===]"
+echo "   ===> Disabling openssl extension"
+
+perl -i -plne 's|extension=openssl.so|;extension=openssl.so|' ${PHP_INI}
+
+exit 0
+endef
+

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_pcntl/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_pcntl/Makefile	2009-04-01 22:11:59 UTC (rev 4151)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_pcntl/Makefile	2009-04-02 01:43:50 UTC (rev 4152)
@@ -9,3 +9,30 @@
 CONFIGURE_ARGS += --enable-pcntl=shared
 
 PKGFILES_CSWphp5pcntl = .*/lib/php/extensions/.*/pcntl.*
+
+define CSWphp5pcntl_postinstall
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Post Install <===]"
+echo "   ===> Enabling pcntl extension"
+
+perl -i -plne 's|;extension=pcntl.so|extension=pcntl.so|' ${PHP_INI}
+
+exit 0
+endef
+
+define CSWphp5pcntl_preremove
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Pre Remove <===]"
+echo "   ===> Disabling pcntl extension"
+
+perl -i -plne 's|extension=pcntl.so|;extension=pcntl.so|' ${PHP_INI}
+
+exit 0
+endef
+

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_pdomysql/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_pdomysql/Makefile	2009-04-01 22:11:59 UTC (rev 4151)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_pdomysql/Makefile	2009-04-02 01:43:50 UTC (rev 4152)
@@ -10,3 +10,30 @@
 CONFIGURE_ARGS += --with-zlib-dir=$(prefix)
 
 PKGFILES_CSWphp5pdomysql = .*/lib/php/extensions/.*/pdo_mysql.*
+
+define CSWphp5pdomysql_postinstall
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Post Install <===]"
+echo "   ===> Enabling pdo_mysql extension"
+
+perl -i -plne 's|;extension=pdo_mysql.so|extension=pdo_mysql.so|' ${PHP_INI}
+
+exit 0
+endef
+
+define CSWphp5pdomysql_preremove
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Pre Remove <===]"
+echo "   ===> Disabling pdo_mysql extension"
+
+perl -i -plne 's|extension=pdo_mysql.so|;extension=pdo_mysql.so|' ${PHP_INI}
+
+exit 0
+endef
+

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_pdoodbc/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_pdoodbc/Makefile	2009-04-01 22:11:59 UTC (rev 4151)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_pdoodbc/Makefile	2009-04-02 01:43:50 UTC (rev 4152)
@@ -9,3 +9,30 @@
 CONFIGURE_ARGS += --with-pdo-odbc=shared,unixODBC,$(prefix)
 
 PKGFILES_CSWphp5pdoodbc = .*/lib/php/extensions/.*/pdo_odbc.*
+
+define CSWphp5pdoodbc_postinstall
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Post Install <===]"
+echo "   ===> Enabling pdo_odbc extension"
+
+perl -i -plne 's|;extension=pdo_odbc.so|extension=pdo_odbc.so|' ${PHP_INI}
+
+exit 0
+endef
+
+define CSWphp5pdoodbc_preremove
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Pre Remove <===]"
+echo "   ===> Disabling pdo_odbc extension"
+
+perl -i -plne 's|extension=pdo_odbc.so|;extension=pdo_odbc.so|' ${PHP_INI}
+
+exit 0
+endef
+

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_pdopgsql/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_pdopgsql/Makefile	2009-04-01 22:11:59 UTC (rev 4151)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_pdopgsql/Makefile	2009-04-02 01:43:50 UTC (rev 4152)
@@ -11,3 +11,30 @@
 CONFIGURE_ARGS += --with-pdo-pgsql=shared,$(prefix)/postgresql
 
 PKGFILES_CSWphp5pdopgsql = .*/lib/php/extensions/.*/pdo_pgsql.*
+
+define CSWphp5pdopgsql_postinstall
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Post Install <===]"
+echo "   ===> Enabling pdo_pgsql extension"
+
+perl -i -plne 's|;extension=pdo_pgsql.so|extension=pdo_pgsql.so|' ${PHP_INI}
+
+exit 0
+endef
+
+define CSWphp5pdopgsql_preremove
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Pre Remove <===]"
+echo "   ===> Disabling pdo_pgsql extension"
+
+perl -i -plne 's|extension=pdo_pgsql.so|;extension=pdo_pgsql.so|' ${PHP_INI}
+
+exit 0
+endef
+

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_pdosqlite/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_pdosqlite/Makefile	2009-04-01 22:11:59 UTC (rev 4151)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_pdosqlite/Makefile	2009-04-02 01:43:50 UTC (rev 4152)
@@ -9,3 +9,30 @@
 CONFIGURE_ARGS += --with-pdo-sqlite=shared
 
 PKGFILES_CSWphp5pdosqlite = .*/lib/php/extensions/.*/pdo_sqlite.*
+
+define CSWphp5pdosqlite_postinstall
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Post Install <===]"
+echo "   ===> Enabling pdo_sqlite extension"
+
+perl -i -plne 's|;extension=pdo_sqlite.so|extension=pdo_sqlite.so|' ${PHP_INI}
+
+exit 0
+endef
+
+define CSWphp5pdosqlite_preremove
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Pre Remove <===]"
+echo "   ===> Disabling pdo_sqlite extension"
+
+perl -i -plne 's|extension=pdo_sqlite.so|;extension=pdo_sqlite.so|' ${PHP_INI}
+
+exit 0
+endef
+

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_pgsql/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_pgsql/Makefile	2009-04-01 22:11:59 UTC (rev 4151)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_pgsql/Makefile	2009-04-02 01:43:50 UTC (rev 4152)
@@ -11,3 +11,30 @@
 CONFIGURE_ARGS += --with-pgsql=shared,$(prefix)/postgresql
 
 PKGFILES_CSWphp5pgsql = .*/lib/php/extensions/.*/pgsql.*
+
+define CSWphp5pgsql_postinstall
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Post Install <===]"
+echo "   ===> Enabling pgsql extension"
+
+perl -i -plne 's|;extension=pgsql.so|extension=pgsql.so|' ${PHP_INI}
+
+exit 0
+endef
+
+define CSWphp5pgsql_preremove
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Pre Remove <===]"
+echo "   ===> Disabling pgsql extension"
+
+perl -i -plne 's|extension=pgsql.so|;extension=pgsql.so|' ${PHP_INI}
+
+exit 0
+endef
+

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_posix/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_posix/Makefile	2009-04-01 22:11:59 UTC (rev 4151)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_posix/Makefile	2009-04-02 01:43:50 UTC (rev 4152)
@@ -9,3 +9,30 @@
 CONFIGURE_ARGS += --enable-posix=shared
 
 PKGFILES_CSWphp5posix = .*/lib/php/extensions/.*/posix.*
+
+define CSWphp5posix_postinstall
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Post Install <===]"
+echo "   ===> Enabling posix extension"
+
+perl -i -plne 's|;extension=posix.so|extension=posix.so|' ${PHP_INI}
+
+exit 0
+endef
+
+define CSWphp5posix_preremove
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Pre Remove <===]"
+echo "   ===> Disabling posix extension"
+
+perl -i -plne 's|extension=posix.so|;extension=posix.so|' ${PHP_INI}
+
+exit 0
+endef
+

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_pspell/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_pspell/Makefile	2009-04-01 22:11:59 UTC (rev 4151)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_pspell/Makefile	2009-04-02 01:43:50 UTC (rev 4152)
@@ -9,3 +9,30 @@
 CONFIGURE_ARGS += --with-pspell=shared,$(prefix)
 
 PKGFILES_CSWphp5pspell = .*/lib/php/extensions/.*/pspell.*
+
+define CSWphp5pspell_postinstall
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Post Install <===]"
+echo "   ===> Enabling pspell extension"
+
+perl -i -plne 's|;extension=pspell.so|extension=pspell.so|' ${PHP_INI}
+
+exit 0
+endef
+
+define CSWphp5pspell_preremove
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Pre Remove <===]"
+echo "   ===> Disabling pspell extension"
+
+perl -i -plne 's|extension=pspell.so|;extension=pspell.so|' ${PHP_INI}
+
+exit 0
+endef
+

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_readline/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_readline/Makefile	2009-04-01 22:11:59 UTC (rev 4151)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_readline/Makefile	2009-04-02 01:43:50 UTC (rev 4152)
@@ -10,3 +10,30 @@
 CONFIGURE_ARGS += --with-readline=shared,/opt/csw
 
 PKGFILES_CSWphp5readline = .*/lib/php/extensions/.*/readline.*
+
+define CSWphp5readline_postinstall
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Post Install <===]"
+echo "   ===> Enabling readline extension"
+
+perl -i -plne 's|;extension=readline.so|extension=readline.so|' ${PHP_INI}
+
+exit 0
+endef
+
+define CSWphp5readline_preremove
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Pre Remove <===]"
+echo "   ===> Disabling readline extension"
+
+perl -i -plne 's|extension=readline.so|;extension=readline.so|' ${PHP_INI}
+
+exit 0
+endef
+

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_session/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_session/Makefile	2009-04-01 22:11:59 UTC (rev 4151)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_session/Makefile	2009-04-02 01:43:50 UTC (rev 4152)
@@ -9,3 +9,30 @@
 CONFIGURE_ARGS += --enable-session=shared
 
 PKGFILES_CSWphp5session = .*/lib/php/extensions/.*/session.*
+
+define CSWphp5session_postinstall
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Post Install <===]"
+echo "   ===> Enabling session extension"
+
+perl -i -plne 's|;extension=session.so|extension=session.so|' ${PHP_INI}
+
+exit 0
+endef
+
+define CSWphp5session_preremove
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Pre Remove <===]"
+echo "   ===> Disabling session extension"
+
+perl -i -plne 's|extension=session.so|;extension=session.so|' ${PHP_INI}
+
+exit 0
+endef
+

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_shmop/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_shmop/Makefile	2009-04-01 22:11:59 UTC (rev 4151)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_shmop/Makefile	2009-04-02 01:43:50 UTC (rev 4152)
@@ -9,3 +9,30 @@
 CONFIGURE_ARGS += --enable-shmop=shared
 
 PKGFILES_CSWphp5shmop = .*/lib/php/extensions/.*/shmop.*
+
+define CSWphp5shmop_postinstall
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Post Install <===]"
+echo "   ===> Enabling shmop extension"
+
+perl -i -plne 's|;extension=shmop.so|extension=shmop.so|' ${PHP_INI}
+
+exit 0
+endef
+
+define CSWphp5shmop_preremove
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Pre Remove <===]"
+echo "   ===> Disabling shmop extension"
+
+perl -i -plne 's|extension=shmop.so|;extension=shmop.so|' ${PHP_INI}
+
+exit 0
+endef
+

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_simplexml/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_simplexml/Makefile	2009-04-01 22:11:59 UTC (rev 4151)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_simplexml/Makefile	2009-04-02 01:43:50 UTC (rev 4152)
@@ -6,3 +6,29 @@
 CONFIGURE_ARGS += --enable-simplexml
 CONFIGURE_ARGS += --with-libxml-dir=$(prefix)
 
+define CSWphp5simplexml_postinstall
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Post Install <===]"
+echo "   ===> Enabling simplexml extension"
+
+perl -i -plne 's|;extension=simplexml.so|extension=simplexml.so|' ${PHP_INI}
+
+exit 0
+endef
+
+define CSWphp5simplexml_preremove
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Pre Remove <===]"
+echo "   ===> Disabling simplexml extension"
+
+perl -i -plne 's|extension=simplexml.so|;extension=simplexml.so|' ${PHP_INI}
+
+exit 0
+endef
+

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_snmp/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_snmp/Makefile	2009-04-01 22:11:59 UTC (rev 4151)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_snmp/Makefile	2009-04-02 01:43:50 UTC (rev 4152)
@@ -9,3 +9,30 @@
 CONFIGURE_ARGS += --with-snmp=shared,$(prefix)
 
 PKGFILES_CSWphp5snmp = .*/lib/php/extensions/.*/snmp.*
+
+define CSWphp5snmp_postinstall
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Post Install <===]"
+echo "   ===> Enabling snmp extension"
+
+perl -i -plne 's|;extension=snmp.so|extension=snmp.so|' ${PHP_INI}
+
+exit 0
+endef
+
+define CSWphp5snmp_preremove
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Pre Remove <===]"
+echo "   ===> Disabling snmp extension"
+
+perl -i -plne 's|extension=snmp.so|;extension=snmp.so|' ${PHP_INI}
+
+exit 0
+endef
+

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_soap/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_soap/Makefile	2009-04-01 22:11:59 UTC (rev 4151)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_soap/Makefile	2009-04-02 01:43:50 UTC (rev 4152)
@@ -10,3 +10,30 @@
 CONFIGURE_ARGS += --with-libxml-dir=$(prefix)
 
 PKGFILES_CSWphp5soap = .*/lib/php/extensions/.*/soap.*
+
+define CSWphp5soap_postinstall
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Post Install <===]"
+echo "   ===> Enabling soap extension"
+
+perl -i -plne 's|;extension=soap.so|extension=soap.so|' ${PHP_INI}
+
+exit 0
+endef
+
+define CSWphp5soap_preremove
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Pre Remove <===]"
+echo "   ===> Disabling soap extension"
+
+perl -i -plne 's|extension=soap.so|;extension=soap.so|' ${PHP_INI}
+
+exit 0
+endef
+

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_sockets/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_sockets/Makefile	2009-04-01 22:11:59 UTC (rev 4151)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_sockets/Makefile	2009-04-02 01:43:50 UTC (rev 4152)
@@ -9,3 +9,30 @@
 CONFIGURE_ARGS += --enable-sockets=shared
 
 PKGFILES_CSWphp5sockets = .*/lib/php/extensions/.*/sockets.*
+
+define CSWphp5sockets_postinstall
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Post Install <===]"
+echo "   ===> Enabling sockets extension"
+
+perl -i -plne 's|;extension=sockets.so|extension=sockets.so|' ${PHP_INI}
+
+exit 0
+endef
+
+define CSWphp5sockets_preremove
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Pre Remove <===]"
+echo "   ===> Disabling sockets extension"
+
+perl -i -plne 's|extension=sockets.so|;extension=sockets.so|' ${PHP_INI}
+
+exit 0
+endef
+

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_sqlite/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_sqlite/Makefile	2009-04-01 22:11:59 UTC (rev 4151)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_sqlite/Makefile	2009-04-02 01:43:50 UTC (rev 4152)
@@ -10,3 +10,30 @@
 CONFIGURE_ARGS += --enable-sqlite-utf8
 
 PKGFILES_CSWphp5sqlite = .*/lib/php/extensions/.*/sqlite.*
+
+define CSWphp5sqlite_postinstall
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Post Install <===]"
+echo "   ===> Enabling sqlite extension"
+
+perl -i -plne 's|;extension=sqlite.so|extension=sqlite.so|' ${PHP_INI}
+
+exit 0
+endef
+
+define CSWphp5sqlite_preremove
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Pre Remove <===]"
+echo "   ===> Disabling sqlite extension"
+
+perl -i -plne 's|extension=sqlite.so|;extension=sqlite.so|' ${PHP_INI}
+
+exit 0
+endef
+

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_sysvmsg/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_sysvmsg/Makefile	2009-04-01 22:11:59 UTC (rev 4151)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_sysvmsg/Makefile	2009-04-02 01:43:50 UTC (rev 4152)
@@ -9,3 +9,30 @@
 CONFIGURE_ARGS += --enable-sysvsem=shared
 
 PKGFILES_CSWphp5sysvmsg = .*/lib/php/extensions/.*/sysvmsg.*
+
+define CSWphp5sysvmsg_postinstall
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Post Install <===]"
+echo "   ===> Enabling sysvmsg extension"
+
+perl -i -plne 's|;extension=sysvmsg.so|extension=sysvmsg.so|' ${PHP_INI}
+
+exit 0
+endef
+
+define CSWphp5sysvmsg_preremove
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Pre Remove <===]"
+echo "   ===> Disabling sysvmsg extension"
+
+perl -i -plne 's|extension=sysvmsg.so|;extension=sysvmsg.so|' ${PHP_INI}
+
+exit 0
+endef
+

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_sysvsem/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_sysvsem/Makefile	2009-04-01 22:11:59 UTC (rev 4151)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_sysvsem/Makefile	2009-04-02 01:43:50 UTC (rev 4152)
@@ -9,3 +9,30 @@
 CONFIGURE_ARGS += --enable-sysvsem=shared
 
 PKGFILES_CSWphp5sysvsem = .*/lib/php/extensions/.*/sysvsem.*
+
+define CSWphp5sysvsem_postinstall
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Post Install <===]"
+echo "   ===> Enabling sysvsem extension"
+
+perl -i -plne 's|;extension=sysvsem.so|extension=sysvsem.so|' ${PHP_INI}
+
+exit 0
+endef
+
+define CSWphp5sysvsem_preremove
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Pre Remove <===]"
+echo "   ===> Disabling sysvsem extension"
+
+perl -i -plne 's|extension=sysvsem.so|;extension=sysvsem.so|' ${PHP_INI}
+
+exit 0
+endef
+

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_sysvshm/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_sysvshm/Makefile	2009-04-01 22:11:59 UTC (rev 4151)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_sysvshm/Makefile	2009-04-02 01:43:50 UTC (rev 4152)
@@ -9,3 +9,30 @@
 CONFIGURE_ARGS += --enable-sysvshm=shared
 
 PKGFILES_CSWphp5sysvshm = .*/lib/php/extensions/.*/sysvshm.*
+
+define CSWphp5sysvshm_postinstall
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Post Install <===]"
+echo "   ===> Enabling sysvshm extension"
+
+perl -i -plne 's|;extension=sysvshm.so|extension=sysvshm.so|' ${PHP_INI}
+
+exit 0
+endef
+
+define CSWphp5sysvshm_preremove
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Pre Remove <===]"
+echo "   ===> Disabling sysvshm extension"
+
+perl -i -plne 's|extension=sysvshm.so|;extension=sysvshm.so|' ${PHP_INI}
+
+exit 0
+endef
+

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_tidy/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_tidy/Makefile	2009-04-01 22:11:59 UTC (rev 4151)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_tidy/Makefile	2009-04-02 01:43:50 UTC (rev 4152)
@@ -9,3 +9,30 @@
 CONFIGURE_ARGS += --with-tidy=shared,$(prefix)
 
 PKGFILES_CSWphp5tidy = .*/lib/php/extensions/.*/tidy.*
+
+define CSWphp5tidy_postinstall
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Post Install <===]"
+echo "   ===> Enabling tidy extension"
+
+perl -i -plne 's|;extension=tidy.so|extension=tidy.so|' ${PHP_INI}
+
+exit 0
+endef
+
+define CSWphp5tidy_preremove
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Pre Remove <===]"
+echo "   ===> Disabling tidy extension"
+
+perl -i -plne 's|extension=tidy.so|;extension=tidy.so|' ${PHP_INI}
+
+exit 0
+endef
+

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_tokenizer/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_tokenizer/Makefile	2009-04-01 22:11:59 UTC (rev 4151)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_tokenizer/Makefile	2009-04-02 01:43:50 UTC (rev 4152)
@@ -9,3 +9,30 @@
 CONFIGURE_ARGS += --enable-tokenizer=shared
 
 PKGFILES_CSWphp5tokenizer = .*/lib/php/extensions/.*/tokenizer.*
+
+define CSWphp5tokenizer_postinstall
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Post Install <===]"
+echo "   ===> Enabling tokenizer extension"
+
+perl -i -plne 's|;extension=tokenizer.so|extension=tokenizer.so|' ${PHP_INI}
+
+exit 0
+endef
+
+define CSWphp5tokenizer_preremove
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Pre Remove <===]"
+echo "   ===> Disabling tokenizer extension"
+
+perl -i -plne 's|extension=tokenizer.so|;extension=tokenizer.so|' ${PHP_INI}
+
+exit 0
+endef
+

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_wddx/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_wddx/Makefile	2009-04-01 22:11:59 UTC (rev 4151)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_wddx/Makefile	2009-04-02 01:43:50 UTC (rev 4152)
@@ -11,3 +11,30 @@
 CONFIGURE_ARGS += --with-libexpat-dir=$(prefix)
 
 PKGFILES_CSWphp5wddx = .*/lib/php/extensions/.*/wddx.*
+
+define CSWphp5wddx_postinstall
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Post Install <===]"
+echo "   ===> Enabling wddx extension"
+
+perl -i -plne 's|;extension=wddx.so|extension=wddx.so|' ${PHP_INI}
+
+exit 0
+endef
+
+define CSWphp5wddx_preremove
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Pre Remove <===]"
+echo "   ===> Disabling wddx extension"
+
+perl -i -plne 's|extension=wddx.so|;extension=wddx.so|' ${PHP_INI}
+
+exit 0
+endef
+

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_xml/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_xml/Makefile	2009-04-01 22:11:59 UTC (rev 4151)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_xml/Makefile	2009-04-02 01:43:50 UTC (rev 4152)
@@ -3,3 +3,4 @@
 CONFIGURE_ARGS += --enable-xml
 CONFIGURE_ARGS += --with-libxml-dir=$(prefix)
 CONFIGURE_ARGS += --with-libexpat-dir=$(prefix)
+

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_xmlreader/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_xmlreader/Makefile	2009-04-01 22:11:59 UTC (rev 4151)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_xmlreader/Makefile	2009-04-02 01:43:50 UTC (rev 4152)
@@ -10,3 +10,30 @@
 CONFIGURE_ARGS += --with-libxml-dir=$(prefix)
 
 PKGFILES_CSWphp5xmlreader = .*/lib/php/extensions/.*/xmlreader.*
+
+define CSWphp5xmlreader_postinstall
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Post Install <===]"
+echo "   ===> Enabling xmlreader extension"
+
+perl -i -plne 's|;extension=xmlreader.so|extension=xmlreader.so|' ${PHP_INI}
+
+exit 0
+endef
+
+define CSWphp5xmlreader_preremove
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Pre Remove <===]"
+echo "   ===> Disabling xmlreader extension"
+
+perl -i -plne 's|extension=xmlreader.so|;extension=xmlreader.so|' ${PHP_INI}
+
+exit 0
+endef
+

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_xmlrpc/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_xmlrpc/Makefile	2009-04-01 22:11:59 UTC (rev 4151)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_xmlrpc/Makefile	2009-04-02 01:43:50 UTC (rev 4152)
@@ -12,3 +12,30 @@
 CONFIGURE_ARGS += --with-libexpat-dir=$(prefix)
 
 PKGFILES_CSWphp5xmlrpc = .*/lib/php/extensions/.*/xmlrpc.*
+
+define CSWphp5xmlrpc_postinstall
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Post Install <===]"
+echo "   ===> Enabling xmlrpc extension"
+
+perl -i -plne 's|;extension=xmlrpc.so|extension=xmlrpc.so|' ${PHP_INI}
+
+exit 0
+endef
+
+define CSWphp5xmlrpc_preremove
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Pre Remove <===]"
+echo "   ===> Disabling xmlrpc extension"
+
+perl -i -plne 's|extension=xmlrpc.so|;extension=xmlrpc.so|' ${PHP_INI}
+
+exit 0
+endef
+

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_xmlwriter/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_xmlwriter/Makefile	2009-04-01 22:11:59 UTC (rev 4151)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_xmlwriter/Makefile	2009-04-02 01:43:50 UTC (rev 4152)
@@ -10,3 +10,30 @@
 CONFIGURE_ARGS += --with-libxml-dir=$(prefix)
 
 PKGFILES_CSWphp5xmlwriter = .*/lib/php/extensions/.*/xmlwriter.*
+
+define CSWphp5xmlwriter_postinstall
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Post Install <===]"
+echo "   ===> Enabling xmlwriter extension"
+
+perl -i -plne 's|;extension=xmlwriter.so|extension=xmlwriter.so|' ${PHP_INI}
+
+exit 0
+endef
+
+define CSWphp5xmlwriter_preremove
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Pre Remove <===]"
+echo "   ===> Disabling xmlwriter extension"
+
+perl -i -plne 's|extension=xmlwriter.so|;extension=xmlwriter.so|' ${PHP_INI}
+
+exit 0
+endef
+

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_xsl/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_xsl/Makefile	2009-04-01 22:11:59 UTC (rev 4151)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_xsl/Makefile	2009-04-02 01:43:50 UTC (rev 4152)
@@ -10,3 +10,30 @@
 CONFIGURE_ARGS += --with-xsl=shared,$(prefix)
 
 PKGFILES_CSWphp5xsl = .*/lib/php/extensions/.*/xsl.*
+
+define CSWphp5xsl_postinstall
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Post Install <===]"
+echo "   ===> Enabling xsl extension"
+
+perl -i -plne 's|;extension=xsl.so|extension=xsl.so|' ${PHP_INI}
+
+exit 0
+endef
+
+define CSWphp5xsl_preremove
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Pre Remove <===]"
+echo "   ===> Disabling xsl extension"
+
+perl -i -plne 's|extension=xsl.so|;extension=xsl.so|' ${PHP_INI}
+
+exit 0
+endef
+

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_zip/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_zip/Makefile	2009-04-01 22:11:59 UTC (rev 4151)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_zip/Makefile	2009-04-02 01:43:50 UTC (rev 4152)
@@ -10,3 +10,30 @@
 CONFIGURE_ARGS += --with-zlib-dir=$(prefix)
 
 PKGFILES_CSWphp5zip = .*/lib/php/extensions/.*/zip.*
+
+define CSWphp5zip_postinstall
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Post Install <===]"
+echo "   ===> Enabling zip extension"
+
+perl -i -plne 's|;extension=zip.so|extension=zip.so|' ${PHP_INI}
+
+exit 0
+endef
+
+define CSWphp5zip_preremove
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Pre Remove <===]"
+echo "   ===> Disabling zip extension"
+
+perl -i -plne 's|extension=zip.so|;extension=zip.so|' ${PHP_INI}
+
+exit 0
+endef
+


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