[csw-devel] SF.net SVN: gar:[4173] csw/mgar/pkg/php5/trunk/extensions
valholla at users.sourceforge.net
valholla at users.sourceforge.net
Fri Apr 3 18:17:12 CEST 2009
Revision: 4173
http://gar.svn.sourceforge.net/gar/?rev=4173&view=rev
Author: valholla
Date: 2009-04-03 16:17:12 +0000 (Fri, 03 Apr 2009)
Log Message:
-----------
fix extension install admin scripts
Modified Paths:
--------------
csw/mgar/pkg/php5/trunk/extensions/php5_mime_magic/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_recode/Makefile
Modified: csw/mgar/pkg/php5/trunk/extensions/php5_mime_magic/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_mime_magic/Makefile 2009-04-03 06:32:57 UTC (rev 4172)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_mime_magic/Makefile 2009-04-03 16:17:12 UTC (rev 4173)
@@ -10,7 +10,7 @@
PKGFILES_CSWphp5mimemagic = .*/lib/php/extensions/.*/mime_magic.*
-define CSWphp5mime_magic_postinstall
+define CSWphp5mimemagic_postinstall
#!/bin/sh
PHP_INI=/opt/csw/php5/lib/php.ini
@@ -53,7 +53,7 @@
exit 0
endef
-define CSWphp5mime_magic_preremove
+define CSWphp5mimemagic_preremove
#!/bin/sh
PHP_INI=/opt/csw/php5/lib/php.ini
Modified: csw/mgar/pkg/php5/trunk/extensions/php5_pdomysql/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_pdomysql/Makefile 2009-04-03 06:32:57 UTC (rev 4172)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_pdomysql/Makefile 2009-04-03 16:17:12 UTC (rev 4173)
@@ -17,33 +17,33 @@
PHP_INI=/opt/csw/php5/lib/php.ini
echo "[===> Running Post Install <===]"
-echo " ===> Enabling pdomysql extension"
+echo " ===> Enabling pdo_mysql extension"
if grep 'CSW Extensions' $${PHP_INI} >/dev/null 2>&1; then
/bin/true
else
cat << _EOF_
******************************************************************************
-* WARNING: Could not enable Extension "pdomysql"
+* WARNING: Could not enable Extension "pdo_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=pdomysql.so
+* extension=pdo_mysql.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}
+if grep 'extension=pdo_mysql.so' $${PHP_INI} >/dev/null 2>&1; then
+ perl -i -plne 's|;extension=pdo_mysql.so|extension=pdo_mysql.so|' $${PHP_INI}
else
- perl -i -pe 's|.*CSW Extensions|; CSW Extensions\nextension=pdomysql.so|' $${PHP_INI}
+ perl -i -pe 's|.*CSW Extensions|; CSW Extensions\nextension=pdo_mysql.so|' $${PHP_INI}
fi
cat << _EOF_
******************************************************************************
-* NOTICE: Successfully Enabled Extension "pdomysql"
+* NOTICE: Successfully Enabled Extension "pdo_mysql"
* in $${PHP_INI}
*
* You will need to restart your web server to finish the install
@@ -60,13 +60,13 @@
PHP_INI=/opt/csw/php5/lib/php.ini
echo "[===> Running Pre Remove <===]"
-echo " ===> Disabling pdomysql extension"
+echo " ===> Disabling pdo_mysql extension"
-perl -i -plne 's|extension=pdomysql.so|;extension=pdomysql.so|' $${PHP_INI}
+perl -i -plne 's|extension=pdo_mysql.so|;extension=pdo_mysql.so|' $${PHP_INI}
cat << _EOF_
******************************************************************************
-* NOTICE: Successfully Disabled Extension "pdomysql"
+* NOTICE: Successfully Disabled Extension "pdo_mysql"
* in $${PHP_INI}
*
* You will need to restart your web server to finish the removal
Modified: csw/mgar/pkg/php5/trunk/extensions/php5_pdoodbc/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_pdoodbc/Makefile 2009-04-03 06:32:57 UTC (rev 4172)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_pdoodbc/Makefile 2009-04-03 16:17:12 UTC (rev 4173)
@@ -16,33 +16,33 @@
PHP_INI=/opt/csw/php5/lib/php.ini
echo "[===> Running Post Install <===]"
-echo " ===> Enabling pdoodbc extension"
+echo " ===> Enabling pdo_odbc extension"
if grep 'CSW Extensions' $${PHP_INI} >/dev/null 2>&1; then
/bin/true
else
cat << _EOF_
******************************************************************************
-* WARNING: Could not enable Extension "pdoodbc"
+* WARNING: Could not enable Extension "pdo_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=pdoodbc.so
+* extension=pdo_odbc.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}
+if grep 'extension=pdo_odbc.so' $${PHP_INI} >/dev/null 2>&1; then
+ perl -i -plne 's|;extension=pdo_odbc.so|extension=pdo_odbc.so|' $${PHP_INI}
else
- perl -i -pe 's|.*CSW Extensions|; CSW Extensions\nextension=pdoodbc.so|' $${PHP_INI}
+ perl -i -pe 's|.*CSW Extensions|; CSW Extensions\nextension=pdo_odbc.so|' $${PHP_INI}
fi
cat << _EOF_
******************************************************************************
-* NOTICE: Successfully Enabled Extension "pdoodbc"
+* NOTICE: Successfully Enabled Extension "pdo_odbc"
* in $${PHP_INI}
*
* You will need to restart your web server to finish the install
@@ -59,13 +59,13 @@
PHP_INI=/opt/csw/php5/lib/php.ini
echo "[===> Running Pre Remove <===]"
-echo " ===> Disabling pdoodbc extension"
+echo " ===> Disabling pdo_odbc extension"
-perl -i -plne 's|extension=pdoodbc.so|;extension=pdoodbc.so|' $${PHP_INI}
+perl -i -plne 's|extension=pdo_odbc.so|;extension=pdo_odbc.so|' $${PHP_INI}
cat << _EOF_
******************************************************************************
-* NOTICE: Successfully Disabled Extension "pdoodbc"
+* NOTICE: Successfully Disabled Extension "pdo_odbc"
* in $${PHP_INI}
*
* You will need to restart your web server to finish the removal
Modified: csw/mgar/pkg/php5/trunk/extensions/php5_pdopgsql/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_pdopgsql/Makefile 2009-04-03 06:32:57 UTC (rev 4172)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_pdopgsql/Makefile 2009-04-03 16:17:12 UTC (rev 4173)
@@ -18,33 +18,33 @@
PHP_INI=/opt/csw/php5/lib/php.ini
echo "[===> Running Post Install <===]"
-echo " ===> Enabling pdopgsql extension"
+echo " ===> Enabling pdo_pgsql extension"
if grep 'CSW Extensions' $${PHP_INI} >/dev/null 2>&1; then
/bin/true
else
cat << _EOF_
******************************************************************************
-* WARNING: Could not enable Extension "pdopgsql"
+* WARNING: Could not enable Extension "pdo_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=pdopgsql.so
+* extension=pdo_pgsql.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}
+if grep 'extension=pdo_pgsql.so' $${PHP_INI} >/dev/null 2>&1; then
+ perl -i -plne 's|;extension=pdo_pgsql.so|extension=pdo_pgsql.so|' $${PHP_INI}
else
- perl -i -pe 's|.*CSW Extensions|; CSW Extensions\nextension=pdopgsql.so|' $${PHP_INI}
+ perl -i -pe 's|.*CSW Extensions|; CSW Extensions\nextension=pdo_pgsql.so|' $${PHP_INI}
fi
cat << _EOF_
******************************************************************************
-* NOTICE: Successfully Enabled Extension "pdopgsql"
+* NOTICE: Successfully Enabled Extension "pdo_pgsql"
* in $${PHP_INI}
*
* You will need to restart your web server to finish the install
@@ -61,13 +61,13 @@
PHP_INI=/opt/csw/php5/lib/php.ini
echo "[===> Running Pre Remove <===]"
-echo " ===> Disabling pdopgsql extension"
+echo " ===> Disabling pdo_pgsql extension"
-perl -i -plne 's|extension=pdopgsql.so|;extension=pdopgsql.so|' $${PHP_INI}
+perl -i -plne 's|extension=pdo_pgsql.so|;extension=pdo_pgsql.so|' $${PHP_INI}
cat << _EOF_
******************************************************************************
-* NOTICE: Successfully Disabled Extension "pdopgsql"
+* NOTICE: Successfully Disabled Extension "pdo_pgsql"
* in $${PHP_INI}
*
* You will need to restart your web server to finish the removal
Modified: csw/mgar/pkg/php5/trunk/extensions/php5_pdosqlite/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_pdosqlite/Makefile 2009-04-03 06:32:57 UTC (rev 4172)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_pdosqlite/Makefile 2009-04-03 16:17:12 UTC (rev 4173)
@@ -16,33 +16,33 @@
PHP_INI=/opt/csw/php5/lib/php.ini
echo "[===> Running Post Install <===]"
-echo " ===> Enabling pdosqlite extension"
+echo " ===> Enabling pdo_sqlite extension"
if grep 'CSW Extensions' $${PHP_INI} >/dev/null 2>&1; then
/bin/true
else
cat << _EOF_
******************************************************************************
-* WARNING: Could not enable Extension "pdosqlite"
+* WARNING: Could not enable Extension "pdo_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=pdosqlite.so
+* extension=pdo_sqlite.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}
+if grep 'extension=pdo_sqlite.so' $${PHP_INI} >/dev/null 2>&1; then
+ perl -i -plne 's|;extension=pdo_sqlite.so|extension=pdo_sqlite.so|' $${PHP_INI}
else
- perl -i -pe 's|.*CSW Extensions|; CSW Extensions\nextension=pdosqlite.so|' $${PHP_INI}
+ perl -i -pe 's|.*CSW Extensions|; CSW Extensions\nextension=pdo_sqlite.so|' $${PHP_INI}
fi
cat << _EOF_
******************************************************************************
-* NOTICE: Successfully Enabled Extension "pdosqlite"
+* NOTICE: Successfully Enabled Extension "pdo_sqlite"
* in $${PHP_INI}
*
* You will need to restart your web server to finish the install
@@ -59,13 +59,13 @@
PHP_INI=/opt/csw/php5/lib/php.ini
echo "[===> Running Pre Remove <===]"
-echo " ===> Disabling pdosqlite extension"
+echo " ===> Disabling pdo_sqlite extension"
-perl -i -plne 's|extension=pdosqlite.so|;extension=pdosqlite.so|' $${PHP_INI}
+perl -i -plne 's|extension=pdo_sqlite.so|;extension=pdo_sqlite.so|' $${PHP_INI}
cat << _EOF_
******************************************************************************
-* NOTICE: Successfully Disabled Extension "pdosqlite"
+* NOTICE: Successfully Disabled Extension "pdo_sqlite"
* in $${PHP_INI}
*
* You will need to restart your web server to finish the removal
Modified: csw/mgar/pkg/php5/trunk/extensions/php5_recode/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/extensions/php5_recode/Makefile 2009-04-03 06:32:57 UTC (rev 4172)
+++ csw/mgar/pkg/php5/trunk/extensions/php5_recode/Makefile 2009-04-03 16:17:12 UTC (rev 4173)
@@ -1,65 +1 @@
@ ( 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
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