OSBF-Lua (Orthogonal Sparse Bigrams with confidence Factor) is a Lua C module for text classification. It is a port of the OSBF classifier implemented in the CRM114 project. This implementation attempts to put focus on the classification task itself by using Lua as the scripting language, a powerful yet light-weight and fast language, which makes it easier to build and test more elaborated filters and training methods.

WWW: http://osbf-lua.luaforge.net/

Submitted by:	RicardoSSP <ricardo.katz@gmail.com> (via mail)
Reviewed by:	myself
This commit is contained in:
Felippe de Meirelles Motta
2009-02-01 18:10:25 +00:00
parent a22e1fcb7e
commit 7963caabc6
5 changed files with 76 additions and 0 deletions

33
mail/osbf-lua/Makefile Normal file
View File

@@ -0,0 +1,33 @@
# New ports collection makefile for: osbf-lua
# Date created: 2009-01-14
# Whom: RicardoSSP <ricardo.katz@gmail.com>
#
# $FreeBSD$
#
PORTNAME= osbf-lua
PORTVERSION= 2.0.4
CATEGORIES= mail
MASTER_SITES= http://luaforge.net/frs/download.php/2094/
MAINTAINER= ricardo.katz@gmail.com
COMMENT= This tool is used as classifier for mails, primarly as Anti Spam
USE_GMAKE= YES
USE_LDCONFIG= YES
USE_LUA= 5.1+
ALL_TARGET=
INSTALL_TARGET= install
OPTIONS= SPAMFILTER_PLUGIN "OSBF Spamfilter Plugin" on
.include <bsd.port.pre.mk>
.if defined(WITH_SPAMFILTER_PLUGIN)
INSTALL_TARGET+= install_spamfilter
PLIST_SUB+= SPAMFILTER=""
.else
PLIST_SUB+= SPAMFILTER="@comment "
.endif
.include <bsd.port.post.mk>

3
mail/osbf-lua/distinfo Normal file
View File

@@ -0,0 +1,3 @@
MD5 (osbf-lua-2.0.4.tar.gz) = 17888b58053f810a752ffbcc8c8e2ad9
SHA256 (osbf-lua-2.0.4.tar.gz) = 3262798d9d670c858cdce5dfb38d9b6967464ff5fe379acf1a20bc04c2db8a93
SIZE (osbf-lua-2.0.4.tar.gz) = 82343

View File

@@ -0,0 +1,14 @@
--- config.old 2009-01-14 19:47:07.000000000 -0200
+++ config 2009-01-14 19:47:27.000000000 -0200
@@ -8,9 +8,9 @@
SPAMFILTER_DIR= $(PREFIX)/osbf-lua
# Lua's library dir:
-LUA_LIBDIR= /usr/local/lib/lua/5.1
+LUA_LIBDIR= /usr/local/lib/lua51
# Lua's include dir
-LUA_INCDIR= /usr/local/include
+LUA_INCDIR= /usr/local/include/lua51
# System's include dir (where include files are installed)
INC_DIR= /usr/local/include

8
mail/osbf-lua/pkg-descr Normal file
View File

@@ -0,0 +1,8 @@
OSBF-Lua (Orthogonal Sparse Bigrams with confidence Factor) is a Lua C module
for text classification. It is a port of the OSBF classifier implemented in the
CRM114 project. This implementation attempts to put focus on the classification
task itself by using Lua as the scripting language, a powerful yet light-weight
and fast language, which makes it easier to build and test more elaborated
filters and training methods.
WWW: http://osbf-lua.luaforge.net/

18
mail/osbf-lua/pkg-plist Normal file
View File

@@ -0,0 +1,18 @@
%%SPAMFILTER%%osbf-lua/cache_report.lua
%%SPAMFILTER%%osbf-lua/classify.sample
%%SPAMFILTER%%osbf-lua/create_databases.lua
%%SPAMFILTER%%osbf-lua/database_status.lua
%%SPAMFILTER%%osbf-lua/getopt.lua
%%SPAMFILTER%%osbf-lua/promailrc.sample
%%SPAMFILTER%%osbf-lua/random.lua
%%SPAMFILTER%%osbf-lua/roc.lua
%%SPAMFILTER%%osbf-lua/spamfilter.help
%%SPAMFILTER%%osbf-lua/spamfilter.lua
%%SPAMFILTER%%osbf-lua/spamfilter_commands.lua
%%SPAMFILTER%%osbf-lua/spamfilter_config.lua
%%SPAMFILTER%%osbf-lua/toer.lua
%%SPAMFILTER%%osbf-lua/train.sample
%%SPAMFILTER%%@dirrmtry osbf-lua
lib/lua51/osbf.so
lib/lua51/libosbf.so.2.0.4
@dirrmtry lib/lua51