Commits

Zhang Huangbin committed 79f4ee0

Drop support for openSUSE 12.1 (asparagus), please use 12.2 (mantis) instead.

  • Participants
  • Parent commits bc71bd6

Comments (0)

Files changed (7)

iRedMail/ChangeLog

 iRedMail-0.9.0:
-    * Drop support for FreeBSD 8.x.
-    * Drop support for Ubuntu 10.04 (lucid), please use the latest LTS edition
-      12.04 (precise) instead.
+    * Drop support for below distributions and releases:
+        + FreeBSD 8.x.
+        + Ubuntu 10.04 (lucid). Please use 12.04 (precise) instead.
+        + openSUSE 12.1 (asparagus). Please use 12.2 (mantis) instead.
+
     * Fixed:
         + Incorrect SQL table name in Cluebringer httpd config file.
         + Empty value of AMAVISD_VIRUSMAILS_DIR on RHEL/CENTOS/Scientific 6.

iRedMail/conf/global

         export DISTRO_VERSION="$(grep 'VERSION' /etc/SuSE-release | awk '{print $3}')"
 
         # code name
-        #   - 12.1: asparagus
         #   - 12.2: mantis
         export DISTRO_CODENAME="$(grep 'CODENAME' /etc/SuSE-release | awk '{print $3}' |tr [A-Z] [a-z])"
 
-        # Unsupported releases
-        #   - 11.x
-        #   - 10.x
-        if echo "${DISTRO_VERSION}" | grep '^1[0|1]' &>/dev/null ; then
-            # Both 10.x and 11.x are unsupported
+        # Unsupported releases: 10.x, 11.x, 12.1 (asparagus).
+        if echo "${DISTRO_VERSION}" | grep '^1[01]' &>/dev/null ; then
+            export UNSUPPORTED_RELEASE='YES'
+        elif echo "${DISTRO_VERSION}" | grep '^12\.1' &>/dev/null ; then
             export UNSUPPORTED_RELEASE='YES'
         fi
 
-        if [ X"${DISTRO_CODENAME}" == X'mantis' ]; then
-            export ENABLE_BACKEND_PGSQL='YES'
-        fi
+        export ENABLE_BACKEND_PGSQL='YES'
+
     elif [ -f /etc/lsb-release ]; then
         # Ubuntu
         export DISTRO='UBUNTU'

iRedMail/conf/phpmyadmin

 
 # Install phpMyAdmin with binary packages.
 if [ X"${DISTRO}" == X'SUSE' ]; then
-    if [ X"${DISTRO_CODENAME}" == X'mantis' ]; then
-        export PHPMYADMIN_USE_SOURCE='NO'
-        export PHPMYADMIN_HTTPD_ROOT="${HTTPD_DOCUMENTROOT}/phpMyAdmin"
-        export PHPMYADMIN_HTTPD_ROOT_SYMBOL_LINK="${PHPMYADMIN_HTTPD_ROOT}"
-    fi
+    export PHPMYADMIN_USE_SOURCE='NO'
+    export PHPMYADMIN_HTTPD_ROOT="${HTTPD_DOCUMENTROOT}/phpMyAdmin"
+    export PHPMYADMIN_HTTPD_ROOT_SYMBOL_LINK="${PHPMYADMIN_HTTPD_ROOT}"
 elif [ X"${DISTRO}" == X'DEBIAN' -o X"${DISTRO}" == X'UBUNTU' ]; then
     export PHPMYADMIN_USE_SOURCE='NO'
     export PHPMYADMIN_HTTPD_ROOT="/usr/share/phpmyadmin"

iRedMail/conf/phppgadmin

 
 # Install phpPgAdmin with binary packages.
 if [ X"${DISTRO}" == X'SUSE' ]; then
-    if [ X"${DISTRO_CODENAME}" == X'mantis' ]; then
-        export PHPPGADMIN_USE_SOURCE='NO'
-        export PHPPGADMIN_HTTPD_ROOT="${HTTPD_DOCUMENTROOT}/phpPgAdmin"
-        export PHPPGADMIN_HTTPD_ROOT_SYMBOL_LINK="${PHPMYADMIN_HTTPD_ROOT}"
-        export PHPPGADMIN_HTTPD_CONF="${HTTPD_CONF_DIR}/phppgadmin"
-    fi
+    export PHPPGADMIN_USE_SOURCE='NO'
+    export PHPPGADMIN_HTTPD_ROOT="${HTTPD_DOCUMENTROOT}/phpPgAdmin"
+    export PHPPGADMIN_HTTPD_ROOT_SYMBOL_LINK="${PHPMYADMIN_HTTPD_ROOT}"
+    export PHPPGADMIN_HTTPD_CONF="${HTTPD_CONF_DIR}/phppgadmin"
 elif [ X"${DISTRO}" == X'DEBIAN' -o X"${DISTRO}" == X'UBUNTU' ]; then
     export PHPPGADMIN_USE_SOURCE='NO'
     export PHPPGADMIN_HTTPD_ROOT="/usr/share/phppgadmin"

iRedMail/dialog/optional_components.sh

 # Detect selectable menu items
 if [ X"${DISTRO}" == X'SUSE' ]; then
     # Apache module mod_auth_pgsql is not available
-    if [ X"${DISTRO_CODENAME}" == X'mantis' ]; then
-        [ X"${BACKEND}" == X'PGSQL' ] && export DIALOG_SELECTABLE_AWSTATS='NO'
-    fi
+    [ X"${BACKEND}" == X'PGSQL' ] && export DIALOG_SELECTABLE_AWSTATS='NO'
 elif [ X"${DISTRO}" == X'OPENBSD' ]; then
     # Binary/port Awstats is not available
     export DIALOG_SELECTABLE_AWSTATS='NO'

iRedMail/functions/packages.sh

         DISABLED_SERVICES="${DISABLED_SERVICES} saslauthd"
 
     elif [ X"${DISTRO}" == X"SUSE" ]; then
-        [ X"${DISTRO_CODENAME}" == X'asparagus' ] && ALL_PKGS="${ALL_PKGS} dovecot20"
-        [ X"${DISTRO_CODENAME}" == X'mantis' ] && ALL_PKGS="${ALL_PKGS} dovecot21"
+        ALL_PKGS="${ALL_PKGS} dovecot21"
 
         if [ X"${BACKEND}" == X"MYSQL" ]; then
-            [ X"${DISTRO_CODENAME}" == X'asparagus' ] && ALL_PKGS="${ALL_PKGS} dovecot20-backend-mysql"
-            [ X"${DISTRO_CODENAME}" == X'mantis' ] && ALL_PKGS="${ALL_PKGS} dovecot21-backend-mysql"
+            ALL_PKGS="${ALL_PKGS} dovecot21-backend-mysql"
         elif [ X"${BACKEND}" == X"PGSQL" ]; then
-            [ X"${DISTRO_CODENAME}" == X'asparagus' ] && ALL_PKGS="${ALL_PKGS} dovecot20-backend-pgsql"
-            [ X"${DISTRO_CODENAME}" == X'mantis' ] && ALL_PKGS="${ALL_PKGS} dovecot21-backend-pgsql"
+            ALL_PKGS="${ALL_PKGS} dovecot21-backend-pgsql"
         fi
 
     elif [ X"${DISTRO}" == X"DEBIAN" -o X"${DISTRO}" == X"UBUNTU" ]; then
         ALL_PKGS="${ALL_PKGS} python-jinja2${PKG_ARCH} python-webpy.noarch mod_wsgi${PKG_ARCH}"
 
     elif [ X"${DISTRO}" == X"SUSE" ]; then
-        ALL_PKGS="${ALL_PKGS} apache2-mod_wsgi python-jinja2 python-xml"
-
-        # openSUSE-12.1: Web.py will be installed locally with command 'easy_install'.
-        [ X"${DISTRO_CODENAME}" == X'asparagus' ] && ALL_PKGS="${ALL_PKGS} python-distribute"
-        [ X"${DISTRO_CODENAME}" == X'mantis' ] && ALL_PKGS="${ALL_PKGS} python-web.py"
+        ALL_PKGS="${ALL_PKGS} apache2-mod_wsgi python-jinja2 python-xml python-web.py"
 
     elif [ X"${DISTRO}" == X"DEBIAN" -o X"${DISTRO}" == X"UBUNTU" ]; then
         ALL_PKGS="${ALL_PKGS} libapache2-mod-wsgi python-jinja2 python-netifaces python-webpy"
         fi
         eval ${install_pkg} ${ALL_PKGS}
 
-        if [ X"${DISTRO}" == X"SUSE" \
-            -a X"${DISTRO_CODENAME}" == X'asparagus' \
-            -a X"${USE_IREDADMIN}" == X'YES' \
-            ]; then
-            ECHO_DEBUG "Install web.py (${MISC_DIR}/web.py-*.tar.bz)."
-            easy_install ${MISC_DIR}/web.py-*.tar.gz >/dev/null
-        fi
         echo 'export status_install_all_pkgs="DONE"' >> ${STATUS_FILE}
     }
 

iRedMail/functions/phpmyadmin.sh

         ln -s ${PHPMYADMIN_HTTPD_ROOT} ${PHPMYADMIN_HTTPD_ROOT_SYMBOL_LINK} >/dev/null
     fi
 
-    ECHO_DEBUG "Create directory alias for phpMyAdmin in Apache: ${HTTPD_CONF_DIR}/phpmyadmin.conf."
-    if [ X"${DISTRO_CODENAME}" != X'mantis' ]; then
-        cat > ${HTTPD_CONF_DIR}/phpmyadmin.conf <<EOF
-${CONF_MSG}
-# Note: Please refer to ${HTTPD_SSL_CONF} for SSL/TLS setting.
-<Directory "${PHPMYADMIN_HTTPD_ROOT_SYMBOL_LINK}/">
-    Options -Indexes
-</Directory>
-EOF
-    fi
-
     # Make phpMyAdmin can be accessed via HTTPS only.
     perl -pi -e 's#^(</VirtualHost>)#Alias /phpmyadmin "$ENV{PHPMYADMIN_HTTPD_ROOT_SYMBOL_LINK}/"\n${1}#' ${HTTPD_SSL_CONF}