summaryrefslogtreecommitdiffstats
path: root/network/rspamd/rspamd.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/rspamd/rspamd.SlackBuild')
-rw-r--r--network/rspamd/rspamd.SlackBuild11
1 files changed, 6 insertions, 5 deletions
diff --git a/network/rspamd/rspamd.SlackBuild b/network/rspamd/rspamd.SlackBuild
index 1821c2026b..2f477747be 100644
--- a/network/rspamd/rspamd.SlackBuild
+++ b/network/rspamd/rspamd.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for Rspamd
-# Copyright 2018, 2019 Ebben Aries <e@dscp.org>
+# Copyright 2018-2020 Ebben Aries <e@dscp.org>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=rspamd
-VERSION=${VERSION:-1.9.4}
+VERSION=${VERSION:-2.5}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -80,6 +80,10 @@ 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 {} \;
+# Patch to use correct linker
+# https://github.com/rspamd/rspamd/issues/3168#issuecomment-583849873
+patch -p0 < $CWD/Toolset.cmake.patch
+
mkdir -p build
cd build
cmake \
@@ -104,9 +108,6 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
-# remove empty directory tree
-rmdir -p --ignore-fail-on-non-empty $PKG/usr/share/examples/rspamd
-
mkdir -p $PKG/var/log/rspamd
chown rspamd:rspamd $PKG/var/log/rspamd
chmod 0755 $PKG/var/log/rspamd