summaryrefslogtreecommitdiffstats
path: root/source/n/dovecot/dovecot.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'source/n/dovecot/dovecot.SlackBuild')
-rwxr-xr-xsource/n/dovecot/dovecot.SlackBuild6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/n/dovecot/dovecot.SlackBuild b/source/n/dovecot/dovecot.SlackBuild
index f05b11e1a..7993a195e 100755
--- a/source/n/dovecot/dovecot.SlackBuild
+++ b/source/n/dovecot/dovecot.SlackBuild
@@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=dovecot
VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -96,11 +96,13 @@ cd $PKGNAM-$VERSION || exit 1
if [ ! -L /lib${LIBDIRSUFFIX}/libpam.so.? ]; then # no PAM
# Ship config set up for authentication from /etc/passwd and /etc/shadow.
zcat $CWD/dovecot.default.shadow.auth.diff.gz | patch -p1 --verbose || exit 1
+ PAM_OPTIONS="--without-pam"
else # Yes, we have PAM:
mkdir -p $PKG/etc/pam.d
cp -a $CWD/dovecot.pam $PKG/etc/pam.d/dovecot.new
chown root:root $PKG/etc/pam.d/dovecot.new
chmod 644 $PKG/etc/pam.d/dovecot.new
+ PAM_OPTIONS="--with-pam"
fi
# Since this package installs working config files in /etc/dovecot, there isn't
@@ -126,7 +128,7 @@ LDFLAGS="-ldl" \
--docdir=/usr/doc/$PKGNAM-$VERSION \
--mandir=/usr/man \
--with-notify=inotify \
- --without-pam \
+ $PAM_OPTIONS \
--with-ldap=plugin \
--with-lucene \
--with-mysql \