GNU bug report logs -
#43974
[PATCH] gnu: Add rspamd.
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 43974 in the body.
You can then email your comments to 43974 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#43974
; Package
guix-patches
.
(Tue, 13 Oct 2020 07:58:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Alexandru-Sergiu Marton <brown121407 <at> posteo.ro>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Tue, 13 Oct 2020 07:58:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/mail.scm (rspamd): New variable.
---
This patch adds a recipe for the "rspamd" spam filter. In an ideal world we
would have a service definition for this as well, but I don't know how to
write those yet, so I'd appreciate any help from the community. Rspamd already
has service definitions for systemd, we could try to translate those to the
Guix APIs.
gnu/packages/mail.scm | 43 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm
index 2bab7b4645..337ef97a7f 100644
--- a/gnu/packages/mail.scm
+++ b/gnu/packages/mail.scm
@@ -35,6 +35,7 @@
;;; Copyright © 2020 Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
;;; Copyright © 2020 Michael Rohleder <mike <at> rohleder.de>
;;; Copyright © 2020 Alexey Abramov <levenson <at> mmer.org>
+;;; Copyright © 2020 Alexandru-Sergiu Marton <brown121407 <at> posteo.ro>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -75,6 +76,7 @@
#:use-module (gnu packages documentation)
#:use-module (gnu packages emacs)
#:use-module (gnu packages enchant)
+ #:use-module (gnu packages file)
#:use-module (gnu packages gdb)
#:use-module (gnu packages gettext)
#:use-module (gnu packages ghostscript)
@@ -115,6 +117,7 @@
#:use-module (gnu packages python-crypto)
#:use-module (gnu packages python-web)
#:use-module (gnu packages python-xyz)
+ #:use-module (gnu packages ragel)
#:use-module (gnu packages rdf)
#:use-module (gnu packages readline)
#:use-module (gnu packages ruby)
@@ -141,6 +144,7 @@
#:use-module (guix git-download)
#:use-module (guix svn-download)
#:use-module (guix utils)
+ #:use-module (guix build-system cmake)
#:use-module (guix build-system gnu)
#:use-module (guix build-system guile)
#:use-module (guix build-system perl)
@@ -3902,3 +3906,42 @@ DKIM and ARC sign messages and output the corresponding signature headers.")
based on asyncio.")
(license (list license:asl2.0
license:lgpl3)))) ; only for setup_helpers.py
+
+(define-public rspamd
+ (package
+ (name "rspamd")
+ (version "2.6")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/rspamd/rspamd")
+ (commit version)))
+ (sha256
+ (base32 "0vwa7k2s2bkfb8w78z5izkd6ywjbzqysb0grls898y549hm8ii70"))
+ (file-name (git-file-name name version))))
+ (build-system cmake-build-system)
+ (arguments
+ '(#:configure-flags '("-DENABLE_LUAJIT=ON")))
+ (inputs
+ `(("openssl" ,openssl)
+ ("glib" ,glib)
+ ("ragel" ,ragel)
+ ("luajit" ,luajit)
+ ("sqlite" ,sqlite)
+ ("file" ,file)
+ ("icu4c" ,icu4c)
+ ("pcre" ,pcre)
+ ("zlib" ,zlib)
+ ("perl" ,perl)
+ ("libsodium" ,libsodium)))
+ (native-inputs
+ `(("pkg-config" ,pkg-config)))
+ (synopsis "Fast, free and open-source spam filtering system")
+ (description "Rspamd is an advanced spam filtering system that
+allows evaluation of messages by a number of rules including regular
+expressions, statistical analysis and custom services such as URL
+black lists. Each message is analysed by Rspamd and given a spam
+score.")
+ (home-page "https://www.rspamd.com/")
+ (license license:asl2.0)))
--
2.28.0
Information forwarded
to
guix-patches <at> gnu.org
:
bug#43974
; Package
guix-patches
.
(Sun, 18 Oct 2020 21:59:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 43974 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Alexandru-Sergiu Marton <brown121407 <at> posteo.ro> writes:
> * gnu/packages/mail.scm (rspamd): New variable.
This patch did not apply for me, can you rebase it on current 'master'?
> This patch adds a recipe for the "rspamd" spam filter. In an ideal world we
> would have a service definition for this as well, but I don't know how to
> write those yet, so I'd appreciate any help from the community. Rspamd already
> has service definitions for systemd, we could try to translate those to the
> Guix APIs.
Cool! Feel free to drop by the #guix IRC channel for live help with
writing service definitions. It may look intimidating with types and
all, but is actually not that difficult. :-)
[...]
> + (synopsis "Fast, free and open-source spam filtering system")
s/free and open-source// (everything is free in Guix by definition)
Can you send an updated patch? Thanks!
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
guix-patches <at> gnu.org
:
bug#43974
; Package
guix-patches
.
(Mon, 19 Oct 2020 06:59:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 43974 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/mail.scm (rspamd): New variable.
---
This second version of the patch makes the patch apply on current master and
corrects the synopsis.
gnu/packages/mail.scm | 43 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm
index 5056098806..20d2fa440c 100644
--- a/gnu/packages/mail.scm
+++ b/gnu/packages/mail.scm
@@ -36,6 +36,7 @@
;;; Copyright © 2020 Michael Rohleder <mike <at> rohleder.de>
;;; Copyright © 2020 Alexey Abramov <levenson <at> mmer.org>
;;; Copyright © 2020 Tim Gesthuizen <tim.gesthuizen <at> yahoo.de>
+;;; Copyright © 2020 Alexandru-Sergiu Marton <brown121407 <at> posteo.ro>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -76,6 +77,7 @@
#:use-module (gnu packages documentation)
#:use-module (gnu packages emacs)
#:use-module (gnu packages enchant)
+ #:use-module (gnu packages file)
#:use-module (gnu packages gdb)
#:use-module (gnu packages gettext)
#:use-module (gnu packages ghostscript)
@@ -116,6 +118,7 @@
#:use-module (gnu packages python-crypto)
#:use-module (gnu packages python-web)
#:use-module (gnu packages python-xyz)
+ #:use-module (gnu packages ragel)
#:use-module (gnu packages rdf)
#:use-module (gnu packages readline)
#:use-module (gnu packages ruby)
@@ -142,6 +145,7 @@
#:use-module (guix git-download)
#:use-module (guix svn-download)
#:use-module (guix utils)
+ #:use-module (guix build-system cmake)
#:use-module (guix build-system glib-or-gtk)
#:use-module (guix build-system gnu)
#:use-module (guix build-system guile)
@@ -3918,3 +3922,42 @@ DKIM and ARC sign messages and output the corresponding signature headers.")
based on asyncio.")
(license (list license:asl2.0
license:lgpl3)))) ; only for setup_helpers.py
+
+(define-public rspamd
+ (package
+ (name "rspamd")
+ (version "2.6")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/rspamd/rspamd")
+ (commit version)))
+ (sha256
+ (base32 "0vwa7k2s2bkfb8w78z5izkd6ywjbzqysb0grls898y549hm8ii70"))
+ (file-name (git-file-name name version))))
+ (build-system cmake-build-system)
+ (arguments
+ '(#:configure-flags '("-DENABLE_LUAJIT=ON")))
+ (inputs
+ `(("openssl" ,openssl)
+ ("glib" ,glib)
+ ("ragel" ,ragel)
+ ("luajit" ,luajit)
+ ("sqlite" ,sqlite)
+ ("file" ,file)
+ ("icu4c" ,icu4c)
+ ("pcre" ,pcre)
+ ("zlib" ,zlib)
+ ("perl" ,perl)
+ ("libsodium" ,libsodium)))
+ (native-inputs
+ `(("pkg-config" ,pkg-config)))
+ (synopsis "Spam filtering system")
+ (description "Rspamd is an advanced spam filtering system that
+allows evaluation of messages by a number of rules including regular
+expressions, statistical analysis and custom services such as URL
+black lists. Each message is analysed by Rspamd and given a spam
+score.")
+ (home-page "https://www.rspamd.com/")
+ (license license:asl2.0)))
--
2.28.0
Reply sent
to
Ludovic Courtès <ludo <at> gnu.org>
:
You have taken responsibility.
(Wed, 21 Oct 2020 17:20:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Alexandru-Sergiu Marton <brown121407 <at> posteo.ro>
:
bug acknowledged by developer.
(Wed, 21 Oct 2020 17:20:02 GMT)
Full text and
rfc822 format available.
Message #16 received at 43974-done <at> debbugs.gnu.org (full text, mbox):
Hi,
Alexandru-Sergiu Marton <brown121407 <at> posteo.ro> skribis:
> * gnu/packages/mail.scm (rspamd): New variable.
> ---
> This second version of the patch makes the patch apply on current master and
> corrects the synopsis.
Applied, thanks!
Ludo’.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 19 Nov 2020 12:24:07 GMT)
Full text and
rfc822 format available.
This bug report was last modified 4 years and 217 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.