summaryrefslogtreecommitdiff
path: root/mail/p5-Mail-SpamAssassin
diff options
context:
space:
mode:
authorsimonb <simonb>2002-01-31 10:57:52 +0000
committersimonb <simonb>2002-01-31 10:57:52 +0000
commita2ebe862fd06508ba5a7e5ebbe6dacf8da2a5f0b (patch)
tree1f82d7810f51b889a10dfe2613bcd09d728e8fd0 /mail/p5-Mail-SpamAssassin
parente2114fd4fb33a6f0556fe95fa0ff4422800b76ff (diff)
downloadpkgsrc-a2ebe862fd06508ba5a7e5ebbe6dacf8da2a5f0b.tar.gz
Import p5-Mail-SpamAssassin-2.01.
SpamAssassin is a mail filter to identify spam. Using its rule base, it uses a wide range of heuristic tests on mail headers and body text to identify "spam", also known as unsolicited commercial email.
Diffstat (limited to 'mail/p5-Mail-SpamAssassin')
-rw-r--r--mail/p5-Mail-SpamAssassin/DESCR22
-rw-r--r--mail/p5-Mail-SpamAssassin/Makefile40
-rw-r--r--mail/p5-Mail-SpamAssassin/PLIST24
-rw-r--r--mail/p5-Mail-SpamAssassin/distinfo4
4 files changed, 90 insertions, 0 deletions
diff --git a/mail/p5-Mail-SpamAssassin/DESCR b/mail/p5-Mail-SpamAssassin/DESCR
new file mode 100644
index 00000000000..3d60fec1ee9
--- /dev/null
+++ b/mail/p5-Mail-SpamAssassin/DESCR
@@ -0,0 +1,22 @@
+SpamAssassin is a mail filter to identify spam.
+
+Using its rule base, it uses a wide range of heuristic tests on mail
+headers and body text to identify "spam", also known as unsolicited
+commercial email.
+
+The spam-identification tactics used include header analysis, text
+analysis, blacklists and Razor.
+
+Once identified, the mail can then be optionally tagged as spam for
+later filtering using the user's own mail user-agent application.
+
+SpamAssassin requires very little configuration; you do not need to
+continually update it with details of your mail accounts, mailing list
+memberships, etc. It accomplishes filtering without this knowledge, as
+much as possible.
+
+The distribution provides a command line tool to perform filtering,
+along with Mail::SpamAssassin, a set of perl modules which implement a
+Mail::Audit plugin, allowing SpamAssassin to be used in a Mail::Audit
+filter, or (possibly at some point) in a spam-protection proxy POP/IMAP
+server.
diff --git a/mail/p5-Mail-SpamAssassin/Makefile b/mail/p5-Mail-SpamAssassin/Makefile
new file mode 100644
index 00000000000..a67f0be201f
--- /dev/null
+++ b/mail/p5-Mail-SpamAssassin/Makefile
@@ -0,0 +1,40 @@
+# $NetBSD: Makefile,v 1.1.1.1 2002/01/31 10:57:52 simonb Exp $
+#
+
+DISTNAME= Mail-SpamAssassin-2.01
+PKGNAME= p5-${DISTNAME}
+SVR4_PKGNAME= p5msa
+CATEGORIES= mail
+#MASTER_SITES= http://spamassassin.taint.org/released/
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Mail/}
+
+MAINTAINER= packages@netbsd.org
+HOMEPAGE= http://spamassassin.taint.org/
+COMMENT= mail filter to identify spam
+
+DEPENDS+= p5-Net-DNS-[0-9]*:../../net/p5-Net-DNS
+
+USE_BUILDLINK_ONLY= YES
+PERL5_PACKLIST= ${PERL5_SITEARCH}/auto/Mail/SpamAssassin/.packlist
+
+post-patch:
+ @(cd ${WRKSRC}; \
+ for f in lib/Mail/SpamAssassin/Conf.pm lib/Mail/SpamAssassin.pm ; do \
+ ${SED} -e "s,/usr/share,${PREFIX}/share," $$f > $$f.fixed && \
+ ${MV} $$f.fixed $$f; \
+ done)
+
+do-configure:
+ @cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${PERL5} Makefile.PL
+
+post-install:
+.for d in spamassassin spamassassin/sql spamassassin/spamd
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/$d
+.endfor
+.for f in README procmailrc.example sample-nonspam.txt sample-spam.txt \
+ sql/README sql/spamassassin.sql spamd/README
+ ${INSTALL_DATA} ${WRKSRC}/$f ${PREFIX}/share/doc/spamassassin/$f
+.endfor
+
+.include "../../lang/perl5/buildlink.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/mail/p5-Mail-SpamAssassin/PLIST b/mail/p5-Mail-SpamAssassin/PLIST
new file mode 100644
index 00000000000..84e2d19fd66
--- /dev/null
+++ b/mail/p5-Mail-SpamAssassin/PLIST
@@ -0,0 +1,24 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2002/01/31 10:57:52 simonb Exp $
+@comment bin/spamassassin
+@comment bin/spamc
+@comment bin/spamd
+@comment bin/spamproxyd
+share/spamassassin/user_prefs.template
+share/spamassassin/10_misc.cf
+share/spamassassin/20_body_tests.cf
+share/spamassassin/20_head_tests.cf
+share/spamassassin/30_text_es.cf
+share/spamassassin/40_spam_phrases.cf
+share/spamassassin/50_scores.cf
+share/spamassassin/60_whitelist.cf
+share/doc/spamassassin/README
+share/doc/spamassassin/procmailrc.example
+share/doc/spamassassin/sample-nonspam.txt
+share/doc/spamassassin/sample-spam.txt
+share/doc/spamassassin/sql/README
+share/doc/spamassassin/sql/spamassassin.sql
+share/doc/spamassassin/spamd/README
+@dirrm share/doc/spamassassin/spamd
+@dirrm share/doc/spamassassin/sql
+@dirrm share/spamassassin
+@dirrm share/doc/spamassassin
diff --git a/mail/p5-Mail-SpamAssassin/distinfo b/mail/p5-Mail-SpamAssassin/distinfo
new file mode 100644
index 00000000000..47dadbcee6d
--- /dev/null
+++ b/mail/p5-Mail-SpamAssassin/distinfo
@@ -0,0 +1,4 @@
+$NetBSD: distinfo,v 1.1.1.1 2002/01/31 10:57:52 simonb Exp $
+
+SHA1 (Mail-SpamAssassin-2.01.tar.gz) = 92cabb47ba6e86b591425d0feb067e434e2dd30e
+Size (Mail-SpamAssassin-2.01.tar.gz) = 181135 bytes