Subject: [bug#55589] [PATCH] gnu: rspamd: Update to 3.2

From: ykonai <[email-masked]>
Date: Mon, 23 May 2022 01:43:01 +0200

* gnu/packages/mail.scm (rspamd): Update to 3.2

I also added a new build option, that changes the LOCAL_CONFDIR variable to
/etc/rspamd. This allows for rspamd configuration via the /etc/rspamd/local.d
and override.d directories, which by default were located in the PREFIX which
is in /gnu/store.
---
 gnu/packages/mail.scm | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm
index c4ccc53e84..1343042034 100644
--- a/gnu/packages/mail.scm
+++ b/gnu/packages/mail.scm
@@ -4363,7 +4363,7 @@ (define-public python-imaplib2
 (define-public rspamd
   (package
     (name "rspamd")
-    (version "2.7")
+    (version "3.2")
     (source
      (origin
        (method git-fetch)
@@ -4371,11 +4371,12 @@ (define-public rspamd
              (url "https://github.com/rspamd/rspamd")
              (commit version)))
        (sha256
-        (base32 "0fw6nbfc3xqapzq5nydakwgpw6cz6vb3qby2aqlr06lzf87d3hic"))
+        (base32 "122d5m1nfxxz93bhsk8lm4dazvdknzphb0a1188m7bsa4iynbfv2"))
        (file-name (git-file-name name version))))
     (build-system cmake-build-system)
     (arguments
-     '(#:configure-flags '("-DENABLE_LUAJIT=ON")))
+     '(#:configure-flags '("-DENABLE_LUAJIT=ON"
+                           "-DLOCAL_CONFDIR=/etc/rspamd")))
     (inputs
      (list openssl
            glib
@@ -4384,7 +4385,7 @@ (define-public rspamd
            sqlite
            file
            icu4c
-           pcre
+           pcre2
            zlib
            perl
            libsodium))

base-commit: 4ba4cb1d49d70a00f7236f60bd92e5eccef573dd
-- 
2.36.1