Zhang Huangbin avatar Zhang Huangbin committed 32399ee

Reverse ... again :(

Comments (0)

Files changed (25)

iRedMail/conf/amavisd

     export AMAVISD_TEMPDIR="${AMAVISD_MYHOME}/tmp"
 
     export AMAVISD_DB_MYSQL_TMPL="${SAMPLE_DIR}/amavisd-2.7.0.mysql"
-
-elif [ X"${DISTRO}" == X'DFLY' ]; then
-    # Override global setting: user/group.
-    export AMAVISD_SYS_USER='vscan'
-    export AMAVISD_SYS_GROUP='vscan'
-
-    export AMAVISD_BIN="${DFLY_PKG_LOCALBASE}/sbin/amavisd"
-    export AMAVISD_CONF="${DFLY_PKG_LOCALBASE}/etc/amavisd.conf"
-    export AMAVISD_DKIM_CONF="${AMAVISD_CONF}"
-    export AMAVISD_RC_SCRIPT_NAME='amavisd'
-    export AMAVISD_SHIPPED_LDAP_SCHEMA='/usr/pkg/share/doc/amavisd-new/LDAP.schema'
-    export AMAVISD_LDAP_SCHEMA_NAME='amavisd-new.schema'
-    export AMAVISD_VIRUSMAILS_DIR='/var/virusmails'
-
-    export AMAVISD_SHIPPED_RC_SCRIPT="${DFLY_PKG_RC_SCRIPTS}/amavisd"
-
-    # Override location of command 'altermime'
-    export ALTERMIME_BIN="${DFLY_PKG_LOCALBASE}/bin/altermime"
-
 elif [ X"${DISTRO}" == X"FREEBSD" ]; then
     # Override global setting: user/group.
     export AMAVISD_SYS_USER='vscan'
     export AMAVISD_CONF='/usr/local/etc/amavisd.conf'
     export AMAVISD_DKIM_CONF='/usr/local/etc/amavisd.conf'
     export AMAVISD_RC_SCRIPT_NAME='amavisd'
-    export AMAVISD_SHIPPED_LDAP_SCHEMA='/usr/local/share/doc/amavisd-new/LDAP.schema'
     export AMAVISD_LDAP_SCHEMA_NAME='amavisd-new.schema'
     export AMAVISD_VIRUSMAILS_DIR='/var/virusmails'
 

iRedMail/conf/apache_php

 # ---- Apache ----
 
 export HTTPD_PORT='80'
-export HTTPD_USER='www'
-export HTTPD_GROUP='www'
 
 if [ X"${DISTRO}" == X"RHEL" ]; then
     # Apache configuration files.
 
     # Daemon user.
     export HTTPD_USER='wwwrun'
+    export HTTPD_GROUP='www'
 
     # Log file location.
     export HTTPD_LOG_ACCESSLOG='/var/log/apache2/access_log'
     # ---- PHP ----
     export PHP_INI='/etc/php/apache2-php5.3/php.ini'
 
-elif [ X"${DISTRO}" == X"DFLY" ]; then
-    # Apache configuration files.
-    export HTTPD_CONF_ROOT="${DFLY_PKG_LOCALBASE}/etc/httpd"
-    export HTTPD_CONF="${HTTPD_CONF_ROOT}/httpd.conf"
-    export HTTPD_CONF_DIR="${HTTPD_CONF_ROOT}"
-
-    # Copy from example: /usr/local/share/examples/apache22/extra/httpd-ssl.conf
-    export HTTPD_SSL_CONF="${HTTPD_CONF_ROOT}/httpd-ssl.conf"
-
-    # Web data.
-    export HTTPD_SERVERROOT="${DFLY_PKG_LOCALBASE}/share/httpd"
-    export HTTPD_DOCUMENTROOT="${HTTPD_SERVERROOT}/htdocs"
-
-    # Log file location.
-    export HTTPD_LOG_ACCESSLOG='/var/log/httpd/access.log'
-    export HTTPD_LOG_ERRORLOG='/var/log/httpd/error.log'
-
-    # PHP
-    export PHP_INI="${DFLY_PKG_LOCALBASE}/etc/php.ini"
-
-    export HTTPD_SHIPPED_RC_SCRIPT="${DFLY_PKG_RC_SCRIPTS}/apache"
-
 elif [ X"${DISTRO}" == X"FREEBSD" ]; then
     # Apache configuration files.
     export HTTPD_CONF_ROOT="/usr/local/etc/apache22"
     export HTTPD_SERVERROOT='/usr/local/www'
     export HTTPD_DOCUMENTROOT="${HTTPD_SERVERROOT}/apache22/data"
 
+    # Daemon user.
+    export HTTPD_USER='www'
+    export HTTPD_GROUP='www'
+
     # Log file location.
     export HTTPD_LOG_ACCESSLOG='/var/log/httpd-access.log'
     export HTTPD_LOG_ERRORLOG='/var/log/httpd-error.log'

iRedMail/conf/clamav

     export CLAMD_CONF='/etc/clamd.conf'
     export FRESHCLAM_CONF='/etc/freshclam.conf'
 
-elif [ X"${DISTRO}" == X'DFLY' ]; then
-    export CLAMD_CONF="${DFLY_PKG_LOCALBASE}/etc/clamd.conf"
-    export FRESHCLAM_CONF="${DFLY_PKG_LOCALBASE}/etc/freshclam.conf"
-
-    export CLAMD_SHIPPED_RC_SCRIPT="${DFLY_PKG_RC_SCRIPTS}/clamd"
-    export FRESHCLAMD_SHIPPED_RC_SCRIPT="${DFLY_PKG_RC_SCRIPTS}/freshclamd"
-
 elif [ X"${DISTRO}" == X"FREEBSD" ]; then
     export CLAMD_CONF='/usr/local/etc/clamd.conf'
     export FRESHCLAM_CONF='/usr/local/etc/freshclam.conf'

iRedMail/conf/core

         exit 255
     else
         if [ X"$(id -u)" == X"0" ]; then
-            export PATH="/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/usr/pkg/sbin:/usr/pkg/bin"
+            export PATH="/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"
         else
             :
         fi
     done
 }
 
-enable_service_dfly()
+# TODO
+enable_service_freebsd()
 {
-    # Add '[service_name]_enable='YES'
-    services="$@"
-    for srv in $services; do
-        if ! grep "${srv}_enabled_by_iredmail" &>/dev/null; then
-            echo "${srv}_enable='YES'  # ${srv}_enabled_by_iredmail" >> /etc/rc.conf
-        fi
-    done
+    :
 }
 
-enable_service_freebsd()
+# TODO
+disable_service_freebsd()
 {
-    # Add '[service_name]_enable='YES'
-    services="$@"
-    for srv in $services; do
-        if ! grep "${srv}_enabled_by_iredmail" &>/dev/null; then
-            echo "${srv}_enable='YES'  # ${srv}_enabled_by_iredmail" >> /etc/rc.conf
-        fi
-    done
+    :
 }
 
 service_control()
         unset VAR VALUE
     fi
 }
-
-# Install/Remove binary packages on DragonFly BSD
-install_pkg_dfly()
-{
-    ECHO_INFO "Installing package(s): $@"
-    /usr/bin/pkg_radd $@
-    if [ X"$?" != X"0" ]; then
-        ECHO_ERROR "Installation failed, please check the terminal output."
-        exit 255
-    else
-        :
-    fi
-}
-
-remove_pkg_dfly()
-{
-    ECHO_INFO "Removing package(s): $@"
-    pkg_delete $@
-    [ X"$?" != X"0" ] && ECHO_ERROR "Package removed failed, please check the terminal output."
-}
-

iRedMail/conf/dovecot

 export DOVECOT_USER='dovecot'
 export DOVECOT_GROUP='dovecot'
 
-export DOVECOT_BIN='/usr/sbin/dovecot'
-
 # Dovecot running directory, required by dovecot-2.x.
 export DOVECOT_BASE_DIR='/var/run/dovecot'
 
     export DOVECOT_SHARE_FOLDER_CONF='/etc/dovecot/dovecot-share-folder.conf'
     export DOVECOT_DELIVER='/usr/libexec/dovecot/deliver'
 
-elif [ X"${DISTRO}" == X'DFLY' ]; then
-    export DOVECOT_VERSION='2'
-    export DOVECOT_CONF="${DFLY_PKG_LOCALBASE}/etc/dovecot/dovecot.conf"
-    export DOVECOT_LDAP_CONF="${DFLY_PKG_LOCALBASE}/etc/dovecot/dovecot-ldap.conf"
-    export DOVECOT_MYSQL_CONF="${DFLY_PKG_LOCALBASE}/etc/dovecot/dovecot-mysql.conf"
-    export DOVECOT_PGSQL_CONF="${DFLY_PKG_LOCALBASE}/etc/dovecot/dovecot-pgsql.conf"
-    export DOVECOT_REALTIME_QUOTA_CONF="${DFLY_PKG_LOCALBASE}/etc/dovecot/dovecot-used-quota.conf"
-    export DOVECOT_SHARE_FOLDER_CONF="${DFLY_PKG_LOCALBASE}/etc/dovecot/dovecot-share-folder.conf"
-    export DOVECOT_DELIVER="${DFLY_PKG_LOCALBASE}/libexec/dovecot/deliver"
-
-    export DOVECOT_BIN="${DFLY_PKG_LOCALBASE}/sbin/dovecot"
-
-    export DOVECOT_SHIPPED_RC_SCRIPT="${DFLY_PKG_RC_SCRIPTS}/dovecot"
-
 elif [ X"${DISTRO}" == X"FREEBSD" ]; then
     export DOVECOT_VERSION='1.2'
     export DOVECOT_CONF='/usr/local/etc/dovecot.conf'
     export DOVECOT_REALTIME_QUOTA_CONF='/usr/local/etc/dovecot-used-quota.conf'
     export DOVECOT_SHARE_FOLDER_CONF='/usr/local/etc/dovecot-share-folder.conf'
     export DOVECOT_DELIVER='/usr/local/libexec/dovecot/deliver'
-
-    export DOVECOT_BIN='/usr/local/sbin/dovecot'
 fi
 
 # Override enabled plugins for dovecot-1.1.
 export DOVECOT_SOCKET_MUX='/var/spool/postfix/dovecot-auth'
 export DOVECOT_AUTH_SOCKET_PATH='/var/run/dovecot/auth-master'
 
+export DOVECOT_BIN='/usr/sbin/dovecot'
+export DOVECOT_SIEVEC='/usr/libexec/dovecot/sievec'
+
 # Dovecot plugin: Expire.
 # NOTE: dict process currently runs as root, so this file will be owned as root.
 export DOVECOT_EXPIRE_DICT_BDB='/var/lib/dovecot/expire/expire.db'

iRedMail/conf/global

 # Default virtual domain admin name without domain name (@example.com).
 export DOMAIN_ADMIN_NAME='postmaster'
 
+# Hostname.
+export HOSTNAME="$(hostname -f)"
+
 # ----------------------------------
 # You do *NOT* need to modify them.
 # ----------------------------------
 
     # Directory of RC scripts.
     export DIR_RC_SCRIPTS='/usr/local/etc/rc.d'
-
-elif [ X"${KERNEL_NAME}" == X"DragonFly" ]; then
-    export DISTRO='DFLY'
-    export DISTRO_VERSION="$(uname -r)"
-
-    # Directory of RC scripts.
-    export DIR_RC_SCRIPTS='/etc/rc.d'
-
-    export DFLY_PKG_LOCALBASE='/usr/pkg'
-    export DFLY_PKG_RC_SCRIPTS="${DFLY_PKG_LOCALBASE}/share/examples/rc.d"
 else
     # Not support *BSD and other distrobutions yet.
     echo "Error: Your OS is not supported yet."
     export GENTOO_CONF_PACKAGE_MASK='/etc/portage/package.mask'
     export GENTOO_CONF_PACKAGE_UNMASK='/etc/portage/package.unmask'
 
-elif [ X"${DISTRO}" == X'DFLY' ]; then
-    # System user: root.
-    export SYS_ROOT_USER='root'
-    export SYS_ROOT_GROUP='wheel'
-
-    # Package management.
-    export install_pkg='install_pkg_dfly'
-    export remove_pkg='remove_pkg_dfly'
-    export LIST_ALL_PKGS="pkg_info | awk '{print $1}'"
-    export LIST_FILES_IN_PKG='pkg_info -L'
-
-    # Service control.
-    export enable_service="enable_service_dfly"
-    export disable_service="disable_service_dfly"
-
-    # Syslog config: rsyslog.
-    export SYSLOG_CONF='/etc/syslog.conf'
-    export SYSLOG_POSTROTATE_CMD=''
-
-    # Crontab related.
-    export CRON_SPOOL_DIR='/var/cron/tabs'
-
-    export ETC_SYSCONFIG_DIR='/etc/defaults'
-
-    # IPFW rule file.
-    export IPTABLES_CONFIG="${ETC_SYSCONFIG_DIR}/ipfw.rules"
-
-    # Directory used to store SSL/TLS key/cert file.
-    export SSL_FILE_DIR="/etc/ssl"
-
 elif [ X"${DISTRO}" == X"FREEBSD" ]; then
     # System user: root.
     export SYS_ROOT_USER='root'
     exit 255
 fi
 
-# Hostname.
-if [ X"${DISTRO}" == X'DFLY' ]; then
-    export HOSTNAME="$(hostname)"
-else
-    export HOSTNAME="$(hostname -f)"
-fi
-
 # Use a seperated directory to store iRedMail certs/keys.
 export SSL_CERT_DIR="${SSL_FILE_DIR}/certs"
 export SSL_KEY_DIR="${SSL_FILE_DIR}/private"
 export MYSQL_BACKUP_DATABASES=''
 
 # Command use to fetch source tarballs.
-if [ X"${DISTRO}" == X"FREEBSD" -o X"${DISTRO}" == X'DFLY' ]; then
+if [ X"${DISTRO}" == X"FREEBSD" ]; then
     # -i: Turns off interactive prompting during multiple file transfers.
     # -V: Disable verbose and progress
     FETCH_CMD='ftp -iV'

iRedMail/conf/mysql

     export MYSQL_SOCKET='/var/run/mysqld/mysql.sock'
     export MYSQLD_INIT_SCRIPT="${DIR_RC_SCRIPTS}/mysql"
 
-elif [ X"${DISTRO}" == X'DFLY' ]; then
-    export MYSQL_MY_CNF='/etc/mysql/my.cnf'
-    export MYSQL_SOCKET='/var/run/mysqld/mysql.sock'
-    export MYSQLD_INIT_SCRIPT="${DIR_RC_SCRIPTS}/mysqld"
-
-    export MYSQL_SHIPPED_RC_SCRIPT="${DFLY_PKG_RC_SCRIPTS}/mysqld"
 elif [ X"${DISTRO}" == X"FREEBSD" ]; then
     export MYSQL_SOCKET='/tmp/mysql.sock'
     export MYSQL_MY_CNF="/var/db/mysql/my.cnf"

iRedMail/conf/openldap

     # Override default path
     export OPENLDAP_DATA_DIR='/var/lib/openldap-data'
 
-elif [ X"${DISTRO}" == X'DFLY' ]; then
-    # OpenLDAP version.
-    export OPENLDAP_VERSION='2.4'
-
-    # LDAP daemon user & group.
-    export LDAP_USER='slapd'
-    export LDAP_GROUP='ldap'
-
-    # Configuration files.
-    export OPENLDAP_CONF_ROOT="${DFLY_PKG_LOCALBASE}/etc/openldap"
-    export OPENLDAP_DB_CONFIG_SAMPLE="${DFLY_PKG_LOCALBASE}/share/examples/openldap/DB_CONFIG"
-
-
-    # Module related.
-    export OPENLDAP_MODULE_PATH="${DFLY_PKG_LOCALBASE}/lib/openldap"
-
-    # RC script.
-    export LDAP_INIT_SCRIPT="${DIR_RC_SCRIPTS}/slapd"
-
-    # Override default setting.
-    export OPENLDAP_DATA_DIR='/var/openldap'    # Do *NOT* end with '/'.
-    export OPENLDAP_PID_FILE='/var/openldap/run/slapd.pid'
-    export OPENLDAP_ARGS_FILE='/var/openldap/run/slapd.args'
-
-    export OPENLDAP_SHIPPED_RC_SCRIPT="${DFLY_PKG_RC_SCRIPTS}/slapd"
-
 elif [ X"${DISTRO}" == X"FREEBSD" ]; then
     # OpenLDAP version.
     export OPENLDAP_VERSION='2.4'

iRedMail/conf/policyd

 export POLICYD_BINDHOST='127.0.0.1' # Default value in policyd.conf.
 export POLICYD_BINDPORT='10031' # Default value in policyd.conf.
 
-# Database.
-export POLICYD_DB_NAME='policyd'
-export POLICYD_DB_USER='policyd'
 export POLICYD_DB_PASSWD="$(${RANDOM_STRING})"
 
 export POLICYD_USER='policyd'
     export POLICYD_THROTTLE_PIDFILE='/var/run/policyd_sender_throttle.pid'
     export POLICYD_INIT_SCRIPT="${DIR_RC_SCRIPTS}/policyd"
 
+    # Database.
+    export POLICYD_DB_NAME='policyd'
+    export POLICYD_DB_USER='policyd'
+
     # Path of policyd-clean
     export POLICYD_CLEANUP_BIN='/usr/sbin/policyd-cleanup'
 
     export POLICYD_THROTTLE_PIDFILE='/var/run/policyd_sender_throttle.pid'
     export POLICYD_INIT_SCRIPT="${DIR_RC_SCRIPTS}/policyd"
 
+    # Database.
+    export POLICYD_DB_NAME='policyd'
+    export POLICYD_DB_USER='policyd'
+
     # Path of policyd-clean
     export POLICYD_CLEANUP_BIN='/usr/lib/policyd/cleanup'
 
     export POLICYD_THROTTLE_PIDFILE='/var/run/policyd_sender_throttle.pid'
     export POLICYD_INIT_SCRIPT="${DIR_RC_SCRIPTS}/policyd"
 
+    # Database.
+    export POLICYD_DB_NAME='policyd'
+    export POLICYD_DB_USER='policyd'
+
     # Path of policyd-clean
     export POLICYD_CLEANUP_BIN='/usr/sbin/policyd_cleanup'
 
-elif [ X"${DISTRO}" == X'DFLY' ]; then
-    export PKG_POLICYD='policyd'
-    export POLICYD_CONF="${DFLY_PKG_LOCALBASE}/etc/policyd.conf"
-    export POLICYD_THROTTLE_CONF="${DFLY_PKG_LOCALBASE}/etc/policyd_sender_throttle.conf"
-    export POLICYD_THROTTLE_PIDFILE="/var/run/policyd_sender_throttle.pid"
-    export POLICYD_INIT_SCRIPT="${DIR_RC_SCRIPTS}/policyd"
-    export POLICYD_SHIPPED_RC_SCRIPT="${DFLY_PKG_RC_SCRIPTS}/policyd"
-
-    # Path of policyd-clean
-    export POLICYD_CLEANUP_BIN="${DFLY_PKG_LOCALBASE}/libexec/policyd/cleanup"
-
 elif [ X"${DISTRO}" == X"FREEBSD" ]; then
     export PKG_POLICYD='postfix-policyd-sf'
     export POLICYD_CONF='/usr/local/etc/postfix-policyd-sf.conf'
     export POLICYD_THROTTLE_CONF='/usr/local/etc/policyd_throttle.conf'
     export POLICYD_INIT_SCRIPT="${DIR_RC_SCRIPTS}/policyd"
 
+    # Database.
+    export POLICYD_DB_NAME='policyd'
+    export POLICYD_DB_USER='policyd'
+
     # Path of policyd-clean
     export POLICYD_CLEANUP_BIN='/usr/local/sbin/postfix-policyd-sf-cleanup'
 

iRedMail/conf/postfix

 export POSTFIX_DAEMON_GROUP='postfix'
 
 # Mail log files.
-if [ X"${DISTRO}" == X"RHEL" \
-    -o X"${DISTRO}" == X'DFLY' \
-    -o X"${DISTRO}" == X"FREEBSD" \
-    ]; then
-    # RHEL, CentOS, DragonFly, FreeBSD
+if [ X"${DISTRO}" == X"RHEL" -o X"${DISTRO}" == X"FREEBSD" ]; then
+    # RHEL, CentOS, FreeBSD
     export MAILLOG='/var/log/maillog'
     export MAILLOG_INFO=''
     export MAILLOG_ERROR=''
     export MAILLOG_WARN=''
 fi
 
-if [ X"${DISTRO}" == X'DFLY' ]; then
-    export POSTFIX_ROOTDIR="${DFLY_PKG_LOCALBASE}/etc/postfix"
-    export POSTFIX_SHIPPED_RC_SCRIPT="${DFLY_PKG_RC_SCRIPTS}/postfix"
-elif [ X"${DISTRO}" == X"FREEBSD" ]; then
+if [ X"${DISTRO}" == X"FREEBSD" ]; then
     export POSTFIX_ROOTDIR='/usr/local/etc/postfix'
 else
     export POSTFIX_ROOTDIR='/etc/postfix'

iRedMail/conf/postgresql

 export PGSQL_INIT_SCRIPT="${DIR_RC_SCRIPTS}/postgresql"
 [ X"${DISTRO}" == X"GENTOO" ] && \
     export PGSQL_INIT_SCRIPT="${DIR_RC_SCRIPTS}/postgresql-${PGSQL_VERSION}"
-
 export PGSQL_VMAIL_STRUCTURE_SAMPLE="${SAMPLE_DIR}/iredmail.pgsql"
 export PGSQL_INIT_SQL_SAMPLE="${CONF_DIR}/pgsql_init.pgsql"
 
     export PGSQL_CONF_POSTGRESQL="${PGSQL_CONF_DIR}/postgresql.conf"
     export PGSQL_CONF_PG_HBA="${PGSQL_CONF_DIR}/pg_hba.conf"
     export PGSQL_DATA_DIR="/var/lib/postgresql/${PGSQL_VERSION}/data"
-
-elif [ X"${DISTRO}" == X'DFLY' ]; then
-    export PGSQL_SYS_USER='pgsql'
-    export PGSQL_SYS_GROUP='pgsql'
-    
-    export PGSQL_CONF_DIR="${DFLY_PKG_LOCALBASE}/etc/postgresql/"
-    export PGSQL_CONF_POSTGRESQL="${PGSQL_CONF_DIR}/postgresql.conf"
-    export PGSQL_CONF_PG_HBA="${PGSQL_CONF_DIR}/pg_hba.conf"
-    export PGSQL_DATA_DIR="${DFLY_PKG_LOCALBASE}/pgsql"
 else
     export PGSQL_CONF_DIR="/etc/postgresql/${PGSQL_VERSION}/main"
     export PGSQL_CONF_POSTGRESQL="${PGSQL_CONF_DIR}/postgresql.conf"

iRedMail/conf/spamassassin

 # For SpamAssassin.
 
 export SA_CONF_DIR='/etc/mail/spamassassin'
+export SA_RULES_DIR='/usr/share/spamassassin'
+export SA_INIT_PRE="${SA_CONF_DIR}/init.pre"
+export SA_LOCAL_CF="${SA_CONF_DIR}/local.cf"
 export BIN_SA_UPDATE='sa-update'
 export BIN_SA_COMPILE='sa-compile'
 
-if [ X"${DISTRO}" == X'DFLY' ]; then
-    export SA_CONF_DIR="${DFLY_PKG_LOCALBASE}/etc/spamassassin"
-    export BIN_SA_UPDATE='/usr/local/bin/sa-update'
-    export BIN_SA_COMPILE='/usr/local/bin/sa-compile'
-elif [ X"${DISTRO}" == X"FREEBSD" ]; then
+if [ X"${DISTRO}" == X"FREEBSD" ]; then
     export SA_CONF_DIR='/usr/local/etc/mail/spamassassin'
+    export SA_RULES_DIR='/usr/local/share/spamassassin'
+    export SA_INIT_PRE="${SA_CONF_DIR}/init.pre"
+    export SA_LOCAL_CF="${SA_CONF_DIR}/local.cf"
     export BIN_SA_UPDATE='/usr/local/bin/sa-update'
     export BIN_SA_COMPILE='/usr/local/bin/sa-compile'
 fi
-
-export SA_INIT_PRE="${SA_CONF_DIR}/init.pre"
-export SA_LOCAL_CF="${SA_CONF_DIR}/local.cf"

iRedMail/dialog/config_via_dialog.sh

 # Initialize config file.
 echo '' > ${CONFIG_FILE}
 
-if [ X"${DISTRO}" == X"FREEBSD" -o X"${DISTRO}" == X'DFLY' ]; then
+if [ X"${DISTRO}" == X"FREEBSD" ]; then
     DIALOG='dialog'
     PASSWORDBOX='--inputbox'
 else

iRedMail/functions/amavisd.sh

 
 amavisd_config()
 {
-    # DragonFly: Copy rc script
-    if [ X"${DISTRO}" == X'DFLY' ]; then
-        enable_service_dfly amavisd
-        cp ${AMAVISD_SHIPPED_RC_SCRIPT} ${DIR_RC_SCRIPTS}
-    fi
-
     if [ X"${DISTRO}" == X"RHEL" \
         -o X"${DISTRO}" == X'SUSE' \
         -o X"${DISTRO}" == X'GENTOO' \
-        -o X"${DISTRO}" == X'FREEBSD' \
-        -o X"${DISTRO}" == X'DFLY' \
+        -o X"${DISTRO}" == X"FREEBSD" \
         ]; then
         check_status_before_run amavisd_config_rhel
     elif [ X"${DISTRO}" == X"DEBIAN" -o X"${DISTRO}" == X"UBUNTU" ]; then

iRedMail/functions/apache_php.sh

 {
     ECHO_INFO "Configure Apache web server and PHP."
 
-    # DragonFly: Copy rc script.
-    if [ X"${DISTRO}" == X'DFLY' ]; then
-        enable_service_dfly apache
-        cp ${HTTPD_SHIPPED_RC_SCRIPT} ${DIR_RC_SCRIPTS}
-    fi
-
     backup_file ${HTTPD_CONF} ${HTTPD_SSL_CONF}
 
     #########################################
         sed -i '/Order deny,allow/,/All from all/s#Order\ deny,allow#Order\ allow,deny#' ${HTTPD_CONF_DIR}/00_default_settings.conf
 
     elif [ X"${DISTRO}" == X'FREEBSD' ]; then
+        ECHO_DEBUG "Configure Apache."
+        # With Apache2.2 it now wants to load an Accept Filter.
+        echo 'accf_http_load="YES"' >> /boot/loader.conf
+
         # Change 'Deny from all' to 'Allow from all'.
         sed -i '.iredmailtmp' '/Each directory to/,/Note that from/s#Deny\ from\ all#Allow\ from\ all#' ${HTTPD_CONF}
         rm -f ${HTTPD_CONF}.iredmailtmp &>/dev/null
 EOF
     fi
 
-    if [ X"${DISTRO}" == X'FREEBSD' -o X"${DISTRO}" == X'DFLY' ]; then
-        # With Apache2.2 it now wants to load Accept Filter 'accf_http'.
-        echo 'accf_http_load="YES"' >> /boot/loader.conf
-    fi
-
     ##############
     # HTTP Port
     #

iRedMail/functions/clamav.sh

 {
     ECHO_INFO "Configure ClamAV (anti-virus toolkit)."
 
-    # DragonFly: Copy rc script
-    if [ X"${DISTRO}" == X'DFLY' ]; then
-        enable_service_dfly clamd
-        enable_service_dfly freshclamd
-        cp ${CLAMD_SHIPPED_RC_SCRIPT} ${FRESHCLAMD_SHIPPED_RC_SCRIPT} ${DIR_RC_SCRIPTS}
-    fi
-
     export CLAMD_LOCAL_SOCKET CLAMD_LISTEN_ADDR
     ECHO_DEBUG "Configure ClamAV: ${CLAMD_CONF}."
     perl -pi -e 's/^(TCPSocket.*)/#${1}/' ${CLAMD_CONF}
         chmod +x /etc/rc.d/init.d/freshclam
         eval ${enable_service} freshclam
         export ENABLED_SERVICES="${ENABLED_SERVICES} freshclam"
-    elif [ X"${DISTRO}" == X'DFLY' ]; then
-        # Comment out line 'Example' to enable clamd and freshclam.
-        perl -pi -e 's/^(Example.*)/#${1}/' ${CLAMD_CONF} ${FRESHCLAM_CONF}
     elif [ X"${DISTRO}" == X"FREEBSD" ]; then
         ECHO_DEBUG "Add clamav user to amavid group."
         pw usermod ${CLAMAV_USER} -G ${AMAVISD_SYS_GROUP}

iRedMail/functions/cleanup.sh

                 :
             fi
 
-            # FreeBSD and DragonFly BSD
-            if [ X"${DISTRO}" == X'FREEBSD' -o X"${DISTRO}" == X'DFLY' ]; then
+            # FreeBSD
+            if [ X"${DISTRO}" == X"FREEBSD" ]; then
                 # Load kernel module 'accf_http' before start.
                 kldload accf_http
 
     [ X"${KERNEL_NAME}" == X"Linux" ] && check_status_before_run cleanup_replace_iptables_rule
     [ X"${DISTRO}" == X"RHEL" ] && check_status_before_run cleanup_replace_mysql_config
     [ X"${DISTRO}" != X'GENTOO' ] && check_status_before_run cleanup_start_postfix_now
-    [ X"${DISTRO}" == X"FREEBSD" \
-        -o X"${DISTRO}" == X'DFLY' \
-        -o X"${DISTRO}" == X'GENTOO' \
-        ] && check_status_before_run cleanup_amavisd_preconfig
+    [ X"${DISTRO}" == X"FREEBSD" -o X"${DISTRO}" == X'GENTOO' ] && check_status_before_run cleanup_amavisd_preconfig
     check_status_before_run cleanup_backup_scripts
 
     # Start Postfix to deliver emails.

iRedMail/functions/dovecot1.sh

     chown -R ${DOVECOT_USER}:${DOVECOT_GROUP} ${dovecot_expire_dict_dir} && \
     chmod -R 0750 ${dovecot_expire_dict_dir}
 
+    if [ X"${DISTRO}" == X"RHEL" ]; then
+        ECHO_DEBUG "Setting cronjob for Dovecot plugin: Expire."
+        cat >> ${CRON_SPOOL_DIR}/root <<EOF
+${CONF_MSG}
+#1   5   *   *   *   ${DOVECOT_BIN} --exec-mail ext $(eval ${LIST_FILES_IN_PKG} dovecot | grep 'expire-tool$')
+EOF
+    elif [ X"${DISTRO}" == X"UBUNTU" -o X"${DISTRO}" == X"DEBIAN" ]; then
+        :
+    else
+        :
+    fi
+
     cat >> ${POSTFIX_FILE_MASTER_CF} <<EOF
 # Use dovecot deliver program as LDA.
 dovecot unix    -       n       n       -       -      pipe

iRedMail/functions/dovecot2.sh

 {
     ECHO_INFO "Configure Dovecot (pop3/imap server)."
 
-    # DragonFly: Copy rc script
-    if [ X"${DISTRO}" == X'DFLY' ]; then
-        enable_service_dfly dovecot
-        cp ${DOVECOT_SHIPPED_RC_SCRIPT} ${DIR_RC_SCRIPTS}
-    fi
-
     [ X"${ENABLE_DOVECOT}" == X"YES" ] && \
         backup_file ${DOVECOT_CONF} && \
         chmod 0664 ${DOVECOT_CONF} && \
     chown -R ${DOVECOT_USER}:${DOVECOT_GROUP} ${dovecot_expire_dict_dir} && \
     chmod -R 0750 ${dovecot_expire_dict_dir}
 
+    if [ X"${DISTRO}" == X"RHEL" ]; then
+        ECHO_DEBUG "Setting cronjob for Dovecot plugin: Expire."
+        cat >> ${CRON_SPOOL_DIR}/root <<EOF
+${CONF_MSG}
+#1   5   *   *   *   ${DOVECOT_BIN} --exec-mail ext $(eval ${LIST_FILES_IN_PKG} dovecot | grep 'expire-tool$')
+EOF
+    fi
+
     cat >> ${POSTFIX_FILE_MASTER_CF} <<EOF
 # Use dovecot deliver program as LDA.
 dovecot unix    -       n       n       -       -      pipe

iRedMail/functions/mysql.sh

     [ X"${DISTRO}" == X"GENTOO" ] && \
         /usr/bin/mysql_install_db &>/dev/null
 
-    # FreeBSD & DragonFly: set 'mysql_enable=YES' before start/stop mysql daemon.
-    [ X"${DISTRO}" == X"FREEBSD" ] && enable_service_freebsd mysql
-    if [ X"${DISTRO}" == X'DFLY' ]; then
-        enable_service_dfly mysqld
-        cp -f ${MYSQL_SHIPPED_RC_SCRIPT} ${MYSQLD_INIT_SCRIPT}
-    fi
+    # FreeBSD: Start mysql when system start up.
+    # Warning: We must have 'mysql_enable=YES' before start/stop mysql daemon.
+    [ X"${DISTRO}" == X"FREEBSD" ] && cat >> /etc/rc.conf <<EOF
+# Start mysql server.
+mysql_enable="YES"
+EOF
 
-    ${MYSQLD_INIT_SCRIPT} restart &>/dev/null
+    ${MYSQLD_INIT_SCRIPT} restart >/dev/null 2>&1
 
     ECHO_DEBUG -n "Sleep 5 seconds for MySQL daemon initialize:"
     sleep 5

iRedMail/functions/openldap.sh

 {
     ECHO_INFO "Configure OpenLDAP server."
 
-    # DragonFly: Copy rc script
-    if [ X"${DISTRO}" == X'DFLY' ]; then
-        enable_service_dfly slapd
-        cp ${OPENLDAP_SHIPPED_RC_SCRIPT} ${DIR_RC_SCRIPTS}
-    fi
-
     ECHO_DEBUG "Stoping OpenLDAP."
     ${LDAP_INIT_SCRIPT} stop &>/dev/null
 
     # Copy ${PROG_NAME}.schema.
     cp -f ${SAMPLE_DIR}/iredmail.schema ${OPENLDAP_SCHEMA_DIR}
 
-    # Copy amavisd LDAP schema.
+    # Copy amavisd schema.
     if [ X"${DISTRO}" == X"RHEL" ]; then
         if [ X"${DISTRO_VERSION}" == X"6" ]; then
             amavisd_schema_file="$( eval ${LIST_FILES_IN_PKG} amavisd-new | grep '/LDAP.schema$')"
             cp -f ${amavisd_schema_file} ${OPENLDAP_SCHEMA_DIR}/${AMAVISD_LDAP_SCHEMA_NAME}
         fi
-    elif [ X"${DISTRO}" == X'DFLY' -o X"${DISTRO}" == X'FREEBSD' ]; then
-        cp -f ${AMAVISD_SHIPPED_LDAP_SCHEMA} ${OPENLDAP_SCHEMA_DIR}/${AMAVISD_LDAP_SCHEMA_NAME}
+    elif [ X"${DISTRO}" == X"FREEBSD" ]; then
+        cp -f /usr/local/share/doc/amavisd-new/LDAP.schema ${OPENLDAP_SCHEMA_DIR}/${AMAVISD_LDAP_SCHEMA_NAME}
     fi
 
 

iRedMail/functions/optional_components.sh

         check_status_before_run iredapd_config
 
     # Fail2ban.
-    [ X"${USE_FAIL2BAN}" == X'YES' \
-        -a X"${DISTRO}" != X'FREEBSD' \
-        -a X"${DISTRO}" != X'DFLY' \
-        ] && \
+    [ X"${USE_FAIL2BAN}" == X"YES" -a X"${DISTRO}" != X"FREEBSD" ] && \
         check_status_before_run fail2ban_config
 
 }

iRedMail/functions/packages.sh

         gentoo_add_use_flags 'net-nds/openldap' 'crypt ipv6 ssl tcpd overlays perl sasl syslog'
         gentoo_add_use_flags 'dev-db/mysql' 'berkdb community perl ssl big-tables cluster'
         gentoo_add_use_flags 'dev-db/postgresql-server' 'nls pam doc perl python xml'
-    elif [ X"${DISTRO}" == X"DFLY" ]; then
-        ENABLED_SERVICES="syslogd ${ENABLED_SERVICES}"
     fi
 
     #################################################
             # MySQL server and client.
             ALL_PKGS="${ALL_PKGS} mysql"
             ENABLED_SERVICES="${ENABLED_SERVICES} mysql"
-        elif [ X"${DISTRO}" == X'DFLY' ]; then
-            ALL_PKGS="${ALL_PKGS} openldap-server openldap-client 'mysql-server-5.1.*' 'mysql-client-5.1.*'"
-            ENABLED_SERVICES="${ENABLED_SERVICES} slapd"
         fi
-
     elif [ X"${BACKEND}" == X"MYSQL" ]; then
         # MySQL server & client.
         if [ X"${DISTRO}" == X"RHEL" ]; then
         elif [ X"${DISTRO}" == X'GENTOO' ]; then
             ALL_PKGS="${ALL_PKGS} mysql mod_auth_mysql"
             ENABLED_SERVICES="${ENABLED_SERVICES} mysql"
-
-        elif [ X"${DISTRO}" == X'DFLY' ]; then
-            ALL_PKGS="${ALL_PKGS} 'mysql-server-5.1.*' 'mysql-client-5.1.*' p5-DBD-mysql p5-File-Temp ap22-auth-mysql"
-            ENABLED_SERVICES="${ENABLED_SERVICES} mysqld"
         fi
     elif [ X"${BACKEND}" == X"PGSQL" ]; then
         export USE_IREDAPD='NO'
         elif [ X"${DISTRO}" == X'GENTOO' ]; then
             ALL_PKGS="${ALL_PKGS} postgresql-server mod_auth_pgsql"
             ENABLED_SERVICES="${ENABLED_SERVICES} postgresql-${PGSQL_VERSION}"
-        elif [ X"${DISTRO}" == X'DFLY' ]; then
-            ALL_PKGS="${ALL_PKGS} postgresql91-server postgresql91-client postgresql91-dblink ap22-auth-pgsql"
-            # TODO
-            ENABLED_SERVICES="${ENABLED_SERVICES} postgresql-${PGSQL_VERSION}"
         fi
     fi
 
         gentoo_add_make_conf 'APACHE2_MPMS' 'prefork'
 
         gentoo_add_use_flags 'dev-lang/php' 'berkdb bzip2 cli crypt ctype fileinfo filter hash iconv ipv6 json nls phar posix readline session simplexml ssl tokenizer unicode xml zlib apache2 calendar -cdb cgi cjk curl curlwrappers doc flatfile fpm ftp gd gmp imap inifile intl kerberos ldap ldap-sasl mhash mysql mysqli mysqlnd odbc pdo postgres snmp soap sockets spell sqlite sqlite3 suhosin tidy truetype wddx xmlreader xmlrpc xmlwriter xpm xsl zip'
-    elif [ X"${DISTRO}" == X'DFLY' ]; then
-        ALL_PKGS="${ALL_PKGS} apache ap22-php53 php53-bz2 php53-imap php53-ldap php53-mbstring php53-mcrypt php53-mysql php53-mysqli php53-pgsql php53-zlib"
-        ENABLED_SERVICES="${ENABLED_SERVICES} apache"
     fi
 
     ###############
         ALL_PKGS="${ALL_PKGS} postfix"
         #gentoo_unmask_package 'mail-mta/ssmtp'
         gentoo_add_use_flags 'mail-mta/postfix' 'ipv6 pam ssl cdb dovecot-sasl hardened ldap ldap-bind mbox mysql postgres sasl'
-    elif [ X"${DISTRO}" == X'DFLY' ]; then
-        ALL_PKGS="${ALL_PKGS} postfix"
     fi
 
     ENABLED_SERVICES="${ENABLED_SERVICES} postfix"
     elif [ X"${DISTRO}" == X'GENTOO' ]; then
         ALL_PKGS="${ALL_PKGS} policyd"
         ENABLED_SERVICES="${ENABLED_SERVICES} policyd"
-    elif [ X"${DISTRO}" == X'DFLY' ]; then
-        ALL_PKGS="${ALL_PKGS} policyd"
-        # TODO
-        ENABLED_SERVICES="${ENABLED_SERVICES} policyd"
     fi
 
     # Dovecot.
         ALL_PKGS="${ALL_PKGS} dovecot"
         DISABLED_SERVICES="${DISABLED_SERVICES} saslauthd"
         gentoo_add_use_flags 'net-mail/dovecot' 'bzip2 ipv6 maildir pam ssl zlib caps doc kerberos ldap managesieve mbox mdbox mysql postgres sdbox sieve sqlite suid'
-    elif [ X"${DISTRO}" == X'DFLY' ]; then
-        ALL_PKGS="${ALL_PKGS} dovecot dovecot-pigeonhole"
     fi
 
     ENABLED_SERVICES="${ENABLED_SERVICES} dovecot"
         gentoo_add_use_flags 'mail-filter/amavisd-new' 'dkim ldap mysql postgres razor snmp spamassassin'
         gentoo_add_use_flags 'mail-filter/spamassassin' 'berkdb ipv6 ssl doc ldap mysql postgres sqlite'
         gentoo_add_use_flags 'app-antivirus/clamav' 'bzip2 iconv ipv6'
-
-    elif [ X"${DISTRO}" == X'DFLY' ]; then
-        ALL_PKGS="${ALL_PKGS} amavisd-new spamassassin re2c clamav"
-        
-        # Amavisd-new will only scan inside archives if the appropriate
-        # unarchiving tools are available. Install addition tools to
-        # scan the respective archive types.
-        ALL_PKGS="${ALL_PKGS} arc freeze lzop unarj unrar xbin zoo"
-
-        # TODO
-        ENABLED_SERVICES="${ENABLED_SERVICES} ${AMAVISD_RC_SCRIPT_NAME} clamd"
-        DISABLED_SERVICES="${DISABLED_SERVICES} spamd"
     fi
 
     # SPF verification.
 
     elif [ X"${DISTRO}" == X'GENTOO' ]; then
         ALL_PKGS="${ALL_PKGS} Mail-SPF"
-    elif [ X"${DISTRO}" == X'DFLY' ]; then
-        ALL_PKGS="${ALL_PKGS} p5-Mail-SPF"
     fi
 
     # phpPgAdmin
             ALL_PKGS="${ALL_PKGS} phppgadmin"
         elif [ X"${DISTRO}" == X'GENTOO' ]; then
             ALL_PKGS="${ALL_PKGS} phppgadmin"
-        elif [ X"${DISTRO}" == X'DFLY' ]; then
-            ALL_PKGS="${ALL_PKGS} phppgadmin"
         fi
     fi
 
         [ X"${DISTRO}" == X"RHEL" ] && ALL_PKGS="${ALL_PKGS} python-ldap${PKG_ARCH}"
         [ X"${DISTRO}" == X"SuSE" ] && ALL_PKGS="${ALL_PKGS} python-ldap"
         [ X"${DISTRO}" == X"DEBIAN" -o X"${DISTRO}" == X"UBUNTU" ] && ALL_PKGS="${ALL_PKGS} python-ldap"
-        # TODO
-        #[ X"${DISTRO}" == X'DFLY' ] && ALL_PKGS="${ALL_PKGS} "
         # Don't append 'iredapd' to ${ENABLED_SERVICES} since we don't have
         # RC script ready in early stage.
         #ENABLED_SERVICES="${ENABLED_SERVICES} iredapd"
         gentoo_add_use_flags 'dev-python/jinja' 'examples i18n vim-syntax'
         # Don't use python-3
         gentoo_mask_package '<=dev-lang/python-3.0'
-    elif [ X"${DISTRO}" == X'DFLY' ]; then
-        ALL_PKGS="${ALL_PKGS} py26-jinja2 py26-web.py py26-mysqldb ap22-py26-wsgi"
     fi
 
     #############
         elif [ X"${DISTRO}" == X'GENTOO' ]; then
             ALL_PKGS="${ALL_PKGS} awstats"
             gentoo_add_use_flags 'www-misc/awstats' 'ipv6 geoip'
-        elif [ X"${DISTRO}" == X'DFLY' ]; then
-            ALL_PKGS="${ALL_PKGS} awstats"
         fi
     fi
 
-    # Fail2ban
+    #### Fail2ban ####
     if [ X"${USE_FAIL2BAN}" == X"YES" ]; then
         if [ X"${DISTRO}" == X"RHEL" -o \
             X"${DISTRO}" == X"DEBIAN" -o \
         elif [ X"${DISTRO}" == X'GENTOO' ]; then
             ALL_PKGS="${ALL_PKGS} fail2ban"
             ENABLED_SERVICES="${ENABLED_SERVICES} fail2ban"
-        elif [ X"${DISTRO}" == X'DFLY' ]; then
-            # Fail2ban is not yet available in pkgsrc.
-            :
         fi
 
         if [ X"${DISTRO}" == X"RHEL" ]; then
         fi
     fi
 
-    # phpLDAPadmin
-    if [ X"${USE_PHPLDAPADMIN}" == X"YES" ]; then
-        # Debian 6 and Ubuntu 10.04/10.10 special.
-        if [ X"${DISTRO_CODENAME}" == X"lucid" -o X"${DISTRO_CODENAME}" == X"squeeze" ]; then
-            ALL_PKGS="${ALL_PKGS} phpldapadmin"
-        fi
-
-        # DragonFly BSD
-        if [ X"${DISTRO}" == X'DFLY' ]; then
-            ALL_PKGS="${ALL_PKGS} phpldapadmin"
-        fi
-    fi
-
-    # phpMyAdmin
-    if [ X"${USE_PHPMYADMIN}" == X"YES" ]; then
-        if [ X"${DISTRO_CODENAME}" == X"lucid" -o X"${DISTRO_CODENAME}" == X"squeeze" ]; then
-            ALL_PKGS="${ALL_PKGS} phpmyadmin"
-        fi
-
-        # DragonFly BSD
-        if [ X"${DISTRO}" == X'DFLY' ]; then
-            ALL_PKGS="${ALL_PKGS} phpmyadmin"
-        fi
-    fi
 
     ############################
     # Misc packages & services.
         ENABLED_SERVICES="${ENABLED_SERVICES} cron"
     elif [ X"${DISTRO}" == X'GENTOO' ]; then
         ALL_PKGS="${ALL_PKGS} dos2unix"
-    elif [ X"${DISTRO}" == X'DFLY' ]; then
-        ALL_PKGS="${ALL_PKGS} bzip2 patch unix2dos"
     fi
     #### End Misc packages & services ####
 
     # Disable Ubuntu firewall rules, we have iptables init script and rule file.
     [ X"${DISTRO}" == X"UBUNTU" ] && export DISABLED_SERVICES="${DISABLED_SERVICES} ufw"
 
+    # Debian 6 and Ubuntu 10.04/10.10 special.
+    # Install binary packages of phpldapadmin-1.2.x and phpMyAdmin-3.x.
+    if [ X"${DISTRO_CODENAME}" == X"lucid" -o X"${DISTRO_CODENAME}" == X"squeeze" ]; then
+        # Install phpLDAPadmin.
+        if [ X"${USE_PHPLDAPADMIN}" == X"YES" ]; then
+            ALL_PKGS="${ALL_PKGS} phpldapadmin"
+        fi
+
+        # Install phpMyAdmin-3.x.
+        if [ X"${USE_PHPMYADMIN}" == X"YES" ]; then
+            ALL_PKGS="${ALL_PKGS} phpmyadmin"
+        fi
+    fi
+    #
+    # ---- End Ubuntu 10.04 special. ----
+    #
+
     export ALL_PKGS ENABLED_SERVICES
 
     # Install all packages.

iRedMail/functions/policyd.sh

 policyd_user()
 {
     ECHO_DEBUG "Add user and group for policyd: ${POLICYD_USER}:${POLICYD_GROUP}."
-    if [ X"${DISTRO}" == X"FREEBSD" -o X"${DISTRO}" == X'DFLY' ]; then
+    if [ X"${DISTRO}" == X"FREEBSD" ]; then
         pw useradd -n ${POLICYD_USER} -s ${SHELL_NOLOGIN} -d ${POLICYD_USER_HOME} -m
-    elif [ X"${DISTRO}" == X"SUSE" -o ]; then
+    elif [ X"${DISTRO}" == X"SUSE" ]; then
         # Not need to add user/group.
         :
     else
 {
     ECHO_DEBUG "Initialize MySQL database of policyd."
 
-    # DragonFly: Copy sample rc script.
-    if [ X"${DISTRO}" == X'DFLY' ]; then
-        enable_service_dfly policyd
-        cp ${POLICYD_SHIPPED_RC_SCRIPT} ${POLICYD_INIT_SCRIPT}
-    fi
-
     # Get SQL structure template file.
     tmp_sql="/tmp/policyd_config_tmp.${RANDOM}${RANDOM}"
     if [ X"${DISTRO}" == X"RHEL" -o X"${DISTRO}" == X"SUSE" ]; then
 FLUSH PRIVILEGES;
 EOF
 
-    elif [ X"${DISTRO}" == X'DFLY' ]; then
-        # Shipped SQL template will create database: policyd.
-        cat > ${tmp_sql} <<EOF
-# Import SQL structure template.
-SOURCE /usr/pkg/share/examples/policyd/DATABASE.mysql;
-
-# Grant privileges.
-GRANT SELECT,INSERT,UPDATE,DELETE ON ${POLICYD_DB_NAME}.* TO "${POLICYD_DB_USER}"@localhost IDENTIFIED BY "${POLICYD_DB_PASSWD}";
-FLUSH PRIVILEGES;
-EOF
-
     elif [ X"${DISTRO}" == X"FREEBSD" ]; then
         # Template file will create database: policyd.
         cat > ${tmp_sql} <<EOF

iRedMail/functions/postfix.sh

 {
     ECHO_INFO "Configure Postfix."
 
-    # DragonFly: Copy rc script
-    if [ X"${DISTRO}" == X'DFLY' ]; then
-        enable_service_dfly postfix
-        cp ${POSTFIX_SHIPPED_RC_SCRIPT} ${DIR_RC_SCRIPTS}
-    fi
-
     backup_file ${POSTFIX_FILE_MAIN_CF} ${POSTFIX_FILE_MASTER_CF}
 
     ECHO_DEBUG "Enable chroot."
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.