BSD Ports

Deprecated: This port will update to LMDB 1.0. Please transition to bogofilter-lmdb1 before December 2026, see UPDATING

mail/bogofilter 1.3.0.r1_5 FreeBSD

Fast, teachable, learning spam detector (LMDB 0.9 database)

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
Last update
Commit
85ba298b7e
License
GPLv2+
Categories
mail
Package size
337.5 KiB, 1501.2 KiB installed

Description

Bogofilter is a trainable email spam detector.

Bogofilter takes an email message or other text on standard input, parses it into words, does a statistical check against databases of "good" and "bad" words, and returns a status code indicating whether or not the message is spam. Bogofilter decodes base64 or quoted-printable encoded texts and ignores non-text attachments and HTML comments.

The supported database backends are LMDB, Kyoto Cabinet and SQLite3. The upstream version would theoretically also support QDBM and Tokyo Cabinet, but these are not currently available as FreeBSD ports. Berkeley DB support is being phased out.

In the other systems

SystemPortVersion
FreeBSDmail/bogofilter1.3.0.r1_5
OpenBSDmail/bogofilter1.2.5
NetBSDmail/bogofilter1.2.4nb34
MidnightBSDmail/bogofilter
GhostBSDmail/bogofilter1.3.0.r1_4

Install

Binary package:

pkg install bogofilter

From the ports tree:

cd /usr/ports/mail/bogofilter/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	bogofilter>0:mail/bogofilter

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest1.3.0.r1_41.3.0.r1_41.2.5_31.3.0.r11.3.0.r1_4
FreeBSD:14:quarterly1.3.0.r1_41.3.0.r1_4n/a1.3.0.r11.3.0.r1_4
FreeBSD:15:latest1.3.0.r1_41.3.0.r1_4n/a1.3.0.r11.3.0.r1
FreeBSD:15:quarterly1.3.0.r1_41.3.0.r1_4n/an/an/a
FreeBSD:16:latest1.3.0.r1_41.3.0.r1_4n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

The Makefile names none itself; they come from USES and USE_*.

The full lists below include those, and their dependencies in turn.

Build dependencies 3
Run dependencies 4

Configuration

Options name: mail_bogofilter

OptionDefaultDescription
DOCSoffBuild and/or install documentation
GSLonLink with system-wide GSL dynamically (recommended)
UNICODEonNormalize tokens to Unicode (UTF-8) (recommended)
USES
cpe perl5 shebangfix tar:xz
Service scripts
none
Conflicts with
bogofilter-kc bogofilter-lmdb1 bogofilter-sqlite

Message after installing

===>   NOTICE:

This port is deprecated; you may wish to reconsider installing it:

This port will update to LMDB 1.0. Please transition to bogofilter-lmdb1 before December 2026, see UPDATING.

Files

Manual pages 8
  • bf_compact(1)
  • bf_copy(1)
  • bf_tar(1)
  • bogofilter(1)
  • bogolexer(1)
  • bogotune(1)
  • bogoupgrade(1)
  • bogoutil(1)
pkg-plist 18
  • bin/bf_compact
  • bin/bf_copy
  • bin/bf_tar
  • bin/bogofilter
  • bin/bogogrep
  • bin/bogolexer
  • bin/bogotune
  • bin/bogoutil
  • bin/bogoupgrade
  • etc/bogofilter.cf.example
  • share/man/man1/bf_compact.1.gz
  • share/man/man1/bf_copy.1.gz
  • share/man/man1/bf_tar.1.gz
  • share/man/man1/bogofilter.1.gz
  • share/man/man1/bogolexer.1.gz
  • share/man/man1/bogotune.1.gz
  • share/man/man1/bogoupgrade.1.gz
  • share/man/man1/bogoutil.1.gz
distinfo 1
FileSizeSHA256
bogofilter-1.3.0.rc1.tar.xz7647240bc4b8300a106e7c5a4110c052272cfe64bb096ec5e7f552a44c3f41b574b29b
Master sites 2
  • SF/bogofilter/bogofilter-current/bogofilter-1.3.0.beta/
  • https://gitlab.com/-/project/12408342/uploads/647db3bd2f28a1f91bdd3bb1945d91fe/

Commit history 4

DateCommitCreditsLog message
85ba298b7e Baptiste Daroussin databases/lmdb: allow to install both 0.x and 1.x together
LMDB 1.0 and the legacy 0.9 ABI cannot be mixed, the datanase format are incompatibles as well. Rename or relocate everything databases/lmdb0 installs so that it no longer overlaps with databases/lmdb: - the utilities are now mdb_copy0, mdb_dump0, mdb_load0 and mdb_stat0 - the header is include/lmdb0/lmdb.h - the linker name is liblmdb0.so, the shared object keeps its ABI name liblmdb.so.0 so already linked programs are unaffected - the pkg-config file is lmdb0.pc A compatibility prefix holding the previous layout is also installed under ${PREFIX}/lmdb0/ (include/, lib/ and libdata/pkgconfig/) so that build systems which expect to find lmdb.h and -llmdb relative to a single directory only need a path change. Now all ports should migrate to lmdb 1.X and use the lmdb 0.9 port to ease …
edee11f3ad Matthias Andree mail/bogofilter*: fix unaligned access on some databases
This was found with the undefined behavior sanitizer, and affects the generic code (independent of the concrete database back-end in use) so we need to bump all PORTREVISIONS. The bug was that internal code was casting a void * to a uint32_t * without ensuring alignment of the source value. Let's use memcpy to a statically-sized array and let the optimizer handle it for us. Adds files/patch-src_datastore.c. PR: 297024 MFH: 2026Q3
9d0203aad0 Matthias Andree mail/bogofilter*: Prepare LMDB 1.0 transition
Here's what we do now: - mail/bogofilter currently depends on lmdb0, a 0.9.X port, so it continues to work as before - add a new mail/bogofilter-lmdb1 port that depends on lmdb, the 1.0 version of the LMDB database. - add the upstream patch for bogofilter 1.3.0.rc1 that I made and that delphij@ prepared for integration into the ports tree - thanks! Here's the plan for end of 2026: - AT THE SAME TIME: - upgrade mail/bogofilter to depend on LMDB 1.0 - portrm mail/bogofilter-lmdb1 - add a MOVED entry to redirect from bogofilter-lmdb1 to bogofilter. While here, clean up and rearrange the Makefiles. PR: 296519 Reviewed by: arrowd Pull Request: https://github.com/freebsd/freebsd-ports/pull/551
5f9d389f29 Xin LI databases/lmdb0: Add port for LMDB 0.9.x legacy ABI
LMDB 1.0 introduced an incompatible on-disk format change and subtle API breakage: applications that compiled cleanly against 1.0 headers could fail silently at run time. Known affected ports include dns/knot3, mail/bogofilter, and mail/postfix; the postfix issue has been confirmed upstream. Linux distributions such as Arch Linux have observed the same breakage. Samba can also be affected in certain configurations. Because the regression is not detectable in an -exp build run -- the postfix failure only manifests at run time, and bogofilter was caught only because post-build self-tests happen to exercise this path -- we cannot rely on package builds to validate the 1.0 upgrade. This commit introduces databases/lmdb0 as a holding port for the 0.9.35 …