diff options
Diffstat (limited to 'network')
-rw-r--r-- | network/dovecot/README | 6 | ||||
-rw-r--r-- | network/dovecot/dovecot.SlackBuild | 8 |
2 files changed, 12 insertions, 2 deletions
diff --git a/network/dovecot/README b/network/dovecot/README index 16e081ed5460..3373c69d34fd 100644 --- a/network/dovecot/README +++ b/network/dovecot/README @@ -9,4 +9,8 @@ installed - openssl-solibs is not enough in itself to meet this requirement. This script doesn't add dovecot users and groups, instead it offers sane defaults that won't conflict with system users and groups, and other scripts from the SBo. -See the documentation in /usr/doc/dovecot-2.2.19/ to get started. +By default, MySQL database is selected, switch to PostgreSQL with: + + DATABASE=pgsql ./dovecot.SlackBuild + +See the documentation in /usr/doc/dovecot-*/ to get started. diff --git a/network/dovecot/dovecot.SlackBuild b/network/dovecot/dovecot.SlackBuild index aa5395bc2791..99602e66822f 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 \ |