aboutsummaryrefslogtreecommitdiff
path: root/office/SOGo/SOGo.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'office/SOGo/SOGo.SlackBuild')
-rw-r--r--office/SOGo/SOGo.SlackBuild34
1 files changed, 17 insertions, 17 deletions
diff --git a/office/SOGo/SOGo.SlackBuild b/office/SOGo/SOGo.SlackBuild
index 4866cfa171..e6ec382fbe 100644
--- a/office/SOGo/SOGo.SlackBuild
+++ b/office/SOGo/SOGo.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for SOGo
-# Copyright 2018-2020 Chris Walker Kempner, TX
+# Copyright 2018-2022 Chris Walker Kempner, TX
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,16 +22,10 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-# 20220218 bkw: Modified by SlackBuilds.org:
-# - get the docs out of DOWNLOAD in the info file. they were getting
-# downloaded (or failing to, due to user-agent checking on the
-# server), but only installed if the user set an environment
-# variable.
-
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=SOGo
-VERSION=${VERSION:-5.0.1}
+VERSION=${VERSION:-5.12.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -98,9 +92,24 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+
+# For some strange reason SOGo is trying to link agains libSOGo.so
+# causing the build to fail; remove the -lSOGo flag from the link
+# options
+patch -p1 < $CWD/patches/SOGo-libSOGo.patch
+
+# User wants ActiveSync; patch the config file to build ActiveSync
+#
+# WARNING: While you can enable it and it will run, you are supposed
+# to have a license if you do so.
+ACTIVESYNC=${ACTIVESYNC:-no}
+if [ "$ACTIVESYNC" != "no" ]; then
+ patch -p1 < $CWD/patches/SOGo-ActiveSync.patch
+fi
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
+ --enable-mfa \
--enable-strip
make
@@ -148,15 +157,6 @@ cp -a \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-# 20220218 bkw: install PDF docs, if available.
-for i in \
- SOGoInstallationGuide \
- SOGoMozillaThunderbirdConfigurationGuide \
- SOGoOutlookConnectorConfigurationGuide
-do
- [ -e $CWD/$i.pdf ] && cat $CWD/$i.pdf > $PKG/usr/doc/$PRGNAM-$VERSION/$i.pdf
-done
-
# Install backup script
cat Scripts/sogo-backup.sh > $PKG/usr/doc/$PRGNAM-$VERSION/sogo-backup.sh
chmod +x $PKG/usr/doc/$PRGNAM-$VERSION/sogo-backup.sh