Zhang Huangbin avatar Zhang Huangbin committed d041f59

Drop support for below releases:
+ OpenBSD 5.1, 5.2.
+ openSUSE 12.1, 12.2.

Comments (0)

Files changed (6)

iRedMail/ChangeLog

       - SQL: column domain.defaultlang
       - OpenLDAP: attribute 'preferredLanguage' for mailDomain object
 
+    * Drop support for below releases:
+        + OpenBSD 5.1, 5.2.
+        + openSUSE 12.1, 12.2.
+
     * Fixed:
         + Incorrect Amavisd column name:
           policy.unchecked_lovers_maps (incorrect) -> policy.unchecked_lover.

iRedMail/conf/global

         #   - 12.3: dartmouth
         export DISTRO_CODENAME="$(grep 'CODENAME' /etc/SuSE-release | awk '{print $3}' |tr [A-Z] [a-z])"
 
-        # Unsupported releases: 10.x, 11.x, 12.1 (asparagus).
+        # Unsupported releases: 10.x, 11.x, 12.1 (asparagus), 12.2.
         if echo "${DISTRO_VERSION}" | grep '^1[01]' &>/dev/null ; then
             export UNSUPPORTED_RELEASE='YES'
-        elif echo "${DISTRO_VERSION}" | grep '^12\.1' &>/dev/null ; then
+        elif echo "${DISTRO_VERSION}" | grep '^12.[12]' &>/dev/null ; then
             export UNSUPPORTED_RELEASE='YES'
         fi
 
     export DIR_RC_SCRIPTS='/etc/rc.d'
     export RC_CONF_LOCAL='/etc/rc.conf.local'
     export SHELL_BASH='/usr/local/bin/bash'
+
+    # Unsupported release: 5.1, 5.2.
+    if echo "${DISTRO_VERSION}" | grep '^5.[12]' &>/dev/null ; then
+        export UNSUPPORTED_RELEASE='YES'
+    fi
 else
     # Not support *BSD and other distrobutions yet.
     echo "Error: Your OS is not supported yet."

iRedMail/conf/policy_server

         export USE_POLICYD='NO'
     fi
 elif [ X"${DISTRO}" == X'SUSE' ]; then
-    if [ X"${DISTRO_CODENAME}" == X'mantis' ]; then
-        # Use cluebringer in openSUSE-12.2 with PostgreSQL backend
-        if [ X"${BACKEND}" == X'PGSQL' ]; then
-            export USE_CLUEBRINGER='YES'
-            export USE_POLICYD='NO'
-        fi
-    else
-        # Use cluebringer in openSUSE-12.3 and later releases.
-        export USE_CLUEBRINGER='YES'
-        export USE_POLICYD='NO'
-    fi
+    # Use cluebringer in openSUSE-12.3 and later releases.
+    export USE_CLUEBRINGER='YES'
+    export USE_POLICYD='NO'
 elif [ X"${DISTRO}" == X'DEBIAN' ]; then
     if [ X"${DISTRO_CODENAME}" == X'wheezy' ]; then
         export USE_CLUEBRINGER='YES'

iRedMail/dialog/optional_components.sh

 # ----------------------------------------
 # Detect selectable menu items
 if [ X"${DISTRO}" == X'SUSE' ]; then
-    # Apache module mod_auth_pgsql is not available
-    [ X"${BACKEND}" == X'PGSQL' ] && export DIALOG_SELECTABLE_AWSTATS='NO'
-
     # openSUSE-12.3 doesn't have mod_auth_mysql and mod_auth_pgsql.
-    [ X"${DISTRO_CODENAME}" != X'mantis' ] && export DIALOG_SELECTABLE_AWSTATS='NO'
+    export DIALOG_SELECTABLE_AWSTATS='NO'
 elif [ X"${DISTRO}" == X'OPENBSD' ]; then
     # Binary/port Awstats is not available in 5.2 and earlier releases
     export DIALOG_SELECTABLE_AWSTATS='NO'

iRedMail/functions/packages.sh

     elif [ X"${DISTRO}" == X"SUSE" ]; then
         ALL_PKGS="${ALL_PKGS} perl-Mail-SPF amavisd-new clamav spamassassin altermime"
 
-        # openSUSE-12.2. package 'clamav-db' is not required in openSUSE-12.3.
-        [ X"${DISTRO_CODENAME}" == X'mantis' ] && ALL_PKGS="${ALL_PKGS} clamav-db"
-
         [ X"${BACKEND}" == X'OPENLDAP' ] && ALL_PKGS="${ALL_PKGS} perl-ldap perl-DBD-mysql"
         [ X"${BACKEND}" == X'MYSQL' ] && ALL_PKGS="${ALL_PKGS} perl-DBD-mysql"
         [ X"${BACKEND}" == X'PGSQL' ] && ALL_PKGS="${ALL_PKGS} perl-DBD-Pg"

iRedMail/functions/policy_server.sh

         check_status_before_run cluebringer_config
 
         # openSUSE-12.3 doesn't have Apache module mod_auth_mysql & mod_auth_pgsql.
-        if [ X"${DISTRO}" == X'SUSE' ]; then
-            if [ X"${DISTRO_CODENAME}" == X'mantis' ]; then
-                check_status_before_run cluebringer_webui_config
-            fi
-        else
+        if [ X"${DISTRO}" != X'SUSE' ]; then
             check_status_before_run cluebringer_webui_config
         fi
     fi
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.