diff options
author | Felippe de Meirelles Motta <lippe@FreeBSD.org> | 2009-02-01 18:10:25 +0000 |
---|---|---|
committer | Felippe de Meirelles Motta <lippe@FreeBSD.org> | 2009-02-01 18:10:25 +0000 |
commit | 7963caabc6d45bf87c95576178fe842ae7d82106 (patch) | |
tree | 4a3bfcbd3f144fbf36a185cc49ac0215312dfb45 /mail/osbf-lua | |
parent | a22e1fcb7ee34573323991976e232ecb4410f2cd (diff) | |
download | ports-7963caabc6d45bf87c95576178fe842ae7d82106.tar.gz ports-7963caabc6d45bf87c95576178fe842ae7d82106.zip |
Notes
Diffstat (limited to 'mail/osbf-lua')
-rw-r--r-- | mail/osbf-lua/Makefile | 33 | ||||
-rw-r--r-- | mail/osbf-lua/distinfo | 3 | ||||
-rw-r--r-- | mail/osbf-lua/files/patch-config | 14 | ||||
-rw-r--r-- | mail/osbf-lua/pkg-descr | 8 | ||||
-rw-r--r-- | mail/osbf-lua/pkg-plist | 18 |
5 files changed, 76 insertions, 0 deletions
diff --git a/mail/osbf-lua/Makefile b/mail/osbf-lua/Makefile new file mode 100644 index 000000000000..0524dccbdd87 --- /dev/null +++ b/mail/osbf-lua/Makefile @@ -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> diff --git a/mail/osbf-lua/distinfo b/mail/osbf-lua/distinfo new file mode 100644 index 000000000000..7ddc4ba997f8 --- /dev/null +++ b/mail/osbf-lua/distinfo @@ -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 diff --git a/mail/osbf-lua/files/patch-config b/mail/osbf-lua/files/patch-config new file mode 100644 index 000000000000..69829c3f0bed --- /dev/null +++ b/mail/osbf-lua/files/patch-config @@ -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 diff --git a/mail/osbf-lua/pkg-descr b/mail/osbf-lua/pkg-descr new file mode 100644 index 000000000000..370d07d894dc --- /dev/null +++ b/mail/osbf-lua/pkg-descr @@ -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/ diff --git a/mail/osbf-lua/pkg-plist b/mail/osbf-lua/pkg-plist new file mode 100644 index 000000000000..5647facf26b4 --- /dev/null +++ b/mail/osbf-lua/pkg-plist @@ -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 |