diff options
author | Nishant Limbachia <nishant@mnspace.net> | 2012-05-01 11:59:42 -0400 |
---|---|---|
committer | Erik Hanson <erik@slackbuilds.org> | 2012-05-07 12:18:05 -0500 |
commit | 024aa989fd7cc17c8e67d3a5a02bc3f0db55ca6d (patch) | |
tree | 3c48c02cfd041d6582d5faee58e603c4633c6420 /network/dovecot-pigeonhole/dovecot-pigeonhole.SlackBuild | |
parent | 4976c412898cbbc696321edd6c6ac6320e00d472 (diff) |
network/dovecot-pigeonhole: Updated for version 0.2.6.
This version of dovecot-pigeohole would not build
with the version of dovecot we host (2.0.12) so I
added a patch that gets included if dovecot is
less than 2.0.18.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'network/dovecot-pigeonhole/dovecot-pigeonhole.SlackBuild')
-rw-r--r-- | network/dovecot-pigeonhole/dovecot-pigeonhole.SlackBuild | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/network/dovecot-pigeonhole/dovecot-pigeonhole.SlackBuild b/network/dovecot-pigeonhole/dovecot-pigeonhole.SlackBuild index 707b0087aea5c..548beb4538d79 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 \ |