Commits

Zhang Huangbin  committed 76af891

Drop support for Ubuntu 10.04 (lucid), please use the latest LTS edition 12.04 (precise) instead.

  • Participants
  • Parent commits 74aee26

Comments (0)

Files changed (12)

File iRedMail/ChangeLog

+iRedMail-0.9.0:
+    * Drop support for Ubuntu 10.04 (lucid), please use the latest LTS edition
+      12.04 (precise) instead.
+    * Fixed:
+        + Empty value of AMAVISD_VIRUSMAILS_DIR on RHEL/CENTOS/Scientific 6.
+          Thanks kislik <kislik _at_ centrum.cz> for the report.
+
 iRedMail-0.8.2:
     * Add shell script to backup PostgreSQL databases in cron by default.
       Script is /var/vmail/backup/backup_pgsql.sh, backup directory is

File iRedMail/conf/amavisd

             export AMAVISD_VERSION='2.7'
         fi
     elif [ X"${DISTRO}" == X'UBUNTU' ]; then
-        if [ X"${DISTRO_CODENAME}" != X'lucid' \
-            -a X"${DISTRO_CODENAME}" != X'precise' \
-            ]; then
+        if [ X"${DISTRO_CODENAME}" != X'precise' ]; then
             export AMAVISD_VERSION='2.7'
         fi
     fi

File iRedMail/conf/apache_php

 export HTTPD_CGIBIN_DIR="${HTTPD_SERVERROOT}/cgi-bin"
 
 # PHP connection type.
-if [ X"${DISTRO_CODENAME}" == X"lucid" ]; then
-    export PHP_CONN_TYPE='mysql'
-else
-    export PHP_CONN_TYPE='mysqli'
-fi
+export PHP_CONN_TYPE='mysqli'
 
 [ X"${BACKEND}" == X"PGSQL" ] && export PHP_CONN_TYPE='pgsql'

File iRedMail/conf/dovecot

     export DOVECOT_DELIVER='/usr/lib/dovecot/deliver'
 
 elif [ X"${DISTRO}" == X'DEBIAN' -o X"${DISTRO}" == X'UBUNTU' ]; then
-    if [ X"${DISTRO_CODENAME}" == X'squeeze' \
-        -o X"${DISTRO_CODENAME}" == X'lucid' \
-        ]; then
+    if [ X"${DISTRO_CODENAME}" == X'squeeze' ]; then
         export DOVECOT_VERSION='1.2'
     fi
 

File iRedMail/conf/global

         export DISTRO='UBUNTU'
 
         # Ubuntu version number and code name:
-        #   - 10.04: lucid (Long Term Support by Ubuntu)
         #   - 12.04: precise (Long Term support by Ubuntu)
         export DISTRO_ID="$(grep 'DISTRIB_ID' /etc/lsb-release | awk -F'=' '{print $2}')"
         export DISTRO_VERSION="$(grep 'DISTRIB_RELEASE' /etc/lsb-release | awk -F'=' '{print $2}')"
         export DISTRO_CODENAME="$(grep 'DISTRIB_CODENAME' /etc/lsb-release | awk -F'=' '{print $2}')"
 
         # Support PGSQL backend on Ubuntu 11.10 and later releases
-        if [ X"${DISTRO_CODENAME}" != X"lucid" ]; then
-            export ENABLE_BACKEND_PGSQL='YES'
-        fi
+        export ENABLE_BACKEND_PGSQL='YES'
 
         # Unsupported releases.
         #   - 8.04: hardy
         #   - 8.10: intrepid
         #   - 9.04: jaunty
         #   - 9.10: karmic
+        #   - 10.04: lucid
         #   - 10.10: maverick
         #   - 11.04: natty
         #   - 11.10: oneiric
             -o X"${DISTRO_CODENAME}" == X'intrepid' \
             -o X"${DISTRO_CODENAME}" == X'jaunty' \
             -o X"${DISTRO_CODENAME}" == X'karmic' \
+            -o X"${DISTRO_CODENAME}" == X'lucid' \
             -o X"${DISTRO_CODENAME}" == X'maverick' \
             -o X"${DISTRO_CODENAME}" == X'natty' \
             -o X"${DISTRO_CODENAME}" == X'oneiric' \

File iRedMail/conf/managesieve

 if [ X"${DISTRO}" == X'RHEL' ]; then
     # RHEL 5
     [ X"${DISTRO_VERSION}" == X"5" ] && export MANAGESIEVE_PORT='2000'
-elif [ X"${DISTRO}" == X'UBUNTU' ]; then
-    # Ubuntu 10.04
-    [ X"${DISTRO_CODENAME}" == X"lucid" ] && export MANAGESIEVE_PORT='2000'
 fi

File iRedMail/conf/policy_server

         export USE_CLUEBRINGER='YES'
         export USE_POLICYD='NO'
     fi
-
-elif [ X"${DISTRO}" == X'UBUNTU' ]; then
-    if [ X"${DISTRO_CODENAME}" != X'lucid' ]; then
-        export USE_CLUEBRINGER='YES'
-        export USE_POLICYD='NO'
-    fi
 elif [ X"${DISTRO}" == X'FREEBSD' ]; then
     if [ X"${BACKEND}" == X'PGSQL' ]; then
         export USE_CLUEBRINGER='YES'

File iRedMail/functions/apache_php.sh

     if [ X"${DISTRO}" == X"RHEL" ]; then
         # Enable wsgi.
         perl -pi -e 's/#(LoadModule.*wsgi_module.*modules.*mod_wsgi.so)/${1}/' ${HTTPD_CONF_DIR}/wsgi.conf
+
     elif [ X"${DISTRO}" == X"DEBIAN" -o X"${DISTRO}" == X"UBUNTU" ]; then
         a2ensite default-ssl >/dev/null
 
         [ X"${BACKEND}" == X"MYSQL" ] && a2enmod auth_mysql > /dev/null
         [ X"${BACKEND}" == X"PGSQL" ] && a2enmod 000_auth_pgsql > /dev/null
 
-        # Ubuntu 10.04.
-        # Comments starting with '#' are deprecated.
-        if [ X"${DISTRO_CODENAME}" == X"lucid" ]; then
-            [ -d /etc/php5/cli/conf.d/ ] && perl -pi -e 's/(\s*)#/\1;/' /etc/php5/cli/conf.d/*.ini
-        fi
-
     elif [ X"${DISTRO}" == X"SUSE" ]; then
         a2enmod deflate &>/dev/null
 

File iRedMail/functions/packages.sh

         # Authentication modules
         ALL_PKGS="${ALL_PKGS} libapache2-mod-auth-mysql libapache2-mod-auth-pgsql"
 
-        if [ X"${DISTRO_CODENAME}" == X'squeeze' \
-            -o X"${DISTRO_CODENAME}" == X'lucid' \
-            ]; then
+        if [ X"${DISTRO_CODENAME}" == X'squeeze' ]; then
             ALL_PKGS="${ALL_PKGS} php5-mhash"
         fi
 
             ENABLED_SERVICES="${ENABLED_SERVICES} ${POLICYD_RC_SCRIPT_NAME}"
         fi
 
-        if [ X"${DISTRO_CODENAME}" == X"lucid" ]; then
-            # Don't invoke dbconfig-common on Ubuntu.
-            dpkg-divert --rename /etc/dbconfig-common/postfix-policyd.conf
-            mkdir -p /etc/dbconfig-common/ 2>/dev/null
-            cat > /etc/dbconfig-common/postfix-policyd.conf <<EOF
-dbc_install='true'
-dbc_upgrade='false'
-dbc_remove=''
-dbc_dbtype='mysql'
-dbc_dbuser='postfix-policyd'
-dbc_dbpass="${POLICYD_DB_PASSWD}"
-dbc_dbserver=''
-dbc_dbport=''
-dbc_dbname='postfixpolicyd'
-dbc_dbadmin='root'
-dbc_basepath=''
-dbc_ssl=''
-dbc_authmethod_admin=''
-dbc_authmethod_user=''
-EOF
-        fi
     elif [ X"${DISTRO}" == X'GENTOO' ]; then
         ALL_PKGS="${ALL_PKGS} policyd"
         ENABLED_SERVICES="${ENABLED_SERVICES} ${POLICYD_RC_SCRIPT_NAME}"
     elif [ X"${DISTRO}" == X"DEBIAN" -o X"${DISTRO}" == X"UBUNTU" ]; then
         ALL_PKGS="${ALL_PKGS} dovecot-imapd dovecot-pop3d"
 
-        if [ X"${DISTRO_CODENAME}" != X'squeeze' \
-            -a X"${DISTRO_CODENAME}" != X'lucid' \
-            ]; then
+        if [ X"${DISTRO_CODENAME}" != X'squeeze' ]; then
             ALL_PKGS="${ALL_PKGS} dovecot-managesieved dovecot-sieve"
 
             if [ X"${BACKEND}" == X"OPENLDAP" ]; then

File iRedMail/pkgs/MD5.debian.squeeze

+9b2adf3fc95d510a413938ed5ad2c9e2  misc/iRedAdmin-0.1.9.tar.bz2
+662a8e316fbaa0333764113512d7794a  misc/roundcubemail-0.8.1.tar.gz
+6ba17a1379b612838d691d7366e867db  misc/iRedAPD-1.3.8.tar.bz2
+ea3030b376d389bbe447f88dfaf832f2  misc/phpPgAdmin-5.0.4.tar.bz2

File iRedMail/pkgs/MD5.ubuntu.lucid

-9b2adf3fc95d510a413938ed5ad2c9e2  misc/iRedAdmin-0.1.9.tar.bz2
-662a8e316fbaa0333764113512d7794a  misc/roundcubemail-0.8.1.tar.gz
-6ba17a1379b612838d691d7366e867db  misc/iRedAPD-1.3.8.tar.bz2
-ea3030b376d389bbe447f88dfaf832f2  misc/phpPgAdmin-5.0.4.tar.bz2

File iRedMail/pkgs/get_all.sh

 if [ X"${DISTRO}" == X"FREEBSD" ]; then
     PKGMISC='SHASUM.freebsd.misc'
 elif [ X"${DISTRO}" == X"DEBIAN" -a X"${DISTRO_CODENAME}" == X"squeeze" ]; then
-    PKGMISC='MD5.ubuntu.lucid'
-elif [ X"${DISTRO}" == X"UBUNTU" -a X"${DISTRO_CODENAME}" == X"lucid" ]; then
-    PKGMISC='MD5.ubuntu.lucid'
+    PKGMISC='MD5.debian.squeeze'
 elif [ X"${DISTRO}" == X"SUSE" ]; then
     PKGMISC='MD5.misc MD5.opensuse'
 elif [ X"${DISTRO}" == X'OPENBSD' ]; then