bayesian spam filter, works just fine, even though one regression test
is failing (too much precision in arithmetic).
This commit is contained in:
parent
50eb0c4c39
commit
4065a2cba4
42
mail/bogofilter/Makefile
Normal file
42
mail/bogofilter/Makefile
Normal file
@ -0,0 +1,42 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2004/07/05 13:18:48 espie Exp $
|
||||
|
||||
DISTNAME=bogofilter-0.91.2
|
||||
|
||||
CATEGORIES=mail
|
||||
COMMENT='bayesian spam filter'
|
||||
MAINTAINER=Marc Espie <espie@openbsd.org>
|
||||
|
||||
MASTER_SITES=${MASTER_SITE_SOURCEFORGE:=bogofilter/}
|
||||
CONFIGURE_STYLE=gnu
|
||||
|
||||
FLAVORS=db4
|
||||
|
||||
FLAVOR?=
|
||||
.if ${FLAVOR:L} == "db4"
|
||||
DB_INC=${LOCALBASE}/include/db4
|
||||
DB_LIB=${LOCALBASE}/lib/db4
|
||||
LIB_DEPENDS+=lib/db4/db.=4:db-4.*:databases/db/v4
|
||||
.else
|
||||
DB_INC=${LOCALBASE}/include/db
|
||||
DB_LIB=${LOCALBASE}/lib/db
|
||||
LIB_DEPENDS+=lib/db/db.=3:db-3.*:databases/db/v3
|
||||
.endif
|
||||
|
||||
|
||||
CONFIGURE_ENV =CPPFLAGS='-I${DB_INC}'
|
||||
CONFIGURE_ENV+=LDFLAGS='-L${DB_LIB}'
|
||||
|
||||
CONFIGURE_ARGS+=--with-included-gsl
|
||||
|
||||
|
||||
# GPL
|
||||
PERMIT_DISTFILES_CDROM=Yes
|
||||
PERMIT_DISTFILES_FTP=Yes
|
||||
PERMIT_PACKAGE_CDROM=Yes
|
||||
PERMIT_PACKAGE_FTP=Yes
|
||||
|
||||
SAMPLEDIR=${PREFIX}/share/examples/bogofilter
|
||||
post-install:
|
||||
${INSTALL_DATA_DIR} ${SAMPLEDIR}
|
||||
mv ${WRKINST}${SYSCONFDIR}/bogofilter.cf.example ${SAMPLEDIR}
|
||||
.include <bsd.port.mk>
|
3
mail/bogofilter/distinfo
Normal file
3
mail/bogofilter/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (bogofilter-0.91.2.tar.gz) = 5717be37665902bef13cfe4acb1363c6
|
||||
RMD160 (bogofilter-0.91.2.tar.gz) = 4d50bb25e1632a0cec1fbe6ffa441c9d203e42a3
|
||||
SHA1 (bogofilter-0.91.2.tar.gz) = f1ad50904254ed0b0233da06df497da0e632fd3d
|
14
mail/bogofilter/pkg/DESCR
Normal file
14
mail/bogofilter/pkg/DESCR
Normal file
@ -0,0 +1,14 @@
|
||||
|
||||
bogofilter -- fast Bayesian spam filtering
|
||||
|
||||
This package implements a fast Bayesian spam filter along the lines suggested
|
||||
by Paul Graham in his article "A Plan For Spam".
|
||||
|
||||
This version substantially improves on Paul's proposal by doing smarter
|
||||
lexical analysis. In particular, hostames and IP addresses are retained
|
||||
as recognition features rather than broken up. Various kinds of MTA
|
||||
cruft such as dates and message-IDs are discarded so as not to bloat
|
||||
the word lists.
|
||||
|
||||
Flavors:
|
||||
* db4: use v4 of the Berkeley database
|
13
mail/bogofilter/pkg/PLIST
Normal file
13
mail/bogofilter/pkg/PLIST
Normal file
@ -0,0 +1,13 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2004/07/05 13:18:48 espie Exp $
|
||||
bin/bogofilter
|
||||
bin/bogolexer
|
||||
bin/bogotune
|
||||
bin/bogoupgrade
|
||||
bin/bogoutil
|
||||
man/man1/bogofilter.1
|
||||
man/man1/bogolexer.1
|
||||
man/man1/bogotune.1
|
||||
man/man1/bogoupgrade.1
|
||||
man/man1/bogoutil.1
|
||||
share/examples/bogofilter/bogofilter.cf.example
|
||||
@dirrm share/examples/bogofilter
|
Loading…
Reference in New Issue
Block a user