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

valholla at users.sourceforge.net valholla at users.sourceforge.net
Thu Apr 2 08:26:32 CEST 2009


Revision: 4154
          http://gar.svn.sourceforge.net/gar/?rev=4154&view=rev
Author:   valholla
Date:     2009-04-02 06:26:31 +0000 (Thu, 02 Apr 2009)

Log Message:
-----------
various fixes

Modified Paths:
--------------
    csw/mgar/pkg/php5/trunk/Makefile
    csw/mgar/pkg/php5/trunk/checksums
    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_recode/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
    csw/mgar/pkg/php5/trunk/extensions/php5_zlib/Makefile
    csw/mgar/pkg/php5/trunk/files/php.ini.CSW

Modified: csw/mgar/pkg/php5/trunk/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/Makefile	2009-04-02 05:10:51 UTC (rev 4153)
+++ csw/mgar/pkg/php5/trunk/Makefile	2009-04-02 06:26:31 UTC (rev 4154)
@@ -62,7 +62,7 @@
 # BerkeleyDB
 EXTRA_LIB += $(prefix)/bdb44/lib
 EXTRA_INC += $(prefix)/bdb44/include
-EXTRA_CFLAGS = $(prefix)/include/ncursesw
+EXTRA_CFLAGS = -I$(prefix)/include/ncursesw
 
 NOISALIST = 1
 DISTFILES += fixme.sh

Modified: csw/mgar/pkg/php5/trunk/checksums
===================================================================
--- csw/mgar/pkg/php5/trunk/checksums	2009-04-02 05:10:51 UTC (rev 4153)
+++ csw/mgar/pkg/php5/trunk/checksums	2009-04-02 06:26:31 UTC (rev 4154)
@@ -1,5 +1,5 @@
 280d6cda7f72a4fc6de42fda21ac2db7  download/php-5.2.9.tar.bz2
-72e4984625252fc0a0c2199a820b7563  download/php.ini.CSW
+160963de6006c558963e5bc37584bf15  download/php.ini.CSW
 90ae3cef3692d7e566c47d89fe39c43d  download/phpext
 d4c93751890b989c5a7b04acb5845fd9  download/pear.conf.CSW
 de56d3571f4484284d106af158bffc38  download/CSWphp5_ext_enable.sh

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_bcmath/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_bcmath/Makefile	2009-04-02 05:10:51 UTC (rev 4153)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_bcmath/Makefile	2009-04-02 06:26:31 UTC (rev 4154)
@@ -18,8 +18,38 @@
 echo "[===> Running Post Install <===]"
 echo "   ===> Enabling bcmath extension"
 
-perl -i -plne 's|;extension=bcmath.so|extension=bcmath.so|' ${PHP_INI}
+if grep 'CSW Extensions' $${PHP_INI} >/dev/null 2>&1; then
+    /bin/true
+else
+    cat << _EOF_
+******************************************************************************
+* WARNING: Could not enable Extension \"bcmath\"
+* 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=bcmath.so
+******************************************************************************
+_EOF_
+exit 0
+fi
 
+if grep 'extension=bcmath.so' $${PHP_INI} >/dev/null 2>&1; then
+    perl -i -plne 's|;extension=bcmath.so|extension=bcmath.so|' $${PHP_INI}
+else
+        perl -i -pe 's|.*CSW Extensions|; CSW Extensions\nextension=bcmath.so|' $${PHP_INI}
+        fi
+
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Enabled Extension \"bcmath\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the install
+******************************************************************************
+_EOF_
+
+
 exit 0
 endef
 
@@ -31,8 +61,16 @@
 echo "[===> Running Pre Remove <===]"
 echo "   ===> Disabling bcmath extension"
 
-perl -i -plne 's|extension=bcmath.so|;extension=bcmath.so|' ${PHP_INI}
+perl -i -plne 's|extension=bcmath.so|;extension=bcmath.so|' $${PHP_INI}
 
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Disabled Extension \"bcmath\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the removal
+******************************************************************************
+_EOF_
+
 exit 0
 endef
-

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_bz2/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_bz2/Makefile	2009-04-02 05:10:51 UTC (rev 4153)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_bz2/Makefile	2009-04-02 06:26:31 UTC (rev 4154)
@@ -18,8 +18,38 @@
 echo "[===> Running Post Install <===]"
 echo "   ===> Enabling bz2 extension"
 
-perl -i -plne 's|;extension=bz2.so|extension=bz2.so|' ${PHP_INI}
+if grep 'CSW Extensions' $${PHP_INI} >/dev/null 2>&1; then
+    /bin/true
+else
+    cat << _EOF_
+******************************************************************************
+* WARNING: Could not enable Extension \"bz2\"
+* 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=bz2.so
+******************************************************************************
+_EOF_
+exit 0
+fi
 
+if grep 'extension=bz2.so' $${PHP_INI} >/dev/null 2>&1; then
+    perl -i -plne 's|;extension=bz2.so|extension=bz2.so|' $${PHP_INI}
+else
+        perl -i -pe 's|.*CSW Extensions|; CSW Extensions\nextension=bz2.so|' $${PHP_INI}
+        fi
+
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Enabled Extension \"bz2\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the install
+******************************************************************************
+_EOF_
+
+
 exit 0
 endef
 
@@ -31,8 +61,16 @@
 echo "[===> Running Pre Remove <===]"
 echo "   ===> Disabling bz2 extension"
 
-perl -i -plne 's|extension=bz2.so|;extension=bz2.so|' ${PHP_INI}
+perl -i -plne 's|extension=bz2.so|;extension=bz2.so|' $${PHP_INI}
 
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Disabled Extension \"bz2\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the removal
+******************************************************************************
+_EOF_
+
 exit 0
 endef
-

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_calendar/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_calendar/Makefile	2009-04-02 05:10:51 UTC (rev 4153)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_calendar/Makefile	2009-04-02 06:26:31 UTC (rev 4154)
@@ -18,8 +18,38 @@
 echo "[===> Running Post Install <===]"
 echo "   ===> Enabling calendar extension"
 
-perl -i -plne 's|;extension=calendar.so|extension=calendar.so|' ${PHP_INI}
+if grep 'CSW Extensions' $${PHP_INI} >/dev/null 2>&1; then
+    /bin/true
+else
+    cat << _EOF_
+******************************************************************************
+* WARNING: Could not enable Extension \"calendar\"
+* 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=calendar.so
+******************************************************************************
+_EOF_
+exit 0
+fi
 
+if grep 'extension=calendar.so' $${PHP_INI} >/dev/null 2>&1; then
+    perl -i -plne 's|;extension=calendar.so|extension=calendar.so|' $${PHP_INI}
+else
+        perl -i -pe 's|.*CSW Extensions|; CSW Extensions\nextension=calendar.so|' $${PHP_INI}
+        fi
+
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Enabled Extension \"calendar\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the install
+******************************************************************************
+_EOF_
+
+
 exit 0
 endef
 
@@ -31,8 +61,16 @@
 echo "[===> Running Pre Remove <===]"
 echo "   ===> Disabling calendar extension"
 
-perl -i -plne 's|extension=calendar.so|;extension=calendar.so|' ${PHP_INI}
+perl -i -plne 's|extension=calendar.so|;extension=calendar.so|' $${PHP_INI}
 
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Disabled Extension \"calendar\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the removal
+******************************************************************************
+_EOF_
+
 exit 0
 endef
-

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_ctype/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_ctype/Makefile	2009-04-02 05:10:51 UTC (rev 4153)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_ctype/Makefile	2009-04-02 06:26:31 UTC (rev 4154)
@@ -18,8 +18,38 @@
 echo "[===> Running Post Install <===]"
 echo "   ===> Enabling ctype extension"
 
-perl -i -plne 's|;extension=ctype.so|extension=ctype.so|' ${PHP_INI}
+if grep 'CSW Extensions' $${PHP_INI} >/dev/null 2>&1; then
+    /bin/true
+else
+    cat << _EOF_
+******************************************************************************
+* WARNING: Could not enable Extension \"ctype\"
+* 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=ctype.so
+******************************************************************************
+_EOF_
+exit 0
+fi
 
+if grep 'extension=ctype.so' $${PHP_INI} >/dev/null 2>&1; then
+    perl -i -plne 's|;extension=ctype.so|extension=ctype.so|' $${PHP_INI}
+else
+        perl -i -pe 's|.*CSW Extensions|; CSW Extensions\nextension=ctype.so|' $${PHP_INI}
+        fi
+
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Enabled Extension \"ctype\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the install
+******************************************************************************
+_EOF_
+
+
 exit 0
 endef
 
@@ -31,8 +61,16 @@
 echo "[===> Running Pre Remove <===]"
 echo "   ===> Disabling ctype extension"
 
-perl -i -plne 's|extension=ctype.so|;extension=ctype.so|' ${PHP_INI}
+perl -i -plne 's|extension=ctype.so|;extension=ctype.so|' $${PHP_INI}
 
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Disabled Extension \"ctype\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the removal
+******************************************************************************
+_EOF_
+
 exit 0
 endef
-

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_curl/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_curl/Makefile	2009-04-02 05:10:51 UTC (rev 4153)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_curl/Makefile	2009-04-02 06:26:31 UTC (rev 4154)
@@ -20,8 +20,38 @@
 echo "[===> Running Post Install <===]"
 echo "   ===> Enabling curl extension"
 
-perl -i -plne 's|;extension=curl.so|extension=curl.so|' ${PHP_INI}
+if grep 'CSW Extensions' $${PHP_INI} >/dev/null 2>&1; then
+    /bin/true
+else
+    cat << _EOF_
+******************************************************************************
+* WARNING: Could not enable Extension \"curl\"
+* 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=curl.so
+******************************************************************************
+_EOF_
+exit 0
+fi
 
+if grep 'extension=curl.so' $${PHP_INI} >/dev/null 2>&1; then
+    perl -i -plne 's|;extension=curl.so|extension=curl.so|' $${PHP_INI}
+else
+        perl -i -pe 's|.*CSW Extensions|; CSW Extensions\nextension=curl.so|' $${PHP_INI}
+        fi
+
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Enabled Extension \"curl\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the install
+******************************************************************************
+_EOF_
+
+
 exit 0
 endef
 
@@ -33,8 +63,16 @@
 echo "[===> Running Pre Remove <===]"
 echo "   ===> Disabling curl extension"
 
-perl -i -plne 's|extension=curl.so|;extension=curl.so|' ${PHP_INI}
+perl -i -plne 's|extension=curl.so|;extension=curl.so|' $${PHP_INI}
 
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Disabled Extension \"curl\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the removal
+******************************************************************************
+_EOF_
+
 exit 0
 endef
-

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_dba/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_dba/Makefile	2009-04-02 05:10:51 UTC (rev 4153)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_dba/Makefile	2009-04-02 06:26:31 UTC (rev 4154)
@@ -23,8 +23,38 @@
 echo "[===> Running Post Install <===]"
 echo "   ===> Enabling dba extension"
 
-perl -i -plne 's|;extension=dba.so|extension=dba.so|' ${PHP_INI}
+if grep 'CSW Extensions' $${PHP_INI} >/dev/null 2>&1; then
+    /bin/true
+else
+    cat << _EOF_
+******************************************************************************
+* WARNING: Could not enable Extension \"dba\"
+* 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=dba.so
+******************************************************************************
+_EOF_
+exit 0
+fi
 
+if grep 'extension=dba.so' $${PHP_INI} >/dev/null 2>&1; then
+    perl -i -plne 's|;extension=dba.so|extension=dba.so|' $${PHP_INI}
+else
+        perl -i -pe 's|.*CSW Extensions|; CSW Extensions\nextension=dba.so|' $${PHP_INI}
+        fi
+
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Enabled Extension \"dba\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the install
+******************************************************************************
+_EOF_
+
+
 exit 0
 endef
 
@@ -36,8 +66,16 @@
 echo "[===> Running Pre Remove <===]"
 echo "   ===> Disabling dba extension"
 
-perl -i -plne 's|extension=dba.so|;extension=dba.so|' ${PHP_INI}
+perl -i -plne 's|extension=dba.so|;extension=dba.so|' $${PHP_INI}
 
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Disabled Extension \"dba\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the removal
+******************************************************************************
+_EOF_
+
 exit 0
 endef
-

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_dbase/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_dbase/Makefile	2009-04-02 05:10:51 UTC (rev 4153)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_dbase/Makefile	2009-04-02 06:26:31 UTC (rev 4154)
@@ -18,8 +18,38 @@
 echo "[===> Running Post Install <===]"
 echo "   ===> Enabling dbase extension"
 
-perl -i -plne 's|;extension=dbase.so|extension=dbase.so|' ${PHP_INI}
+if grep 'CSW Extensions' $${PHP_INI} >/dev/null 2>&1; then
+    /bin/true
+else
+    cat << _EOF_
+******************************************************************************
+* WARNING: Could not enable Extension \"dbase\"
+* 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=dbase.so
+******************************************************************************
+_EOF_
+exit 0
+fi
 
+if grep 'extension=dbase.so' $${PHP_INI} >/dev/null 2>&1; then
+    perl -i -plne 's|;extension=dbase.so|extension=dbase.so|' $${PHP_INI}
+else
+        perl -i -pe 's|.*CSW Extensions|; CSW Extensions\nextension=dbase.so|' $${PHP_INI}
+        fi
+
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Enabled Extension \"dbase\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the install
+******************************************************************************
+_EOF_
+
+
 exit 0
 endef
 
@@ -31,8 +61,16 @@
 echo "[===> Running Pre Remove <===]"
 echo "   ===> Disabling dbase extension"
 
-perl -i -plne 's|extension=dbase.so|;extension=dbase.so|' ${PHP_INI}
+perl -i -plne 's|extension=dbase.so|;extension=dbase.so|' $${PHP_INI}
 
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Disabled Extension \"dbase\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the removal
+******************************************************************************
+_EOF_
+
 exit 0
 endef
-

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_dom/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_dom/Makefile	2009-04-02 05:10:51 UTC (rev 4153)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_dom/Makefile	2009-04-02 06:26:31 UTC (rev 4154)
@@ -19,8 +19,38 @@
 echo "[===> Running Post Install <===]"
 echo "   ===> Enabling dom extension"
 
-perl -i -plne 's|;extension=dom.so|extension=dom.so|' ${PHP_INI}
+if grep 'CSW Extensions' $${PHP_INI} >/dev/null 2>&1; then
+    /bin/true
+else
+    cat << _EOF_
+******************************************************************************
+* WARNING: Could not enable Extension \"dom\"
+* 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=dom.so
+******************************************************************************
+_EOF_
+exit 0
+fi
 
+if grep 'extension=dom.so' $${PHP_INI} >/dev/null 2>&1; then
+    perl -i -plne 's|;extension=dom.so|extension=dom.so|' $${PHP_INI}
+else
+        perl -i -pe 's|.*CSW Extensions|; CSW Extensions\nextension=dom.so|' $${PHP_INI}
+        fi
+
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Enabled Extension \"dom\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the install
+******************************************************************************
+_EOF_
+
+
 exit 0
 endef
 
@@ -32,8 +62,16 @@
 echo "[===> Running Pre Remove <===]"
 echo "   ===> Disabling dom extension"
 
-perl -i -plne 's|extension=dom.so|;extension=dom.so|' ${PHP_INI}
+perl -i -plne 's|extension=dom.so|;extension=dom.so|' $${PHP_INI}
 
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Disabled Extension \"dom\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the removal
+******************************************************************************
+_EOF_
+
 exit 0
 endef
-

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_exif/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_exif/Makefile	2009-04-02 05:10:51 UTC (rev 4153)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_exif/Makefile	2009-04-02 06:26:31 UTC (rev 4154)
@@ -21,8 +21,38 @@
 echo "[===> Running Post Install <===]"
 echo "   ===> Enabling exif extension"
 
-perl -i -plne 's|;extension=exif.so|extension=exif.so|' ${PHP_INI}
+if grep 'CSW Extensions' $${PHP_INI} >/dev/null 2>&1; then
+    /bin/true
+else
+    cat << _EOF_
+******************************************************************************
+* WARNING: Could not enable Extension \"exif\"
+* 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=exif.so
+******************************************************************************
+_EOF_
+exit 0
+fi
 
+if grep 'extension=exif.so' $${PHP_INI} >/dev/null 2>&1; then
+    perl -i -plne 's|;extension=exif.so|extension=exif.so|' $${PHP_INI}
+else
+        perl -i -pe 's|.*CSW Extensions|; CSW Extensions\nextension=exif.so|' $${PHP_INI}
+        fi
+
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Enabled Extension \"exif\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the install
+******************************************************************************
+_EOF_
+
+
 exit 0
 endef
 
@@ -34,8 +64,16 @@
 echo "[===> Running Pre Remove <===]"
 echo "   ===> Disabling exif extension"
 
-perl -i -plne 's|extension=exif.so|;extension=exif.so|' ${PHP_INI}
+perl -i -plne 's|extension=exif.so|;extension=exif.so|' $${PHP_INI}
 
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Disabled Extension \"exif\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the removal
+******************************************************************************
+_EOF_
+
 exit 0
 endef
-

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_filter/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_filter/Makefile	2009-04-02 05:10:51 UTC (rev 4153)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_filter/Makefile	2009-04-02 06:26:31 UTC (rev 4154)
@@ -1,39 +1,5 @@
 PHP5EXT_NAME = filter
 
-PACKAGES += CSWphp5filter
-
-CATALOGNAME_CSWphp5filter = php5_filter
-SPKG_DESC_CSWphp5filter = filter Extention for PHP5
-REQUIRED_PKGS_CSWphp5filter = CSWphp5 CSWpcrert
-
 CONFIGURE_ARGS += --enable-filter=shared
 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-02 05:10:51 UTC (rev 4153)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_ftp/Makefile	2009-04-02 06:26:31 UTC (rev 4154)
@@ -18,8 +18,38 @@
 echo "[===> Running Post Install <===]"
 echo "   ===> Enabling ftp extension"
 
-perl -i -plne 's|;extension=ftp.so|extension=ftp.so|' ${PHP_INI}
+if grep 'CSW Extensions' $${PHP_INI} >/dev/null 2>&1; then
+    /bin/true
+else
+    cat << _EOF_
+******************************************************************************
+* WARNING: Could not enable Extension \"ftp\"
+* 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=ftp.so
+******************************************************************************
+_EOF_
+exit 0
+fi
 
+if grep 'extension=ftp.so' $${PHP_INI} >/dev/null 2>&1; then
+    perl -i -plne 's|;extension=ftp.so|extension=ftp.so|' $${PHP_INI}
+else
+        perl -i -pe 's|.*CSW Extensions|; CSW Extensions\nextension=ftp.so|' $${PHP_INI}
+        fi
+
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Enabled Extension \"ftp\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the install
+******************************************************************************
+_EOF_
+
+
 exit 0
 endef
 
@@ -31,8 +61,16 @@
 echo "[===> Running Pre Remove <===]"
 echo "   ===> Disabling ftp extension"
 
-perl -i -plne 's|extension=ftp.so|;extension=ftp.so|' ${PHP_INI}
+perl -i -plne 's|extension=ftp.so|;extension=ftp.so|' $${PHP_INI}
 
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Disabled Extension \"ftp\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the removal
+******************************************************************************
+_EOF_
+
 exit 0
 endef
-

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_gd/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_gd/Makefile	2009-04-02 05:10:51 UTC (rev 4153)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_gd/Makefile	2009-04-02 06:26:31 UTC (rev 4154)
@@ -29,8 +29,38 @@
 echo "[===> Running Post Install <===]"
 echo "   ===> Enabling gd extension"
 
-perl -i -plne 's|;extension=gd.so|extension=gd.so|' ${PHP_INI}
+if grep 'CSW Extensions' $${PHP_INI} >/dev/null 2>&1; then
+    /bin/true
+else
+    cat << _EOF_
+******************************************************************************
+* WARNING: Could not enable Extension \"gd\"
+* 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=gd.so
+******************************************************************************
+_EOF_
+exit 0
+fi
 
+if grep 'extension=gd.so' $${PHP_INI} >/dev/null 2>&1; then
+    perl -i -plne 's|;extension=gd.so|extension=gd.so|' $${PHP_INI}
+else
+        perl -i -pe 's|.*CSW Extensions|; CSW Extensions\nextension=gd.so|' $${PHP_INI}
+        fi
+
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Enabled Extension \"gd\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the install
+******************************************************************************
+_EOF_
+
+
 exit 0
 endef
 
@@ -42,8 +72,16 @@
 echo "[===> Running Pre Remove <===]"
 echo "   ===> Disabling gd extension"
 
-perl -i -plne 's|extension=gd.so|;extension=gd.so|' ${PHP_INI}
+perl -i -plne 's|extension=gd.so|;extension=gd.so|' $${PHP_INI}
 
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Disabled Extension \"gd\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the removal
+******************************************************************************
+_EOF_
+
 exit 0
 endef
-

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_gettext/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_gettext/Makefile	2009-04-02 05:10:51 UTC (rev 4153)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_gettext/Makefile	2009-04-02 06:26:31 UTC (rev 4154)
@@ -18,8 +18,38 @@
 echo "[===> Running Post Install <===]"
 echo "   ===> Enabling gettext extension"
 
-perl -i -plne 's|;extension=gettext.so|extension=gettext.so|' ${PHP_INI}
+if grep 'CSW Extensions' $${PHP_INI} >/dev/null 2>&1; then
+    /bin/true
+else
+    cat << _EOF_
+******************************************************************************
+* WARNING: Could not enable Extension \"gettext\"
+* 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=gettext.so
+******************************************************************************
+_EOF_
+exit 0
+fi
 
+if grep 'extension=gettext.so' $${PHP_INI} >/dev/null 2>&1; then
+    perl -i -plne 's|;extension=gettext.so|extension=gettext.so|' $${PHP_INI}
+else
+        perl -i -pe 's|.*CSW Extensions|; CSW Extensions\nextension=gettext.so|' $${PHP_INI}
+        fi
+
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Enabled Extension \"gettext\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the install
+******************************************************************************
+_EOF_
+
+
 exit 0
 endef
 
@@ -31,8 +61,16 @@
 echo "[===> Running Pre Remove <===]"
 echo "   ===> Disabling gettext extension"
 
-perl -i -plne 's|extension=gettext.so|;extension=gettext.so|' ${PHP_INI}
+perl -i -plne 's|extension=gettext.so|;extension=gettext.so|' $${PHP_INI}
 
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Disabled Extension \"gettext\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the removal
+******************************************************************************
+_EOF_
+
 exit 0
 endef
-

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_gmp/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_gmp/Makefile	2009-04-02 05:10:51 UTC (rev 4153)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_gmp/Makefile	2009-04-02 06:26:31 UTC (rev 4154)
@@ -18,8 +18,38 @@
 echo "[===> Running Post Install <===]"
 echo "   ===> Enabling gmp extension"
 
-perl -i -plne 's|;extension=gmp.so|extension=gmp.so|' ${PHP_INI}
+if grep 'CSW Extensions' $${PHP_INI} >/dev/null 2>&1; then
+    /bin/true
+else
+    cat << _EOF_
+******************************************************************************
+* WARNING: Could not enable Extension \"gmp\"
+* 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=gmp.so
+******************************************************************************
+_EOF_
+exit 0
+fi
 
+if grep 'extension=gmp.so' $${PHP_INI} >/dev/null 2>&1; then
+    perl -i -plne 's|;extension=gmp.so|extension=gmp.so|' $${PHP_INI}
+else
+        perl -i -pe 's|.*CSW Extensions|; CSW Extensions\nextension=gmp.so|' $${PHP_INI}
+        fi
+
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Enabled Extension \"gmp\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the install
+******************************************************************************
+_EOF_
+
+
 exit 0
 endef
 
@@ -31,8 +61,16 @@
 echo "[===> Running Pre Remove <===]"
 echo "   ===> Disabling gmp extension"
 
-perl -i -plne 's|extension=gmp.so|;extension=gmp.so|' ${PHP_INI}
+perl -i -plne 's|extension=gmp.so|;extension=gmp.so|' $${PHP_INI}
 
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Disabled Extension \"gmp\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the removal
+******************************************************************************
+_EOF_
+
 exit 0
 endef
-

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_hash/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_hash/Makefile	2009-04-02 05:10:51 UTC (rev 4153)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_hash/Makefile	2009-04-02 06:26:31 UTC (rev 4154)
@@ -18,8 +18,38 @@
 echo "[===> Running Post Install <===]"
 echo "   ===> Enabling hash extension"
 
-perl -i -plne 's|;extension=hash.so|extension=hash.so|' ${PHP_INI}
+if grep 'CSW Extensions' $${PHP_INI} >/dev/null 2>&1; then
+    /bin/true
+else
+    cat << _EOF_
+******************************************************************************
+* WARNING: Could not enable Extension \"hash\"
+* 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=hash.so
+******************************************************************************
+_EOF_
+exit 0
+fi
 
+if grep 'extension=hash.so' $${PHP_INI} >/dev/null 2>&1; then
+    perl -i -plne 's|;extension=hash.so|extension=hash.so|' $${PHP_INI}
+else
+        perl -i -pe 's|.*CSW Extensions|; CSW Extensions\nextension=hash.so|' $${PHP_INI}
+        fi
+
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Enabled Extension \"hash\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the install
+******************************************************************************
+_EOF_
+
+
 exit 0
 endef
 
@@ -31,8 +61,16 @@
 echo "[===> Running Pre Remove <===]"
 echo "   ===> Disabling hash extension"
 
-perl -i -plne 's|extension=hash.so|;extension=hash.so|' ${PHP_INI}
+perl -i -plne 's|extension=hash.so|;extension=hash.so|' $${PHP_INI}
 
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Disabled Extension \"hash\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the removal
+******************************************************************************
+_EOF_
+
 exit 0
 endef
-

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_iconv/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_iconv/Makefile	2009-04-02 05:10:51 UTC (rev 4153)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_iconv/Makefile	2009-04-02 06:26:31 UTC (rev 4154)
@@ -25,8 +25,38 @@
 echo "[===> Running Post Install <===]"
 echo "   ===> Enabling iconv extension"
 
-perl -i -plne 's|;extension=iconv.so|extension=iconv.so|' ${PHP_INI}
+if grep 'CSW Extensions' $${PHP_INI} >/dev/null 2>&1; then
+    /bin/true
+else
+    cat << _EOF_
+******************************************************************************
+* WARNING: Could not enable Extension \"iconv\"
+* 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=iconv.so
+******************************************************************************
+_EOF_
+exit 0
+fi
 
+if grep 'extension=iconv.so' $${PHP_INI} >/dev/null 2>&1; then
+    perl -i -plne 's|;extension=iconv.so|extension=iconv.so|' $${PHP_INI}
+else
+        perl -i -pe 's|.*CSW Extensions|; CSW Extensions\nextension=iconv.so|' $${PHP_INI}
+        fi
+
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Enabled Extension \"iconv\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the install
+******************************************************************************
+_EOF_
+
+
 exit 0
 endef
 
@@ -38,8 +68,16 @@
 echo "[===> Running Pre Remove <===]"
 echo "   ===> Disabling iconv extension"
 
-perl -i -plne 's|extension=iconv.so|;extension=iconv.so|' ${PHP_INI}
+perl -i -plne 's|extension=iconv.so|;extension=iconv.so|' $${PHP_INI}
 
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Disabled Extension \"iconv\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the removal
+******************************************************************************
+_EOF_
+
 exit 0
 endef
-

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_imap/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_imap/Makefile	2009-04-02 05:10:51 UTC (rev 4153)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_imap/Makefile	2009-04-02 06:26:31 UTC (rev 4154)
@@ -20,8 +20,38 @@
 echo "[===> Running Post Install <===]"
 echo "   ===> Enabling imap extension"
 
-perl -i -plne 's|;extension=imap.so|extension=imap.so|' ${PHP_INI}
+if grep 'CSW Extensions' $${PHP_INI} >/dev/null 2>&1; then
+    /bin/true
+else
+    cat << _EOF_
+******************************************************************************
+* WARNING: Could not enable Extension \"imap\"
+* 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=imap.so
+******************************************************************************
+_EOF_
+exit 0
+fi
 
+if grep 'extension=imap.so' $${PHP_INI} >/dev/null 2>&1; then
+    perl -i -plne 's|;extension=imap.so|extension=imap.so|' $${PHP_INI}
+else
+        perl -i -pe 's|.*CSW Extensions|; CSW Extensions\nextension=imap.so|' $${PHP_INI}
+        fi
+
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Enabled Extension \"imap\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the install
+******************************************************************************
+_EOF_
+
+
 exit 0
 endef
 
@@ -33,8 +63,16 @@
 echo "[===> Running Pre Remove <===]"
 echo "   ===> Disabling imap extension"
 
-perl -i -plne 's|extension=imap.so|;extension=imap.so|' ${PHP_INI}
+perl -i -plne 's|extension=imap.so|;extension=imap.so|' $${PHP_INI}
 
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Disabled Extension \"imap\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the removal
+******************************************************************************
+_EOF_
+
 exit 0
 endef
-

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_json/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_json/Makefile	2009-04-02 05:10:51 UTC (rev 4153)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_json/Makefile	2009-04-02 06:26:31 UTC (rev 4154)
@@ -18,8 +18,38 @@
 echo "[===> Running Post Install <===]"
 echo "   ===> Enabling json extension"
 
-perl -i -plne 's|;extension=json.so|extension=json.so|' ${PHP_INI}
+if grep 'CSW Extensions' $${PHP_INI} >/dev/null 2>&1; then
+    /bin/true
+else
+    cat << _EOF_
+******************************************************************************
+* WARNING: Could not enable Extension \"json\"
+* 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=json.so
+******************************************************************************
+_EOF_
+exit 0
+fi
 
+if grep 'extension=json.so' $${PHP_INI} >/dev/null 2>&1; then
+    perl -i -plne 's|;extension=json.so|extension=json.so|' $${PHP_INI}
+else
+        perl -i -pe 's|.*CSW Extensions|; CSW Extensions\nextension=json.so|' $${PHP_INI}
+        fi
+
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Enabled Extension \"json\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the install
+******************************************************************************
+_EOF_
+
+
 exit 0
 endef
 
@@ -31,8 +61,16 @@
 echo "[===> Running Pre Remove <===]"
 echo "   ===> Disabling json extension"
 
-perl -i -plne 's|extension=json.so|;extension=json.so|' ${PHP_INI}
+perl -i -plne 's|extension=json.so|;extension=json.so|' $${PHP_INI}
 
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Disabled Extension \"json\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the removal
+******************************************************************************
+_EOF_
+
 exit 0
 endef
-

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_ldap/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_ldap/Makefile	2009-04-02 05:10:51 UTC (rev 4153)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_ldap/Makefile	2009-04-02 06:26:31 UTC (rev 4154)
@@ -20,8 +20,38 @@
 echo "[===> Running Post Install <===]"
 echo "   ===> Enabling ldap extension"
 
-perl -i -plne 's|;extension=ldap.so|extension=ldap.so|' ${PHP_INI}
+if grep 'CSW Extensions' $${PHP_INI} >/dev/null 2>&1; then
+    /bin/true
+else
+    cat << _EOF_
+******************************************************************************
+* WARNING: Could not enable Extension \"ldap\"
+* 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=ldap.so
+******************************************************************************
+_EOF_
+exit 0
+fi
 
+if grep 'extension=ldap.so' $${PHP_INI} >/dev/null 2>&1; then
+    perl -i -plne 's|;extension=ldap.so|extension=ldap.so|' $${PHP_INI}
+else
+        perl -i -pe 's|.*CSW Extensions|; CSW Extensions\nextension=ldap.so|' $${PHP_INI}
+        fi
+
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Enabled Extension \"ldap\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the install
+******************************************************************************
+_EOF_
+
+
 exit 0
 endef
 
@@ -33,8 +63,16 @@
 echo "[===> Running Pre Remove <===]"
 echo "   ===> Disabling ldap extension"
 
-perl -i -plne 's|extension=ldap.so|;extension=ldap.so|' ${PHP_INI}
+perl -i -plne 's|extension=ldap.so|;extension=ldap.so|' $${PHP_INI}
 
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Disabled Extension \"ldap\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the removal
+******************************************************************************
+_EOF_
+
 exit 0
 endef
-

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_mbstring/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_mbstring/Makefile	2009-04-02 05:10:51 UTC (rev 4153)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_mbstring/Makefile	2009-04-02 06:26:31 UTC (rev 4154)
@@ -20,8 +20,38 @@
 echo "[===> Running Post Install <===]"
 echo "   ===> Enabling mbstring extension"
 
-perl -i -plne 's|;extension=mbstring.so|extension=mbstring.so|' ${PHP_INI}
+if grep 'CSW Extensions' $${PHP_INI} >/dev/null 2>&1; then
+    /bin/true
+else
+    cat << _EOF_
+******************************************************************************
+* WARNING: Could not enable Extension \"mbstring\"
+* 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=mbstring.so
+******************************************************************************
+_EOF_
+exit 0
+fi
 
+if grep 'extension=mbstring.so' $${PHP_INI} >/dev/null 2>&1; then
+    perl -i -plne 's|;extension=mbstring.so|extension=mbstring.so|' $${PHP_INI}
+else
+        perl -i -pe 's|.*CSW Extensions|; CSW Extensions\nextension=mbstring.so|' $${PHP_INI}
+        fi
+
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Enabled Extension \"mbstring\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the install
+******************************************************************************
+_EOF_
+
+
 exit 0
 endef
 
@@ -33,8 +63,16 @@
 echo "[===> Running Pre Remove <===]"
 echo "   ===> Disabling mbstring extension"
 
-perl -i -plne 's|extension=mbstring.so|;extension=mbstring.so|' ${PHP_INI}
+perl -i -plne 's|extension=mbstring.so|;extension=mbstring.so|' $${PHP_INI}
 
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Disabled Extension \"mbstring\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the removal
+******************************************************************************
+_EOF_
+
 exit 0
 endef
-

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_mcrypt/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_mcrypt/Makefile	2009-04-02 05:10:51 UTC (rev 4153)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_mcrypt/Makefile	2009-04-02 06:26:31 UTC (rev 4154)
@@ -18,8 +18,38 @@
 echo "[===> Running Post Install <===]"
 echo "   ===> Enabling mcrypt extension"
 
-perl -i -plne 's|;extension=mcrypt.so|extension=mcrypt.so|' ${PHP_INI}
+if grep 'CSW Extensions' $${PHP_INI} >/dev/null 2>&1; then
+    /bin/true
+else
+    cat << _EOF_
+******************************************************************************
+* WARNING: Could not enable Extension \"mcrypt\"
+* 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=mcrypt.so
+******************************************************************************
+_EOF_
+exit 0
+fi
 
+if grep 'extension=mcrypt.so' $${PHP_INI} >/dev/null 2>&1; then
+    perl -i -plne 's|;extension=mcrypt.so|extension=mcrypt.so|' $${PHP_INI}
+else
+        perl -i -pe 's|.*CSW Extensions|; CSW Extensions\nextension=mcrypt.so|' $${PHP_INI}
+        fi
+
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Enabled Extension \"mcrypt\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the install
+******************************************************************************
+_EOF_
+
+
 exit 0
 endef
 
@@ -31,8 +61,16 @@
 echo "[===> Running Pre Remove <===]"
 echo "   ===> Disabling mcrypt extension"
 
-perl -i -plne 's|extension=mcrypt.so|;extension=mcrypt.so|' ${PHP_INI}
+perl -i -plne 's|extension=mcrypt.so|;extension=mcrypt.so|' $${PHP_INI}
 
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Disabled Extension \"mcrypt\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the removal
+******************************************************************************
+_EOF_
+
 exit 0
 endef
-

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_mhash/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_mhash/Makefile	2009-04-02 05:10:51 UTC (rev 4153)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_mhash/Makefile	2009-04-02 06:26:31 UTC (rev 4154)
@@ -18,8 +18,38 @@
 echo "[===> Running Post Install <===]"
 echo "   ===> Enabling mhash extension"
 
-perl -i -plne 's|;extension=mhash.so|extension=mhash.so|' ${PHP_INI}
+if grep 'CSW Extensions' $${PHP_INI} >/dev/null 2>&1; then
+    /bin/true
+else
+    cat << _EOF_
+******************************************************************************
+* WARNING: Could not enable Extension \"mhash\"
+* 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=mhash.so
+******************************************************************************
+_EOF_
+exit 0
+fi
 
+if grep 'extension=mhash.so' $${PHP_INI} >/dev/null 2>&1; then
+    perl -i -plne 's|;extension=mhash.so|extension=mhash.so|' $${PHP_INI}
+else
+        perl -i -pe 's|.*CSW Extensions|; CSW Extensions\nextension=mhash.so|' $${PHP_INI}
+        fi
+
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Enabled Extension \"mhash\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the install
+******************************************************************************
+_EOF_
+
+
 exit 0
 endef
 
@@ -31,8 +61,16 @@
 echo "[===> Running Pre Remove <===]"
 echo "   ===> Disabling mhash extension"
 
-perl -i -plne 's|extension=mhash.so|;extension=mhash.so|' ${PHP_INI}
+perl -i -plne 's|extension=mhash.so|;extension=mhash.so|' $${PHP_INI}
 
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Disabled Extension \"mhash\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the removal
+******************************************************************************
+_EOF_
+
 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-02 05:10:51 UTC (rev 4153)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_mime_magic/Makefile	2009-04-02 06:26:31 UTC (rev 4154)
@@ -10,7 +10,7 @@
 
 PKGFILES_CSWphp5mimemagic = .*/lib/php/extensions/.*/mime_magic.*
 
-define CSWphp5mimemagic_postinstall
+define CSWphp5mime_magic_postinstall
 #!/bin/sh
 
 PHP_INI=/opt/csw/php5/lib/php.ini
@@ -18,12 +18,42 @@
 echo "[===> Running Post Install <===]"
 echo "   ===> Enabling mime_magic extension"
 
-perl -i -plne 's|;extension=mime_magic.so|extension=mime_magic.so|' ${PHP_INI}
+if grep 'CSW Extensions' $${PHP_INI} >/dev/null 2>&1; then
+    /bin/true
+else
+    cat << _EOF_
+******************************************************************************
+* WARNING: Could not enable Extension \"mime_magic\"
+* 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=mime_magic.so
+******************************************************************************
+_EOF_
+exit 0
+fi
 
+if grep 'extension=mime_magic.so' $${PHP_INI} >/dev/null 2>&1; then
+    perl -i -plne 's|;extension=mime_magic.so|extension=mime_magic.so|' $${PHP_INI}
+else
+        perl -i -pe 's|.*CSW Extensions|; CSW Extensions\nextension=mime_magic.so|' $${PHP_INI}
+        fi
+
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Enabled Extension \"mime_magic\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the install
+******************************************************************************
+_EOF_
+
+
 exit 0
 endef
 
-define CSWphp5mimemagic_preremove
+define CSWphp5mime_magic_preremove
 #!/bin/sh
 
 PHP_INI=/opt/csw/php5/lib/php.ini
@@ -31,8 +61,16 @@
 echo "[===> Running Pre Remove <===]"
 echo "   ===> Disabling mime_magic extension"
 
-perl -i -plne 's|extension=mime_magic.so|;extension=mime_magic.so|' ${PHP_INI}
+perl -i -plne 's|extension=mime_magic.so|;extension=mime_magic.so|' $${PHP_INI}
 
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Disabled Extension \"mime_magic\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the removal
+******************************************************************************
+_EOF_
+
 exit 0
 endef
-

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_mssql/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_mssql/Makefile	2009-04-02 05:10:51 UTC (rev 4153)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_mssql/Makefile	2009-04-02 06:26:31 UTC (rev 4154)
@@ -18,8 +18,38 @@
 echo "[===> Running Post Install <===]"
 echo "   ===> Enabling mssql extension"
 
-perl -i -plne 's|;extension=mssql.so|extension=mssql.so|' ${PHP_INI}
+if grep 'CSW Extensions' $${PHP_INI} >/dev/null 2>&1; then
+    /bin/true
+else
+    cat << _EOF_
+******************************************************************************
+* WARNING: Could not enable Extension \"mssql\"
+* 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=mssql.so
+******************************************************************************
+_EOF_
+exit 0
+fi
 
+if grep 'extension=mssql.so' $${PHP_INI} >/dev/null 2>&1; then
+    perl -i -plne 's|;extension=mssql.so|extension=mssql.so|' $${PHP_INI}
+else
+        perl -i -pe 's|.*CSW Extensions|; CSW Extensions\nextension=mssql.so|' $${PHP_INI}
+        fi
+
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Enabled Extension \"mssql\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the install
+******************************************************************************
+_EOF_
+
+
 exit 0
 endef
 
@@ -31,8 +61,16 @@
 echo "[===> Running Pre Remove <===]"
 echo "   ===> Disabling mssql extension"
 
-perl -i -plne 's|extension=mssql.so|;extension=mssql.so|' ${PHP_INI}
+perl -i -plne 's|extension=mssql.so|;extension=mssql.so|' $${PHP_INI}
 
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Disabled Extension \"mssql\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the removal
+******************************************************************************
+_EOF_
+
 exit 0
 endef
-

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_mysql/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_mysql/Makefile	2009-04-02 05:10:51 UTC (rev 4153)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_mysql/Makefile	2009-04-02 06:26:31 UTC (rev 4154)
@@ -19,8 +19,38 @@
 echo "[===> Running Post Install <===]"
 echo "   ===> Enabling mysql extension"
 
-perl -i -plne 's|;extension=mysql.so|extension=mysql.so|' ${PHP_INI}
+if grep 'CSW Extensions' $${PHP_INI} >/dev/null 2>&1; then
+    /bin/true
+else
+    cat << _EOF_
+******************************************************************************
+* WARNING: Could not enable Extension \"mysql\"
+* 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=mysql.so
+******************************************************************************
+_EOF_
+exit 0
+fi
 
+if grep 'extension=mysql.so' $${PHP_INI} >/dev/null 2>&1; then
+    perl -i -plne 's|;extension=mysql.so|extension=mysql.so|' $${PHP_INI}
+else
+        perl -i -pe 's|.*CSW Extensions|; CSW Extensions\nextension=mysql.so|' $${PHP_INI}
+        fi
+
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Enabled Extension \"mysql\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the install
+******************************************************************************
+_EOF_
+
+
 exit 0
 endef
 
@@ -32,8 +62,16 @@
 echo "[===> Running Pre Remove <===]"
 echo "   ===> Disabling mysql extension"
 
-perl -i -plne 's|extension=mysql.so|;extension=mysql.so|' ${PHP_INI}
+perl -i -plne 's|extension=mysql.so|;extension=mysql.so|' $${PHP_INI}
 
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Disabled Extension \"mysql\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the removal
+******************************************************************************
+_EOF_
+
 exit 0
 endef
-

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_mysqli/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_mysqli/Makefile	2009-04-02 05:10:51 UTC (rev 4153)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_mysqli/Makefile	2009-04-02 06:26:31 UTC (rev 4154)
@@ -18,8 +18,38 @@
 echo "[===> Running Post Install <===]"
 echo "   ===> Enabling mysqli extension"
 
-perl -i -plne 's|;extension=mysqli.so|extension=mysqli.so|' ${PHP_INI}
+if grep 'CSW Extensions' $${PHP_INI} >/dev/null 2>&1; then
+    /bin/true
+else
+    cat << _EOF_
+******************************************************************************
+* WARNING: Could not enable Extension \"mysqli\"
+* 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=mysqli.so
+******************************************************************************
+_EOF_
+exit 0
+fi
 
+if grep 'extension=mysqli.so' $${PHP_INI} >/dev/null 2>&1; then
+    perl -i -plne 's|;extension=mysqli.so|extension=mysqli.so|' $${PHP_INI}
+else
+        perl -i -pe 's|.*CSW Extensions|; CSW Extensions\nextension=mysqli.so|' $${PHP_INI}
+        fi
+
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Enabled Extension \"mysqli\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the install
+******************************************************************************
+_EOF_
+
+
 exit 0
 endef
 
@@ -31,8 +61,16 @@
 echo "[===> Running Pre Remove <===]"
 echo "   ===> Disabling mysqli extension"
 
-perl -i -plne 's|extension=mysqli.so|;extension=mysqli.so|' ${PHP_INI}
+perl -i -plne 's|extension=mysqli.so|;extension=mysqli.so|' $${PHP_INI}
 
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Disabled Extension \"mysqli\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the removal
+******************************************************************************
+_EOF_
+
 exit 0
 endef
-

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_ncurses/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_ncurses/Makefile	2009-04-02 05:10:51 UTC (rev 4153)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_ncurses/Makefile	2009-04-02 06:26:31 UTC (rev 4154)
@@ -18,8 +18,38 @@
 echo "[===> Running Post Install <===]"
 echo "   ===> Enabling ncurses extension"
 
-perl -i -plne 's|;extension=ncurses.so|extension=ncurses.so|' ${PHP_INI}
+if grep 'CSW Extensions' $${PHP_INI} >/dev/null 2>&1; then
+    /bin/true
+else
+    cat << _EOF_
+******************************************************************************
+* WARNING: Could not enable Extension \"ncurses\"
+* 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=ncurses.so
+******************************************************************************
+_EOF_
+exit 0
+fi
 
+if grep 'extension=ncurses.so' $${PHP_INI} >/dev/null 2>&1; then
+    perl -i -plne 's|;extension=ncurses.so|extension=ncurses.so|' $${PHP_INI}
+else
+        perl -i -pe 's|.*CSW Extensions|; CSW Extensions\nextension=ncurses.so|' $${PHP_INI}
+        fi
+
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Enabled Extension \"ncurses\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the install
+******************************************************************************
+_EOF_
+
+
 exit 0
 endef
 
@@ -31,8 +61,16 @@
 echo "[===> Running Pre Remove <===]"
 echo "   ===> Disabling ncurses extension"
 
-perl -i -plne 's|extension=ncurses.so|;extension=ncurses.so|' ${PHP_INI}
+perl -i -plne 's|extension=ncurses.so|;extension=ncurses.so|' $${PHP_INI}
 
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Disabled Extension \"ncurses\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the removal
+******************************************************************************
+_EOF_
+
 exit 0
 endef
-

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_odbc/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_odbc/Makefile	2009-04-02 05:10:51 UTC (rev 4153)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_odbc/Makefile	2009-04-02 06:26:31 UTC (rev 4154)
@@ -20,8 +20,38 @@
 echo "[===> Running Post Install <===]"
 echo "   ===> Enabling odbc extension"
 
-perl -i -plne 's|;extension=odbc.so|extension=odbc.so|' ${PHP_INI}
+if grep 'CSW Extensions' $${PHP_INI} >/dev/null 2>&1; then
+    /bin/true
+else
+    cat << _EOF_
+******************************************************************************
+* WARNING: Could not enable Extension \"odbc\"
+* 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=odbc.so
+******************************************************************************
+_EOF_
+exit 0
+fi
 
+if grep 'extension=odbc.so' $${PHP_INI} >/dev/null 2>&1; then
+    perl -i -plne 's|;extension=odbc.so|extension=odbc.so|' $${PHP_INI}
+else
+        perl -i -pe 's|.*CSW Extensions|; CSW Extensions\nextension=odbc.so|' $${PHP_INI}
+        fi
+
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Enabled Extension \"odbc\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the install
+******************************************************************************
+_EOF_
+
+
 exit 0
 endef
 
@@ -33,8 +63,16 @@
 echo "[===> Running Pre Remove <===]"
 echo "   ===> Disabling odbc extension"
 
-perl -i -plne 's|extension=odbc.so|;extension=odbc.so|' ${PHP_INI}
+perl -i -plne 's|extension=odbc.so|;extension=odbc.so|' $${PHP_INI}
 
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Disabled Extension \"odbc\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the removal
+******************************************************************************
+_EOF_
+
 exit 0
 endef
-

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_openssl/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_openssl/Makefile	2009-04-02 05:10:51 UTC (rev 4153)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_openssl/Makefile	2009-04-02 06:26:31 UTC (rev 4154)
@@ -18,8 +18,38 @@
 echo "[===> Running Post Install <===]"
 echo "   ===> Enabling openssl extension"
 
-perl -i -plne 's|;extension=openssl.so|extension=openssl.so|' ${PHP_INI}
+if grep 'CSW Extensions' $${PHP_INI} >/dev/null 2>&1; then
+    /bin/true
+else
+    cat << _EOF_
+******************************************************************************
+* WARNING: Could not enable Extension \"openssl\"
+* 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=openssl.so
+******************************************************************************
+_EOF_
+exit 0
+fi
 
+if grep 'extension=openssl.so' $${PHP_INI} >/dev/null 2>&1; then
+    perl -i -plne 's|;extension=openssl.so|extension=openssl.so|' $${PHP_INI}
+else
+        perl -i -pe 's|.*CSW Extensions|; CSW Extensions\nextension=openssl.so|' $${PHP_INI}
+        fi
+
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Enabled Extension \"openssl\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the install
+******************************************************************************
+_EOF_
+
+
 exit 0
 endef
 
@@ -31,8 +61,16 @@
 echo "[===> Running Pre Remove <===]"
 echo "   ===> Disabling openssl extension"
 
-perl -i -plne 's|extension=openssl.so|;extension=openssl.so|' ${PHP_INI}
+perl -i -plne 's|extension=openssl.so|;extension=openssl.so|' $${PHP_INI}
 
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Disabled Extension \"openssl\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the removal
+******************************************************************************
+_EOF_
+
 exit 0
 endef
-

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_pcntl/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_pcntl/Makefile	2009-04-02 05:10:51 UTC (rev 4153)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_pcntl/Makefile	2009-04-02 06:26:31 UTC (rev 4154)
@@ -18,8 +18,38 @@
 echo "[===> Running Post Install <===]"
 echo "   ===> Enabling pcntl extension"
 
-perl -i -plne 's|;extension=pcntl.so|extension=pcntl.so|' ${PHP_INI}
+if grep 'CSW Extensions' $${PHP_INI} >/dev/null 2>&1; then
+    /bin/true
+else
+    cat << _EOF_
+******************************************************************************
+* WARNING: Could not enable Extension \"pcntl\"
+* 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=pcntl.so
+******************************************************************************
+_EOF_
+exit 0
+fi
 
+if grep 'extension=pcntl.so' $${PHP_INI} >/dev/null 2>&1; then
+    perl -i -plne 's|;extension=pcntl.so|extension=pcntl.so|' $${PHP_INI}
+else
+        perl -i -pe 's|.*CSW Extensions|; CSW Extensions\nextension=pcntl.so|' $${PHP_INI}
+        fi
+
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Enabled Extension \"pcntl\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the install
+******************************************************************************
+_EOF_
+
+
 exit 0
 endef
 
@@ -31,8 +61,16 @@
 echo "[===> Running Pre Remove <===]"
 echo "   ===> Disabling pcntl extension"
 
-perl -i -plne 's|extension=pcntl.so|;extension=pcntl.so|' ${PHP_INI}
+perl -i -plne 's|extension=pcntl.so|;extension=pcntl.so|' $${PHP_INI}
 
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Disabled Extension \"pcntl\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the removal
+******************************************************************************
+_EOF_
+
 exit 0
 endef
-

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_pdomysql/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_pdomysql/Makefile	2009-04-02 05:10:51 UTC (rev 4153)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_pdomysql/Makefile	2009-04-02 06:26:31 UTC (rev 4154)
@@ -17,10 +17,40 @@
 PHP_INI=/opt/csw/php5/lib/php.ini
 
 echo "[===> Running Post Install <===]"
-echo "   ===> Enabling pdo_mysql extension"
+echo "   ===> Enabling pdomysql extension"
 
-perl -i -plne 's|;extension=pdo_mysql.so|extension=pdo_mysql.so|' ${PHP_INI}
+if grep 'CSW Extensions' $${PHP_INI} >/dev/null 2>&1; then
+    /bin/true
+else
+    cat << _EOF_
+******************************************************************************
+* WARNING: Could not enable Extension \"pdomysql\"
+* 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=pdomysql.so
+******************************************************************************
+_EOF_
+exit 0
+fi
 
+if grep 'extension=pdomysql.so' $${PHP_INI} >/dev/null 2>&1; then
+    perl -i -plne 's|;extension=pdomysql.so|extension=pdomysql.so|' $${PHP_INI}
+else
+        perl -i -pe 's|.*CSW Extensions|; CSW Extensions\nextension=pdomysql.so|' $${PHP_INI}
+        fi
+
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Enabled Extension \"pdomysql\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the install
+******************************************************************************
+_EOF_
+
+
 exit 0
 endef
 
@@ -30,10 +60,18 @@
 PHP_INI=/opt/csw/php5/lib/php.ini
 
 echo "[===> Running Pre Remove <===]"
-echo "   ===> Disabling pdo_mysql extension"
+echo "   ===> Disabling pdomysql extension"
 
-perl -i -plne 's|extension=pdo_mysql.so|;extension=pdo_mysql.so|' ${PHP_INI}
+perl -i -plne 's|extension=pdomysql.so|;extension=pdomysql.so|' $${PHP_INI}
 
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Disabled Extension \"pdomysql\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the removal
+******************************************************************************
+_EOF_
+
 exit 0
 endef
-

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_pdoodbc/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_pdoodbc/Makefile	2009-04-02 05:10:51 UTC (rev 4153)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_pdoodbc/Makefile	2009-04-02 06:26:31 UTC (rev 4154)
@@ -16,10 +16,40 @@
 PHP_INI=/opt/csw/php5/lib/php.ini
 
 echo "[===> Running Post Install <===]"
-echo "   ===> Enabling pdo_odbc extension"
+echo "   ===> Enabling pdoodbc extension"
 
-perl -i -plne 's|;extension=pdo_odbc.so|extension=pdo_odbc.so|' ${PHP_INI}
+if grep 'CSW Extensions' $${PHP_INI} >/dev/null 2>&1; then
+    /bin/true
+else
+    cat << _EOF_
+******************************************************************************
+* WARNING: Could not enable Extension \"pdoodbc\"
+* 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=pdoodbc.so
+******************************************************************************
+_EOF_
+exit 0
+fi
 
+if grep 'extension=pdoodbc.so' $${PHP_INI} >/dev/null 2>&1; then
+    perl -i -plne 's|;extension=pdoodbc.so|extension=pdoodbc.so|' $${PHP_INI}
+else
+        perl -i -pe 's|.*CSW Extensions|; CSW Extensions\nextension=pdoodbc.so|' $${PHP_INI}
+        fi
+
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Enabled Extension \"pdoodbc\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the install
+******************************************************************************
+_EOF_
+
+
 exit 0
 endef
 
@@ -29,10 +59,18 @@
 PHP_INI=/opt/csw/php5/lib/php.ini
 
 echo "[===> Running Pre Remove <===]"
-echo "   ===> Disabling pdo_odbc extension"
+echo "   ===> Disabling pdoodbc extension"
 
-perl -i -plne 's|extension=pdo_odbc.so|;extension=pdo_odbc.so|' ${PHP_INI}
+perl -i -plne 's|extension=pdoodbc.so|;extension=pdoodbc.so|' $${PHP_INI}
 
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Disabled Extension \"pdoodbc\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the removal
+******************************************************************************
+_EOF_
+
 exit 0
 endef
-

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_pdopgsql/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_pdopgsql/Makefile	2009-04-02 05:10:51 UTC (rev 4153)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_pdopgsql/Makefile	2009-04-02 06:26:31 UTC (rev 4154)
@@ -18,10 +18,40 @@
 PHP_INI=/opt/csw/php5/lib/php.ini
 
 echo "[===> Running Post Install <===]"
-echo "   ===> Enabling pdo_pgsql extension"
+echo "   ===> Enabling pdopgsql extension"
 
-perl -i -plne 's|;extension=pdo_pgsql.so|extension=pdo_pgsql.so|' ${PHP_INI}
+if grep 'CSW Extensions' $${PHP_INI} >/dev/null 2>&1; then
+    /bin/true
+else
+    cat << _EOF_
+******************************************************************************
+* WARNING: Could not enable Extension \"pdopgsql\"
+* 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=pdopgsql.so
+******************************************************************************
+_EOF_
+exit 0
+fi
 
+if grep 'extension=pdopgsql.so' $${PHP_INI} >/dev/null 2>&1; then
+    perl -i -plne 's|;extension=pdopgsql.so|extension=pdopgsql.so|' $${PHP_INI}
+else
+        perl -i -pe 's|.*CSW Extensions|; CSW Extensions\nextension=pdopgsql.so|' $${PHP_INI}
+        fi
+
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Enabled Extension \"pdopgsql\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the install
+******************************************************************************
+_EOF_
+
+
 exit 0
 endef
 
@@ -31,10 +61,18 @@
 PHP_INI=/opt/csw/php5/lib/php.ini
 
 echo "[===> Running Pre Remove <===]"
-echo "   ===> Disabling pdo_pgsql extension"
+echo "   ===> Disabling pdopgsql extension"
 
-perl -i -plne 's|extension=pdo_pgsql.so|;extension=pdo_pgsql.so|' ${PHP_INI}
+perl -i -plne 's|extension=pdopgsql.so|;extension=pdopgsql.so|' $${PHP_INI}
 
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Disabled Extension \"pdopgsql\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the removal
+******************************************************************************
+_EOF_
+
 exit 0
 endef
-

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_pdosqlite/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_pdosqlite/Makefile	2009-04-02 05:10:51 UTC (rev 4153)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_pdosqlite/Makefile	2009-04-02 06:26:31 UTC (rev 4154)
@@ -16,10 +16,40 @@
 PHP_INI=/opt/csw/php5/lib/php.ini
 
 echo "[===> Running Post Install <===]"
-echo "   ===> Enabling pdo_sqlite extension"
+echo "   ===> Enabling pdosqlite extension"
 
-perl -i -plne 's|;extension=pdo_sqlite.so|extension=pdo_sqlite.so|' ${PHP_INI}
+if grep 'CSW Extensions' $${PHP_INI} >/dev/null 2>&1; then
+    /bin/true
+else
+    cat << _EOF_
+******************************************************************************
+* WARNING: Could not enable Extension \"pdosqlite\"
+* 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=pdosqlite.so
+******************************************************************************
+_EOF_
+exit 0
+fi
 
+if grep 'extension=pdosqlite.so' $${PHP_INI} >/dev/null 2>&1; then
+    perl -i -plne 's|;extension=pdosqlite.so|extension=pdosqlite.so|' $${PHP_INI}
+else
+        perl -i -pe 's|.*CSW Extensions|; CSW Extensions\nextension=pdosqlite.so|' $${PHP_INI}
+        fi
+
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Enabled Extension \"pdosqlite\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the install
+******************************************************************************
+_EOF_
+
+
 exit 0
 endef
 
@@ -29,10 +59,18 @@
 PHP_INI=/opt/csw/php5/lib/php.ini
 
 echo "[===> Running Pre Remove <===]"
-echo "   ===> Disabling pdo_sqlite extension"
+echo "   ===> Disabling pdosqlite extension"
 
-perl -i -plne 's|extension=pdo_sqlite.so|;extension=pdo_sqlite.so|' ${PHP_INI}
+perl -i -plne 's|extension=pdosqlite.so|;extension=pdosqlite.so|' $${PHP_INI}
 
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Disabled Extension \"pdosqlite\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the removal
+******************************************************************************
+_EOF_
+
 exit 0
 endef
-

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_pgsql/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_pgsql/Makefile	2009-04-02 05:10:51 UTC (rev 4153)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_pgsql/Makefile	2009-04-02 06:26:31 UTC (rev 4154)
@@ -20,8 +20,38 @@
 echo "[===> Running Post Install <===]"
 echo "   ===> Enabling pgsql extension"
 
-perl -i -plne 's|;extension=pgsql.so|extension=pgsql.so|' ${PHP_INI}
+if grep 'CSW Extensions' $${PHP_INI} >/dev/null 2>&1; then
+    /bin/true
+else
+    cat << _EOF_
+******************************************************************************
+* WARNING: Could not enable Extension \"pgsql\"
+* 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=pgsql.so
+******************************************************************************
+_EOF_
+exit 0
+fi
 
+if grep 'extension=pgsql.so' $${PHP_INI} >/dev/null 2>&1; then
+    perl -i -plne 's|;extension=pgsql.so|extension=pgsql.so|' $${PHP_INI}
+else
+        perl -i -pe 's|.*CSW Extensions|; CSW Extensions\nextension=pgsql.so|' $${PHP_INI}
+        fi
+
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Enabled Extension \"pgsql\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the install
+******************************************************************************
+_EOF_
+
+
 exit 0
 endef
 
@@ -33,8 +63,16 @@
 echo "[===> Running Pre Remove <===]"
 echo "   ===> Disabling pgsql extension"
 
-perl -i -plne 's|extension=pgsql.so|;extension=pgsql.so|' ${PHP_INI}
+perl -i -plne 's|extension=pgsql.so|;extension=pgsql.so|' $${PHP_INI}
 
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Disabled Extension \"pgsql\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the removal
+******************************************************************************
+_EOF_
+
 exit 0
 endef
-

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_posix/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_posix/Makefile	2009-04-02 05:10:51 UTC (rev 4153)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_posix/Makefile	2009-04-02 06:26:31 UTC (rev 4154)
@@ -18,8 +18,38 @@
 echo "[===> Running Post Install <===]"
 echo "   ===> Enabling posix extension"
 
-perl -i -plne 's|;extension=posix.so|extension=posix.so|' ${PHP_INI}
+if grep 'CSW Extensions' $${PHP_INI} >/dev/null 2>&1; then
+    /bin/true
+else
+    cat << _EOF_
+******************************************************************************
+* WARNING: Could not enable Extension \"posix\"
+* 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=posix.so
+******************************************************************************
+_EOF_
+exit 0
+fi
 
+if grep 'extension=posix.so' $${PHP_INI} >/dev/null 2>&1; then
+    perl -i -plne 's|;extension=posix.so|extension=posix.so|' $${PHP_INI}
+else
+        perl -i -pe 's|.*CSW Extensions|; CSW Extensions\nextension=posix.so|' $${PHP_INI}
+        fi
+
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Enabled Extension \"posix\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the install
+******************************************************************************
+_EOF_
+
+
 exit 0
 endef
 
@@ -31,8 +61,16 @@
 echo "[===> Running Pre Remove <===]"
 echo "   ===> Disabling posix extension"
 
-perl -i -plne 's|extension=posix.so|;extension=posix.so|' ${PHP_INI}
+perl -i -plne 's|extension=posix.so|;extension=posix.so|' $${PHP_INI}
 
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Disabled Extension \"posix\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the removal
+******************************************************************************
+_EOF_
+
 exit 0
 endef
-

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_pspell/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_pspell/Makefile	2009-04-02 05:10:51 UTC (rev 4153)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_pspell/Makefile	2009-04-02 06:26:31 UTC (rev 4154)
@@ -18,8 +18,38 @@
 echo "[===> Running Post Install <===]"
 echo "   ===> Enabling pspell extension"
 
-perl -i -plne 's|;extension=pspell.so|extension=pspell.so|' ${PHP_INI}
+if grep 'CSW Extensions' $${PHP_INI} >/dev/null 2>&1; then
+    /bin/true
+else
+    cat << _EOF_
+******************************************************************************
+* WARNING: Could not enable Extension \"pspell\"
+* 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=pspell.so
+******************************************************************************
+_EOF_
+exit 0
+fi
 
+if grep 'extension=pspell.so' $${PHP_INI} >/dev/null 2>&1; then
+    perl -i -plne 's|;extension=pspell.so|extension=pspell.so|' $${PHP_INI}
+else
+        perl -i -pe 's|.*CSW Extensions|; CSW Extensions\nextension=pspell.so|' $${PHP_INI}
+        fi
+
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Enabled Extension \"pspell\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the install
+******************************************************************************
+_EOF_
+
+
 exit 0
 endef
 
@@ -31,8 +61,16 @@
 echo "[===> Running Pre Remove <===]"
 echo "   ===> Disabling pspell extension"
 
-perl -i -plne 's|extension=pspell.so|;extension=pspell.so|' ${PHP_INI}
+perl -i -plne 's|extension=pspell.so|;extension=pspell.so|' $${PHP_INI}
 
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Disabled Extension \"pspell\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the removal
+******************************************************************************
+_EOF_
+
 exit 0
 endef
-

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_readline/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_readline/Makefile	2009-04-02 05:10:51 UTC (rev 4153)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_readline/Makefile	2009-04-02 06:26:31 UTC (rev 4154)
@@ -19,8 +19,38 @@
 echo "[===> Running Post Install <===]"
 echo "   ===> Enabling readline extension"
 
-perl -i -plne 's|;extension=readline.so|extension=readline.so|' ${PHP_INI}
+if grep 'CSW Extensions' $${PHP_INI} >/dev/null 2>&1; then
+    /bin/true
+else
+    cat << _EOF_
+******************************************************************************
+* WARNING: Could not enable Extension \"readline\"
+* 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=readline.so
+******************************************************************************
+_EOF_
+exit 0
+fi
 
+if grep 'extension=readline.so' $${PHP_INI} >/dev/null 2>&1; then
+    perl -i -plne 's|;extension=readline.so|extension=readline.so|' $${PHP_INI}
+else
+        perl -i -pe 's|.*CSW Extensions|; CSW Extensions\nextension=readline.so|' $${PHP_INI}
+        fi
+
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Enabled Extension \"readline\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the install
+******************************************************************************
+_EOF_
+
+
 exit 0
 endef
 
@@ -32,8 +62,16 @@
 echo "[===> Running Pre Remove <===]"
 echo "   ===> Disabling readline extension"
 
-perl -i -plne 's|extension=readline.so|;extension=readline.so|' ${PHP_INI}
+perl -i -plne 's|extension=readline.so|;extension=readline.so|' $${PHP_INI}
 
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Disabled Extension \"readline\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the removal
+******************************************************************************
+_EOF_
+
 exit 0
 endef
-

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_recode/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_recode/Makefile	2009-04-02 05:10:51 UTC (rev 4153)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_recode/Makefile	2009-04-02 06:26:31 UTC (rev 4154)
@@ -1 +1,65 @@
 @ ( echo "==>  Not configuring recode see README in extensions/php5_recode" )
+define CSWphp5recode_postinstall
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Post Install <===]"
+echo "   ===> Enabling recode extension"
+
+if grep 'CSW Extensions' $${PHP_INI} >/dev/null 2>&1; then
+    /bin/true
+else
+    cat << _EOF_
+******************************************************************************
+* WARNING: Could not enable Extension \"recode\"
+* 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=recode.so
+******************************************************************************
+_EOF_
+exit 0
+fi
+
+if grep 'extension=recode.so' $${PHP_INI} >/dev/null 2>&1; then
+    perl -i -plne 's|;extension=recode.so|extension=recode.so|' $${PHP_INI}
+else
+        perl -i -pe 's|.*CSW Extensions|; CSW Extensions\nextension=recode.so|' $${PHP_INI}
+        fi
+
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Enabled Extension \"recode\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the install
+******************************************************************************
+_EOF_
+
+
+exit 0
+endef
+
+define CSWphp5recode_preremove
+#!/bin/sh
+
+PHP_INI=/opt/csw/php5/lib/php.ini
+
+echo "[===> Running Pre Remove <===]"
+echo "   ===> Disabling recode extension"
+
+perl -i -plne 's|extension=recode.so|;extension=recode.so|' $${PHP_INI}
+
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Disabled Extension \"recode\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the removal
+******************************************************************************
+_EOF_
+
+exit 0
+endef

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_session/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_session/Makefile	2009-04-02 05:10:51 UTC (rev 4153)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_session/Makefile	2009-04-02 06:26:31 UTC (rev 4154)
@@ -18,8 +18,38 @@
 echo "[===> Running Post Install <===]"
 echo "   ===> Enabling session extension"
 
-perl -i -plne 's|;extension=session.so|extension=session.so|' ${PHP_INI}
+if grep 'CSW Extensions' $${PHP_INI} >/dev/null 2>&1; then
+    /bin/true
+else
+    cat << _EOF_
+******************************************************************************
+* WARNING: Could not enable Extension \"session\"
+* 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=session.so
+******************************************************************************
+_EOF_
+exit 0
+fi
 
+if grep 'extension=session.so' $${PHP_INI} >/dev/null 2>&1; then
+    perl -i -plne 's|;extension=session.so|extension=session.so|' $${PHP_INI}
+else
+        perl -i -pe 's|.*CSW Extensions|; CSW Extensions\nextension=session.so|' $${PHP_INI}
+        fi
+
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Enabled Extension \"session\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the install
+******************************************************************************
+_EOF_
+
+
 exit 0
 endef
 
@@ -31,8 +61,16 @@
 echo "[===> Running Pre Remove <===]"
 echo "   ===> Disabling session extension"
 
-perl -i -plne 's|extension=session.so|;extension=session.so|' ${PHP_INI}
+perl -i -plne 's|extension=session.so|;extension=session.so|' $${PHP_INI}
 
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Disabled Extension \"session\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the removal
+******************************************************************************
+_EOF_
+
 exit 0
 endef
-

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_shmop/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_shmop/Makefile	2009-04-02 05:10:51 UTC (rev 4153)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_shmop/Makefile	2009-04-02 06:26:31 UTC (rev 4154)
@@ -18,8 +18,38 @@
 echo "[===> Running Post Install <===]"
 echo "   ===> Enabling shmop extension"
 
-perl -i -plne 's|;extension=shmop.so|extension=shmop.so|' ${PHP_INI}
+if grep 'CSW Extensions' $${PHP_INI} >/dev/null 2>&1; then
+    /bin/true
+else
+    cat << _EOF_
+******************************************************************************
+* WARNING: Could not enable Extension \"shmop\"
+* 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=shmop.so
+******************************************************************************
+_EOF_
+exit 0
+fi
 
+if grep 'extension=shmop.so' $${PHP_INI} >/dev/null 2>&1; then
+    perl -i -plne 's|;extension=shmop.so|extension=shmop.so|' $${PHP_INI}
+else
+        perl -i -pe 's|.*CSW Extensions|; CSW Extensions\nextension=shmop.so|' $${PHP_INI}
+        fi
+
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Enabled Extension \"shmop\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the install
+******************************************************************************
+_EOF_
+
+
 exit 0
 endef
 
@@ -31,8 +61,16 @@
 echo "[===> Running Pre Remove <===]"
 echo "   ===> Disabling shmop extension"
 
-perl -i -plne 's|extension=shmop.so|;extension=shmop.so|' ${PHP_INI}
+perl -i -plne 's|extension=shmop.so|;extension=shmop.so|' $${PHP_INI}
 
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Disabled Extension \"shmop\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the removal
+******************************************************************************
+_EOF_
+
 exit 0
 endef
-

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_simplexml/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_simplexml/Makefile	2009-04-02 05:10:51 UTC (rev 4153)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_simplexml/Makefile	2009-04-02 06:26:31 UTC (rev 4154)
@@ -14,8 +14,38 @@
 echo "[===> Running Post Install <===]"
 echo "   ===> Enabling simplexml extension"
 
-perl -i -plne 's|;extension=simplexml.so|extension=simplexml.so|' ${PHP_INI}
+if grep 'CSW Extensions' $${PHP_INI} >/dev/null 2>&1; then
+    /bin/true
+else
+    cat << _EOF_
+******************************************************************************
+* WARNING: Could not enable Extension \"simplexml\"
+* 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=simplexml.so
+******************************************************************************
+_EOF_
+exit 0
+fi
 
+if grep 'extension=simplexml.so' $${PHP_INI} >/dev/null 2>&1; then
+    perl -i -plne 's|;extension=simplexml.so|extension=simplexml.so|' $${PHP_INI}
+else
+        perl -i -pe 's|.*CSW Extensions|; CSW Extensions\nextension=simplexml.so|' $${PHP_INI}
+        fi
+
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Enabled Extension \"simplexml\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the install
+******************************************************************************
+_EOF_
+
+
 exit 0
 endef
 
@@ -27,8 +57,16 @@
 echo "[===> Running Pre Remove <===]"
 echo "   ===> Disabling simplexml extension"
 
-perl -i -plne 's|extension=simplexml.so|;extension=simplexml.so|' ${PHP_INI}
+perl -i -plne 's|extension=simplexml.so|;extension=simplexml.so|' $${PHP_INI}
 
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Disabled Extension \"simplexml\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the removal
+******************************************************************************
+_EOF_
+
 exit 0
 endef
-

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_snmp/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_snmp/Makefile	2009-04-02 05:10:51 UTC (rev 4153)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_snmp/Makefile	2009-04-02 06:26:31 UTC (rev 4154)
@@ -18,8 +18,38 @@
 echo "[===> Running Post Install <===]"
 echo "   ===> Enabling snmp extension"
 
-perl -i -plne 's|;extension=snmp.so|extension=snmp.so|' ${PHP_INI}
+if grep 'CSW Extensions' $${PHP_INI} >/dev/null 2>&1; then
+    /bin/true
+else
+    cat << _EOF_
+******************************************************************************
+* WARNING: Could not enable Extension \"snmp\"
+* 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=snmp.so
+******************************************************************************
+_EOF_
+exit 0
+fi
 
+if grep 'extension=snmp.so' $${PHP_INI} >/dev/null 2>&1; then
+    perl -i -plne 's|;extension=snmp.so|extension=snmp.so|' $${PHP_INI}
+else
+        perl -i -pe 's|.*CSW Extensions|; CSW Extensions\nextension=snmp.so|' $${PHP_INI}
+        fi
+
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Enabled Extension \"snmp\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the install
+******************************************************************************
+_EOF_
+
+
 exit 0
 endef
 
@@ -31,8 +61,16 @@
 echo "[===> Running Pre Remove <===]"
 echo "   ===> Disabling snmp extension"
 
-perl -i -plne 's|extension=snmp.so|;extension=snmp.so|' ${PHP_INI}
+perl -i -plne 's|extension=snmp.so|;extension=snmp.so|' $${PHP_INI}
 
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Disabled Extension \"snmp\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the removal
+******************************************************************************
+_EOF_
+
 exit 0
 endef
-

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_soap/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_soap/Makefile	2009-04-02 05:10:51 UTC (rev 4153)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_soap/Makefile	2009-04-02 06:26:31 UTC (rev 4154)
@@ -19,8 +19,38 @@
 echo "[===> Running Post Install <===]"
 echo "   ===> Enabling soap extension"
 
-perl -i -plne 's|;extension=soap.so|extension=soap.so|' ${PHP_INI}
+if grep 'CSW Extensions' $${PHP_INI} >/dev/null 2>&1; then
+    /bin/true
+else
+    cat << _EOF_
+******************************************************************************
+* WARNING: Could not enable Extension \"soap\"
+* 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=soap.so
+******************************************************************************
+_EOF_
+exit 0
+fi
 
+if grep 'extension=soap.so' $${PHP_INI} >/dev/null 2>&1; then
+    perl -i -plne 's|;extension=soap.so|extension=soap.so|' $${PHP_INI}
+else
+        perl -i -pe 's|.*CSW Extensions|; CSW Extensions\nextension=soap.so|' $${PHP_INI}
+        fi
+
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Enabled Extension \"soap\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the install
+******************************************************************************
+_EOF_
+
+
 exit 0
 endef
 
@@ -32,8 +62,16 @@
 echo "[===> Running Pre Remove <===]"
 echo "   ===> Disabling soap extension"
 
-perl -i -plne 's|extension=soap.so|;extension=soap.so|' ${PHP_INI}
+perl -i -plne 's|extension=soap.so|;extension=soap.so|' $${PHP_INI}
 
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Disabled Extension \"soap\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the removal
+******************************************************************************
+_EOF_
+
 exit 0
 endef
-

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_sockets/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_sockets/Makefile	2009-04-02 05:10:51 UTC (rev 4153)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_sockets/Makefile	2009-04-02 06:26:31 UTC (rev 4154)
@@ -18,8 +18,38 @@
 echo "[===> Running Post Install <===]"
 echo "   ===> Enabling sockets extension"
 
-perl -i -plne 's|;extension=sockets.so|extension=sockets.so|' ${PHP_INI}
+if grep 'CSW Extensions' $${PHP_INI} >/dev/null 2>&1; then
+    /bin/true
+else
+    cat << _EOF_
+******************************************************************************
+* WARNING: Could not enable Extension \"sockets\"
+* 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=sockets.so
+******************************************************************************
+_EOF_
+exit 0
+fi
 
+if grep 'extension=sockets.so' $${PHP_INI} >/dev/null 2>&1; then
+    perl -i -plne 's|;extension=sockets.so|extension=sockets.so|' $${PHP_INI}
+else
+        perl -i -pe 's|.*CSW Extensions|; CSW Extensions\nextension=sockets.so|' $${PHP_INI}
+        fi
+
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Enabled Extension \"sockets\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the install
+******************************************************************************
+_EOF_
+
+
 exit 0
 endef
 
@@ -31,8 +61,16 @@
 echo "[===> Running Pre Remove <===]"
 echo "   ===> Disabling sockets extension"
 
-perl -i -plne 's|extension=sockets.so|;extension=sockets.so|' ${PHP_INI}
+perl -i -plne 's|extension=sockets.so|;extension=sockets.so|' $${PHP_INI}
 
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Disabled Extension \"sockets\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the removal
+******************************************************************************
+_EOF_
+
 exit 0
 endef
-

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_sqlite/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_sqlite/Makefile	2009-04-02 05:10:51 UTC (rev 4153)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_sqlite/Makefile	2009-04-02 06:26:31 UTC (rev 4154)
@@ -19,8 +19,38 @@
 echo "[===> Running Post Install <===]"
 echo "   ===> Enabling sqlite extension"
 
-perl -i -plne 's|;extension=sqlite.so|extension=sqlite.so|' ${PHP_INI}
+if grep 'CSW Extensions' $${PHP_INI} >/dev/null 2>&1; then
+    /bin/true
+else
+    cat << _EOF_
+******************************************************************************
+* WARNING: Could not enable Extension \"sqlite\"
+* 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=sqlite.so
+******************************************************************************
+_EOF_
+exit 0
+fi
 
+if grep 'extension=sqlite.so' $${PHP_INI} >/dev/null 2>&1; then
+    perl -i -plne 's|;extension=sqlite.so|extension=sqlite.so|' $${PHP_INI}
+else
+        perl -i -pe 's|.*CSW Extensions|; CSW Extensions\nextension=sqlite.so|' $${PHP_INI}
+        fi
+
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Enabled Extension \"sqlite\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the install
+******************************************************************************
+_EOF_
+
+
 exit 0
 endef
 
@@ -32,8 +62,16 @@
 echo "[===> Running Pre Remove <===]"
 echo "   ===> Disabling sqlite extension"
 
-perl -i -plne 's|extension=sqlite.so|;extension=sqlite.so|' ${PHP_INI}
+perl -i -plne 's|extension=sqlite.so|;extension=sqlite.so|' $${PHP_INI}
 
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Disabled Extension \"sqlite\"
+* in $${PHP_INI}
+*
+* You will need to restart your web server to finish the removal
+******************************************************************************
+_EOF_
+
 exit 0
 endef
-

Modified: csw/mgar/pkg/php5/trunk/extensions/php5_sysvmsg/Makefile
===================================================================

@@ Diff output truncated at 100000 characters. @@

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