diff options
author | Niels Horn <niels.horn@gmail.com> | 2011-10-02 11:05:18 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2011-10-02 11:05:18 -0500 |
commit | 475c91bd1a420666989141a583287df441dd1056 (patch) | |
tree | dcb3a43887cafec3ec518fc52e13707c5cec8dba /network/zarafa/zarafa.SlackBuild | |
parent | 6e2887c594f110b6ef958c1bf2b2d3b14a0936d9 (diff) | |
download | slackbuilds-475c91bd1a420666989141a583287df441dd1056.tar.gz |
network/zarafa: Updated for version 7.0.1.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'network/zarafa/zarafa.SlackBuild')
-rw-r--r-- | network/zarafa/zarafa.SlackBuild | 58 |
1 files changed, 38 insertions, 20 deletions
diff --git a/network/zarafa/zarafa.SlackBuild b/network/zarafa/zarafa.SlackBuild index 42169adaac..14db1e6105 100644 --- a/network/zarafa/zarafa.SlackBuild +++ b/network/zarafa/zarafa.SlackBuild @@ -3,11 +3,30 @@ # Slackware build script for zarafa: # an MS Exchange substitute -# Written by Niels Horn <niels.horn@gmail.com> -# revision date 2010/11/30 +# Copyright 2009-2011 Niels Horn, Rio de Janeiro, RJ, Brazil +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +# revision date 2011/09/16 PRGNAM=zarafa -VERSION=${VERSION:-6.40.3} +VERSION=${VERSION:-7.0.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -19,6 +38,8 @@ if [ -z "$ARCH" ]; then esac fi +SRCNAM=zcp + CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM @@ -43,23 +64,13 @@ set -e rm -rf $TMP/$PRGNAM-$VERSION $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +tar xvf $CWD/$SRCNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION chown -R root:root . chmod -R u+w,go+r-w,a-s . -# Apply patch to use "vmime-zarafa" instead of "vmime" -patch -p1 < $CWD/vmime-zarafa.patch - -# Apply patch to solve some problems with the ECTestTools in 6.40.2 & 6.40.3 -# it seems upstream forgot to adapt them to the new version... -patch -p1 < $CWD/testtools.patch - -SLKCFLAGS="$SLKCFLAGS -I/usr/include/vmime-zarafa" - -CFLAGS=$SLKCFLAGS \ -CXXFLAGS=$SLKCFLAGS \ -CPPFLAGS=$SLKCFLAGS \ +VMIME_LIBS="-lvmime-zarafa" \ +VMIME_CFLAGS="-I/usr/include/vmime-zarafa" ./configure \ --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ @@ -74,7 +85,14 @@ CPPFLAGS=$SLKCFLAGS \ --with-clucene-lib-prefix=/usr/lib${LIBDIRSUFFIX} \ --build=$ARCH-slackware-linux -make +# Use our CFLAGS +for mf in $(find . -name Makefile); do + sed -i "/^C[X]*[X]*FLAGS/s/=/+=/" $mf +done + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ + make make install DESTDIR=$PKG find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ @@ -88,9 +106,9 @@ for cfg in $PKG/etc/$PRGNAM/*.cfg; do mv $cfg $cfg.new done -# The sample config of zarafa-indexer ends up in the wrong directory somehow... -mv $PKG/usr/share/doc/zarafa-indexer/example-config/* $PKG/usr/doc/$PRGNAM-$VERSION/example-config/ -rm -rf $PKG/usr/share/doc +# The doc of zarafa-gateway ends up in the wrong directory somehow... +mv $PKG/usr/doc/zarafa-gateway/* $PKG/usr/doc/$PRGNAM-$VERSION/ +rmdir $PKG/usr/doc/zarafa-gateway # Remove sysconfig files. We don't use them and they only set the collation, # which is taken care of in the rc.* scripts as well |