mod_php_install.sh: support installation of pear extension 'Mail_mimeDecode'.

This commit is contained in:
Christoph 2019-02-06 15:50:09 +01:00
parent 629925c080
commit 10aab25f57

View File

@ -3268,7 +3268,7 @@ else
fi 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 "" >> ${_logdir}/pear_install.log
echo "# - Install ${PEAR_EXT} via pear.." >> ${_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 if [[ $? -gt 0 ]] ; then
_err_msg="Download from '${PEAR_EXT}-${DIST}.zip' https://github.com/pear' failed!" _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 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 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 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 echo_failed
error "Unpacking downloaded pear extension '${PEAR_EXT}' failed! \n\t See logfile '${_logdir}/pear_install.log'" error "Unpacking downloaded pear extension '${PEAR_EXT}' failed! \n\t See logfile '${_logdir}/pear_install.log'"
else 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 pear install /tmp/${PEAR_EXT}-${DIST}/package.xml >> ${_logdir}/pear_install.log 2>&1
if [[ $? -gt 0 ]] ; then if [[ $? -gt 0 ]] ; then
echo_failed 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 else
echo_ok echo_ok
fi fi