summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
Diffstat (limited to 'mail')
-rw-r--r--mail/Makefile1
-rw-r--r--mail/py-spambayes/Makefile32
-rw-r--r--mail/py-spambayes/distinfo1
-rw-r--r--mail/py-spambayes/files/patch-setup.py10
-rw-r--r--mail/py-spambayes/pkg-comment1
-rw-r--r--mail/py-spambayes/pkg-descr19
-rw-r--r--mail/py-spambayes/pkg-plist80
7 files changed, 144 insertions, 0 deletions
diff --git a/mail/Makefile b/mail/Makefile
index cdba3618dfce..1d915aebe1f5 100644
--- a/mail/Makefile
+++ b/mail/Makefile
@@ -210,6 +210,7 @@
SUBDIR += prom-wl
SUBDIR += pronto
SUBDIR += py-milter
+ SUBDIR += py-spambayes
SUBDIR += pygmy
SUBDIR += pymsgauth
SUBDIR += pyzor
diff --git a/mail/py-spambayes/Makefile b/mail/py-spambayes/Makefile
new file mode 100644
index 000000000000..740c2061f9e3
--- /dev/null
+++ b/mail/py-spambayes/Makefile
@@ -0,0 +1,32 @@
+# New ports collection makefile for: spambayes
+# Date created: Sat Feb 1 17:23:02 UTC 2003
+# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= spambayes
+PORTVERSION= 1.0.a.1
+CATEGORIES= mail python
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= ${PORTNAME}
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+DISTNAME= ${PORTNAME}-1.0a1
+
+MAINTAINER= lioux@FreeBSD.org
+
+USE_PYTHON= yes
+USE_PYDISTUTILS= yes
+
+DOC_FILES= HAMMIE.txt INTEGRATION.txt LICENSE.txt README.txt \
+ TESTING.txt hammie/BULK.txt
+
+post-install:
+.ifndef(PORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+.for file in ${DOC_FILES}
+ @${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
+.endfor
+.endif
+
+.include <bsd.port.mk>
diff --git a/mail/py-spambayes/distinfo b/mail/py-spambayes/distinfo
new file mode 100644
index 000000000000..4d12421a59d5
--- /dev/null
+++ b/mail/py-spambayes/distinfo
@@ -0,0 +1 @@
+MD5 (spambayes-1.0a1.tar.gz) = cac83c67cd780e57c77cebe184fc8415
diff --git a/mail/py-spambayes/files/patch-setup.py b/mail/py-spambayes/files/patch-setup.py
new file mode 100644
index 000000000000..5dda74696b8f
--- /dev/null
+++ b/mail/py-spambayes/files/patch-setup.py
@@ -0,0 +1,10 @@
+--- setup.py.orig Sat Feb 1 15:52:48 2003
++++ setup.py Sat Feb 1 15:53:53 2003
+@@ -36,6 +36,7 @@
+ 'hammiecli.py',
+ 'hammiesrv.py',
+ 'hammiefilter.py',
++ 'mboxtrain.py',
+ 'pop3proxy.py',
+ 'proxytrainer.py',
+ 'proxytee.py',
diff --git a/mail/py-spambayes/pkg-comment b/mail/py-spambayes/pkg-comment
new file mode 100644
index 000000000000..6c95f9e85f87
--- /dev/null
+++ b/mail/py-spambayes/pkg-comment
@@ -0,0 +1 @@
+A Bayesian anti-spam filter written in Python
diff --git a/mail/py-spambayes/pkg-descr b/mail/py-spambayes/pkg-descr
new file mode 100644
index 000000000000..2495c793cc1d
--- /dev/null
+++ b/mail/py-spambayes/pkg-descr
@@ -0,0 +1,19 @@
+[ excerpt with modifications from developer's site ]
+
+The SpamBayes project is working on developing a Bayesian anti-spam
+filter.
+
+SpamBayes will attempt to classify incoming email messages as 'spam',
+'ham' (good, non-spam email) or 'unsure'. This means you can have
+spam or unsure messages automatically filed away in a different
+mail folder, where it won't interrupt your email reading.
+
+First, SpamBayes must be trained by each user to identify spam and
+ham. Essentially, you show SpamBayes a pile of email that you like
+(ham) and a pile you don't like (spam). SpamBayes will then analyze
+the piles for clues as to what makes the spam and ham different.
+For example; different words, differences in the mailer headers and
+content style. The system then uses these clues to examine new
+messages.
+
+WWW: http://spambayes.sourceforge.net/
diff --git a/mail/py-spambayes/pkg-plist b/mail/py-spambayes/pkg-plist
new file mode 100644
index 000000000000..3effbe402aa7
--- /dev/null
+++ b/mail/py-spambayes/pkg-plist
@@ -0,0 +1,80 @@
+bin/hammie.py
+bin/hammiecli.py
+bin/hammiefilter.py
+bin/hammiesrv.py
+bin/mboxtrain.py
+bin/pop3proxy.py
+bin/proxytee.py
+bin/proxytrainer.py
+bin/unheader.py
+%%PYTHON_SITELIBDIR%%/spambayes/Corpus.py
+%%PYTHON_SITELIBDIR%%/spambayes/Corpus.pyc
+%%PYTHON_SITELIBDIR%%/spambayes/Corpus.pyo
+%%PYTHON_SITELIBDIR%%/spambayes/CostCounter.py
+%%PYTHON_SITELIBDIR%%/spambayes/CostCounter.pyc
+%%PYTHON_SITELIBDIR%%/spambayes/CostCounter.pyo
+%%PYTHON_SITELIBDIR%%/spambayes/FileCorpus.py
+%%PYTHON_SITELIBDIR%%/spambayes/FileCorpus.pyc
+%%PYTHON_SITELIBDIR%%/spambayes/FileCorpus.pyo
+%%PYTHON_SITELIBDIR%%/spambayes/Histogram.py
+%%PYTHON_SITELIBDIR%%/spambayes/Histogram.pyc
+%%PYTHON_SITELIBDIR%%/spambayes/Histogram.pyo
+%%PYTHON_SITELIBDIR%%/spambayes/Options.py
+%%PYTHON_SITELIBDIR%%/spambayes/Options.pyc
+%%PYTHON_SITELIBDIR%%/spambayes/Options.pyo
+%%PYTHON_SITELIBDIR%%/spambayes/TestDriver.py
+%%PYTHON_SITELIBDIR%%/spambayes/TestDriver.pyc
+%%PYTHON_SITELIBDIR%%/spambayes/TestDriver.pyo
+%%PYTHON_SITELIBDIR%%/spambayes/Tester.py
+%%PYTHON_SITELIBDIR%%/spambayes/Tester.pyc
+%%PYTHON_SITELIBDIR%%/spambayes/Tester.pyo
+%%PYTHON_SITELIBDIR%%/spambayes/__init__.py
+%%PYTHON_SITELIBDIR%%/spambayes/__init__.pyc
+%%PYTHON_SITELIBDIR%%/spambayes/__init__.pyo
+%%PYTHON_SITELIBDIR%%/spambayes/cdb.py
+%%PYTHON_SITELIBDIR%%/spambayes/cdb.pyc
+%%PYTHON_SITELIBDIR%%/spambayes/cdb.pyo
+%%PYTHON_SITELIBDIR%%/spambayes/chi2.py
+%%PYTHON_SITELIBDIR%%/spambayes/chi2.pyc
+%%PYTHON_SITELIBDIR%%/spambayes/chi2.pyo
+%%PYTHON_SITELIBDIR%%/spambayes/classifier.py
+%%PYTHON_SITELIBDIR%%/spambayes/classifier.pyc
+%%PYTHON_SITELIBDIR%%/spambayes/classifier.pyo
+%%PYTHON_SITELIBDIR%%/spambayes/compatheapq.py
+%%PYTHON_SITELIBDIR%%/spambayes/compatheapq.pyc
+%%PYTHON_SITELIBDIR%%/spambayes/compatheapq.pyo
+%%PYTHON_SITELIBDIR%%/spambayes/compatsets.py
+%%PYTHON_SITELIBDIR%%/spambayes/compatsets.pyc
+%%PYTHON_SITELIBDIR%%/spambayes/compatsets.pyo
+%%PYTHON_SITELIBDIR%%/spambayes/dbmstorage.py
+%%PYTHON_SITELIBDIR%%/spambayes/dbmstorage.pyc
+%%PYTHON_SITELIBDIR%%/spambayes/dbmstorage.pyo
+%%PYTHON_SITELIBDIR%%/spambayes/hammie.py
+%%PYTHON_SITELIBDIR%%/spambayes/hammie.pyc
+%%PYTHON_SITELIBDIR%%/spambayes/hammie.pyo
+%%PYTHON_SITELIBDIR%%/spambayes/hammiebulk.py
+%%PYTHON_SITELIBDIR%%/spambayes/hammiebulk.pyc
+%%PYTHON_SITELIBDIR%%/spambayes/hammiebulk.pyo
+%%PYTHON_SITELIBDIR%%/spambayes/mboxutils.py
+%%PYTHON_SITELIBDIR%%/spambayes/mboxutils.pyc
+%%PYTHON_SITELIBDIR%%/spambayes/mboxutils.pyo
+%%PYTHON_SITELIBDIR%%/spambayes/msgs.py
+%%PYTHON_SITELIBDIR%%/spambayes/msgs.pyc
+%%PYTHON_SITELIBDIR%%/spambayes/msgs.pyo
+%%PYTHON_SITELIBDIR%%/spambayes/optimize.py
+%%PYTHON_SITELIBDIR%%/spambayes/optimize.pyc
+%%PYTHON_SITELIBDIR%%/spambayes/optimize.pyo
+%%PYTHON_SITELIBDIR%%/spambayes/storage.py
+%%PYTHON_SITELIBDIR%%/spambayes/storage.pyc
+%%PYTHON_SITELIBDIR%%/spambayes/storage.pyo
+%%PYTHON_SITELIBDIR%%/spambayes/tokenizer.py
+%%PYTHON_SITELIBDIR%%/spambayes/tokenizer.pyc
+%%PYTHON_SITELIBDIR%%/spambayes/tokenizer.pyo
+%%PORTDOCS%%%%DOCSDIR%%/BULK.txt
+%%PORTDOCS%%%%DOCSDIR%%/HAMMIE.txt
+%%PORTDOCS%%%%DOCSDIR%%/INTEGRATION.txt
+%%PORTDOCS%%%%DOCSDIR%%/LICENSE.txt
+%%PORTDOCS%%%%DOCSDIR%%/README.txt
+%%PORTDOCS%%%%DOCSDIR%%/TESTING.txt
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
+@dirrm %%PYTHON_SITELIBDIR%%/spambayes