Add Bogofilter, a fast bayesian spam filter.
svn path=/nixpkgs/trunk/; revision=10908
This commit is contained in:
parent
ebe1aed1b3
commit
26d4ecd5ad
24
pkgs/tools/misc/bogofilter/default.nix
Normal file
24
pkgs/tools/misc/bogofilter/default.nix
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
{fetchurl, stdenv, flex, bdb}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name = "bogofilter-1.1.6";
|
||||||
|
src = fetchurl {
|
||||||
|
url = "mirror://sourceforge/bogofilter/${name}.tar.bz2";
|
||||||
|
sha256 = "11pbhw6cc2yjdgl7nq771mrcv0z19al8jvassxnvbw4pvr5kzn9j";
|
||||||
|
};
|
||||||
|
|
||||||
|
# FIXME: We would need `pax' as a "propagated build input" (for use
|
||||||
|
# by the `bf_tar' script) but we don't have it currently.
|
||||||
|
|
||||||
|
buildInputs = [ flex bdb ];
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
homepage = http://bogofilter.sourceforge.net/;
|
||||||
|
description = ''Bogofilter is a mail filter that classifies mail
|
||||||
|
as spam or ham (non-spam) by a statistical analysis of
|
||||||
|
the message's header and content (body). The program is
|
||||||
|
able to learn from the user's classifications and
|
||||||
|
corrections. It is based on a Bayesian filter.'';
|
||||||
|
license = "GPLv2";
|
||||||
|
};
|
||||||
|
}
|
@ -396,6 +396,11 @@ rec {
|
|||||||
inherit fetchurl stdenv python wxPython26;
|
inherit fetchurl stdenv python wxPython26;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
bogofilter = import ../tools/misc/bogofilter {
|
||||||
|
inherit fetchurl stdenv flex;
|
||||||
|
bdb = db4;
|
||||||
|
};
|
||||||
|
|
||||||
bsdiff = import ../tools/compression/bsdiff {
|
bsdiff = import ../tools/compression/bsdiff {
|
||||||
inherit fetchurl stdenv;
|
inherit fetchurl stdenv;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user