summaryrefslogtreecommitdiff
path: root/network/dovecot-pigeonhole/dovecot-pigeonhole.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/dovecot-pigeonhole/dovecot-pigeonhole.SlackBuild')
-rw-r--r--network/dovecot-pigeonhole/dovecot-pigeonhole.SlackBuild15
1 files changed, 10 insertions, 5 deletions
diff --git a/network/dovecot-pigeonhole/dovecot-pigeonhole.SlackBuild b/network/dovecot-pigeonhole/dovecot-pigeonhole.SlackBuild
index 707b0087ae..548beb4538 100644
--- a/network/dovecot-pigeonhole/dovecot-pigeonhole.SlackBuild
+++ b/network/dovecot-pigeonhole/dovecot-pigeonhole.SlackBuild
@@ -3,7 +3,7 @@
# Slackware Package Build Script for pigeonhole
# Home Page: http://pigeonhole.dovecot.org/
-# Copyright (c) 2010-2011, Nishant Limbachia, Hoffman Estates, IL, USA
+# Copyright (c) 2010-2012, Nishant Limbachia, Hoffman Estates, IL, USA
# <nishant _AT_ mnspace _DOT_ net>
# All rights reserved.
@@ -25,13 +25,14 @@
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-set -e
PRGNAM="dovecot-pigeonhole"
-VERSION=${VERSION:-0.2.5}
+VERSION=${VERSION:-0.2.6}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+SRCNAM="dovecot-2.0-pigeonhole"
+
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
@@ -59,14 +60,13 @@ else
LIBDIRSUFFIX=""
fi
-SRCNAM="dovecot-2.0-pigeonhole"
+set -e
rm -rf $TMP/$SRCNAM-$VERSION $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
cd $TMP/$SRCNAM-$VERSION
-
chown -R root.root .
find . \
\( -perm 664 -o -perm 666 -o -perm 600 -o -perm 440 -o -perm 444 -o -perm 400 \) \
@@ -75,6 +75,11 @@ find . \
\( -perm 777 -o -perm 755 -o -perm 711 -o -perm 700 -o -perm 555 -o -perm 511 -o -perm 500 \) \
-exec chmod 755 {} \;
+# Patch to build with dovecot versions less than 2.0.18.
+if [[ $(dovecot --version) < '2.0.18' ]]; then
+ patch -p1 -R < $CWD/dovecot-2.0.12.patch
+fi
+
CFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \