From patchwork Mon Oct 19 09:58:08 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Alexandru-Sergiu Marton X-Patchwork-Id: 24686 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 149B027BBEE; Mon, 19 Oct 2020 07:59:26 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 1C68227BBED for ; Mon, 19 Oct 2020 07:59:25 +0100 (BST) Received: from localhost ([::1]:43746 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kUP8e-0003xZ-7Q for patchwork@mira.cbaines.net; Mon, 19 Oct 2020 02:59:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44530) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kUP8I-0003x7-3y for guix-patches@gnu.org; Mon, 19 Oct 2020 02:59:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56419) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kUP8H-0005hm-QR for guix-patches@gnu.org; Mon, 19 Oct 2020 02:59:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kUP8H-0000zV-Oc for guix-patches@gnu.org; Mon, 19 Oct 2020 02:59:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#43974] [PATCH v2] gnu: Add rspamd. Resent-From: Alexandru-Sergiu Marton Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 19 Oct 2020 06:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43974 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 43974@debbugs.gnu.org Cc: Alexandru-Sergiu Marton Received: via spool by 43974-submit@debbugs.gnu.org id=B43974.16030907283785 (code B ref 43974); Mon, 19 Oct 2020 06:59:01 +0000 Received: (at 43974) by debbugs.gnu.org; 19 Oct 2020 06:58:48 +0000 Received: from localhost ([127.0.0.1]:39732 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kUP7z-0000yt-HN for submit@debbugs.gnu.org; Mon, 19 Oct 2020 02:58:48 -0400 Received: from mout02.posteo.de ([185.67.36.66]:52025) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kUP7w-0000ye-IM for 43974@debbugs.gnu.org; Mon, 19 Oct 2020 02:58:42 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 14EE42400FE for <43974@debbugs.gnu.org>; Mon, 19 Oct 2020 08:58:33 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.ro; s=2017; t=1603090714; bh=WM/N9O3S76JlSNSBby50fFXVwcLr58TF6mZj0WlSkyo=; h=From:To:Cc:Subject:Date:From; b=eM96Gnz3g/YLonpkg4h8+WFcFdqYYaNQGm5jhhg4dkUbeUEhtIgvEryUFwlYjtltZ jga69T8GJ8lt57OI476Dk4hSZv2ks4D+4GA0athF2NZjHzjfEXedBBsEem9qPtY2jv AgTfeqEsSNguroimnFGsMR+pZiLOipgKee2jOIV4Vh9E4Zt2Wve2yBZ4+DXLX4WtpT kDlT99ie3lMuKTxv+86h5W0S9hq2mgo8yT3pXX+1aXpdzAXVGo5qi4vAvivmR7n2O8 iHgTN13RpokNxydJVzqcO6DqreXFal/4xOlf5OteMAN6CC4efcjosdVS0Pq3fcCZ8m QGClhuLSUMSAA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4CF6zY37Cqz9ryT; Mon, 19 Oct 2020 08:58:33 +0200 (CEST) From: Alexandru-Sergiu Marton Date: Mon, 19 Oct 2020 12:58:08 +0300 Message-Id: <20201019095808.8401-1-brown121407@posteo.ro> X-Mailer: git-send-email 2.28.0 In-Reply-To: <87zh4jjixy.fsf@gnu.org> References: <87zh4jjixy.fsf@gnu.org> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * 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 ;;; Copyright © 2020 Alexey Abramov ;;; Copyright © 2020 Tim Gesthuizen +;;; Copyright © 2020 Alexandru-Sergiu Marton ;;; ;;; 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)))