diff options
author | Mario Preksavec <mario@slackware.hr> | 2016-07-24 19:10:49 +0200 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-07-30 08:28:21 +0700 |
commit | d93d36c4b10938ec28b219b79027b1cfef947765 (patch) | |
tree | a2c6ec90133b4347b7ed3548542bb2ccb536be01 /network/dovecot/dovecot.SlackBuild | |
parent | 6c7a72a0702e7733c263506b1f4b8a3b462378d5 (diff) | |
download | slackbuilds-d93d36c4b10938ec28b219b79027b1cfef947765.tar.gz |
network/dovecot: Added PostgreSQL support.
Signed-off-by: Mario Preksavec <mario@slackware.hr>
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 aa5395bc27..99602e6682 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 \ |