aboutsummaryrefslogtreecommitdiff
path: root/network/dovecot/dovecot.SlackBuild
diff options
context:
space:
mode:
authorMario Preksavec <mario@slackware.hr>2016-07-24 19:10:49 +0200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-07-30 08:28:21 +0700
commitd93d36c4b10938ec28b219b79027b1cfef947765 (patch)
treea2c6ec90133b4347b7ed3548542bb2ccb536be01 /network/dovecot/dovecot.SlackBuild
parent6c7a72a0702e7733c263506b1f4b8a3b462378d5 (diff)
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.SlackBuild8
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 \