rspamd: 1.9.4 -> 2.2

This commit is contained in:
Franz Pletz 2020-02-01 13:55:57 +01:00
parent 80c99eedef
commit e8b8e8c615
No known key found for this signature in database
GPG key ID: 846FDED7792617B4
2 changed files with 15 additions and 16 deletions

View file

@ -555,6 +555,15 @@ auth required pam_succeed_if.so uid >= 1000 quiet
needed.
</para>
</listitem>
<listitem>
<para>
Rspamd was updated to version 2.2. Read
<link xlink:href="https://rspamd.com/doc/migration.html#migration-to-rspamd-20">
the upstream migration notes</link> carefully. Please be especially
aware that some modules were removed and the default Bayes backend is
now Redis.
</para>
</listitem>
</itemizedlist>
</section>

View file

@ -1,8 +1,6 @@
{ stdenv, lib, fetchFromGitHub, cmake, perl
, file, glib, libevent, luajit, openssl, pcre, pkgconfig, sqlite, ragel, icu
, hyperscan, libfann, gd, jemalloc, openblas, lua
, withFann ? true
, withGd ? false
, glib, luajit, openssl, pcre, pkgconfig, sqlite, ragel, icu
, hyperscan, jemalloc, openblas, lua, libsodium
, withBlas ? true
, withHyperscan ? stdenv.isx86_64
, withLuaJIT ? stdenv.isx86_64
@ -10,24 +8,19 @@
assert withHyperscan -> stdenv.isx86_64;
let libmagic = file; # libmagic provided by file package ATM
in
stdenv.mkDerivation rec {
pname = "rspamd";
version = "1.9.4";
version = "2.2";
src = fetchFromGitHub {
owner = "rspamd";
repo = "rspamd";
rev = version;
sha256 = "0b8n7xazmzjb6jf8sk0jg0x861nf1ayzxsvjaymw1qjgpn371r51";
sha256 = "0rqiz4xm20w80q8p4grcgqcrg14yiddsay0aw00f0v82h4apw7k8";
};
nativeBuildInputs = [ cmake pkgconfig perl ];
buildInputs = [ glib libevent libmagic openssl pcre sqlite ragel icu jemalloc ]
++ lib.optional withFann libfann
++ lib.optional withGd gd
buildInputs = [ glib openssl pcre sqlite ragel icu jemalloc libsodium ]
++ lib.optional withHyperscan hyperscan
++ lib.optional withBlas openblas
++ lib.optional withLuaJIT luajit ++ lib.optional (!withLuaJIT) lua;
@ -39,10 +32,7 @@ stdenv.mkDerivation rec {
"-DLOGDIR=/var/log/rspamd"
"-DLOCAL_CONFDIR=/etc/rspamd"
"-DENABLE_JEMALLOC=ON"
] ++ lib.optional withFann "-DENABLE_FANN=ON"
++ lib.optional withHyperscan "-DENABLE_HYPERSCAN=ON"
++ lib.optional withGd "-DENABLE_GD=ON"
++ lib.optional (!withLuaJIT) "-DENABLE_TORCH=OFF";
] ++ lib.optional withHyperscan "-DENABLE_HYPERSCAN=ON";
meta = with stdenv.lib; {
homepage = "https://rspamd.com";