diff options
author | Ludovic Courtès <ludo@gnu.org> | 2008-03-02 18:35:04 +0000 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2008-03-02 18:35:04 +0000 |
commit | 26d4ecd5ad2e15dd2a52332bceb095670e5a234b (patch) | |
tree | 8dbc244b1bdc05f75718c99f3257191d8e421f0a /pkgs/tools/misc/bogofilter | |
parent | ebe1aed1b3060552c9c1d363c5be9380463c63d5 (diff) |
Add Bogofilter, a fast bayesian spam filter.
svn path=/nixpkgs/trunk/; revision=10908
Diffstat (limited to 'pkgs/tools/misc/bogofilter')
-rw-r--r-- | pkgs/tools/misc/bogofilter/default.nix | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/pkgs/tools/misc/bogofilter/default.nix b/pkgs/tools/misc/bogofilter/default.nix new file mode 100644 index 0000000000000..67382191da53e --- /dev/null +++ b/pkgs/tools/misc/bogofilter/default.nix @@ -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"; + }; +} |