diff options
Diffstat (limited to 'network/dovecot/dovecot.SlackBuild')
-rw-r--r-- | network/dovecot/dovecot.SlackBuild | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/network/dovecot/dovecot.SlackBuild b/network/dovecot/dovecot.SlackBuild index aa5395bc27915..99602e66822f4 100644 --- a/network/dovecot/dovecot.SlackBuild +++ b/network/dovecot/dovecot.SlackBuild @@ -39,6 +39,12 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} +# Build with MySQL database support by default +case $DATABASE in + pgsql) : ;; + *) DATABASE=mysql ;; +esac + bailout() { echo " You must have both dovecot and dovenull users and groups:" echo " # groupadd -g 202 dovecot" @@ -97,7 +103,7 @@ LDFLAGS="-ldl" \ --mandir=/usr/man \ --with-notify=inotify \ --without-pam \ - --with-mysql \ + --with-$DATABASE \ --with-sqlite \ --with-libcap \ --disable-static \ |