From 10aab25f57ab1818e1be44db4cefe1163f22ebca Mon Sep 17 00:00:00 2001 From: Christoph Date: Wed, 6 Feb 2019 15:50:09 +0100 Subject: [PATCH] mod_php_install.sh: support installation of pear extension 'Mail_mimeDecode'. --- mod_php_install.sh | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/mod_php_install.sh b/mod_php_install.sh index 2f8f553..1e9438c 100755 --- a/mod_php_install.sh +++ b/mod_php_install.sh @@ -3268,7 +3268,7 @@ else fi -for PEAR_EXT in Console_CommandLine Auth Auth_SASL Mail Mail_Mime MDB2 MDB2_Driver_pgsql Crypt_GPG ; do +for PEAR_EXT in Console_CommandLine Auth Auth_SASL Mail Mail_Mime Mail_mimeDecode MDB2 MDB2_Driver_pgsql Crypt_GPG ; do echo "" >> ${_logdir}/pear_install.log echo "# - Install ${PEAR_EXT} via pear.." >> ${_logdir}/pear_install.log @@ -3298,7 +3298,13 @@ for PEAR_EXT in Console_CommandLine Auth Auth_SASL Mail Mail_Mime MDB2 MDB2_Driv if [[ $? -gt 0 ]] ; then _err_msg="Download from '${PEAR_EXT}-${DIST}.zip' https://github.com/pear' failed!" - DIST=trunk + + if [[ "$PEAR_EXT" = "Mail_mimeDecode" ]]; then + DIST="PHP_4_0_7" + else + DIST=trunk + fi + echo "wget -O /tmp/${PEAR_EXT}-${DIST}.zip https://github.com/pear/${PEAR_EXT}/archive/${DIST}.zip" >> ${_logdir}/pear_install.log wget -O /tmp/${PEAR_EXT}-${DIST}.zip https://github.com/pear/${PEAR_EXT}/archive/${DIST}.zip >> ${_logdir}/pear_install.log 2>&1 if [[ $? -gt 0 ]] ; then @@ -3315,10 +3321,11 @@ for PEAR_EXT in Console_CommandLine Auth Auth_SASL Mail Mail_Mime MDB2 MDB2_Driv echo_failed error "Unpacking downloaded pear extension '${PEAR_EXT}' failed! \n\t See logfile '${_logdir}/pear_install.log'" else + echo "pear install /tmp/${PEAR_EXT}-${DIST}/package.xml" >> ${_logdir}/pear_install.log pear install /tmp/${PEAR_EXT}-${DIST}/package.xml >> ${_logdir}/pear_install.log 2>&1 if [[ $? -gt 0 ]] ; then echo_failed - error "'pear install /tmp/${PEAR_EXT}-master/package.xml' failed! \n\t See logfile '${_logdir}/pear_install.log'" + error "'pear install /tmp/${PEAR_EXT}-${DIST}/package.xml' failed! \n\t See logfile '${_logdir}/pear_install.log'" else echo_ok fi