From 1e9010de6eeb92c904a22bf115ebef99a67c0856 Mon Sep 17 00:00:00 2001 From: hubertf Date: Mon, 26 Aug 2002 15:54:28 +0000 Subject: Rename pkgsrc/mail/p5-Mail-Spamassassin to pkgsrc/mail/spamassassin. --- mail/spamassassin/DESCR | 22 ++++++++++++++++++++ mail/spamassassin/MESSAGE | 13 ++++++++++++ mail/spamassassin/Makefile | 42 ++++++++++++++++++++++++++++++++++++++ mail/spamassassin/PLIST | 34 ++++++++++++++++++++++++++++++ mail/spamassassin/distinfo | 5 +++++ mail/spamassassin/patches/patch-aa | 10 +++++++++ 6 files changed, 126 insertions(+) create mode 100644 mail/spamassassin/DESCR create mode 100644 mail/spamassassin/MESSAGE create mode 100644 mail/spamassassin/Makefile create mode 100644 mail/spamassassin/PLIST create mode 100644 mail/spamassassin/distinfo create mode 100644 mail/spamassassin/patches/patch-aa (limited to 'mail') diff --git a/mail/spamassassin/DESCR b/mail/spamassassin/DESCR new file mode 100644 index 00000000000..3d60fec1ee9 --- /dev/null +++ b/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/spamassassin/MESSAGE b/mail/spamassassin/MESSAGE new file mode 100644 index 00000000000..338978de232 --- /dev/null +++ b/mail/spamassassin/MESSAGE @@ -0,0 +1,13 @@ +=========================================================================== +$NetBSD: MESSAGE,v 1.1.1.1 2002/08/26 15:54:28 hubertf Exp $ + +The default directory for site-wide config files for SpamAssassin on +NetBSD has changed from + + /etc/mail/spamassassin +to + ${PKG_SYSCONFDIR}/spamassassin + +If you have old config files, please move them to the new location. + +=========================================================================== diff --git a/mail/spamassassin/Makefile b/mail/spamassassin/Makefile new file mode 100644 index 00000000000..0631b809dd2 --- /dev/null +++ b/mail/spamassassin/Makefile @@ -0,0 +1,42 @@ +# $NetBSD: Makefile,v 1.3 2002/08/26 15:55:58 hubertf Exp $ + +DISTNAME= Mail-SpamAssassin-2.31 +PKGNAME= p5-${DISTNAME} +PKGREVISION= 3 +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://www.spamassassin.org/ +COMMENT= mail filter to identify spam + +DEPENDS+= p5-Net-DNS-[0-9]*:../../net/p5-Net-DNS +DEPENDS+= p5-Time-HiRes-[0-9]*:../../time/p5-Time-HiRes + +USE_BUILDLINK_ONLY= YES +PERL5_PACKLIST= ${PERL5_SITEARCH}/auto/Mail/SpamAssassin/.packlist + +post-patch: + @(cd ${WRKSRC}; \ + for f in README Makefile.PL lib/Mail/SpamAssassin/Conf.pm ; do \ + ${SED} -e "s,/usr/share,${PREFIX}/share," \ + -e "s,/etc/mail,${PKG_SYSCONFBASE},g" $$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.spamd + ${INSTALL_DATA} ${WRKSRC}/$f ${PREFIX}/share/doc/spamassassin/$f +.endfor + +.include "../../lang/perl5/buildlink.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/mail/spamassassin/PLIST b/mail/spamassassin/PLIST new file mode 100644 index 00000000000..0bd106c5d27 --- /dev/null +++ b/mail/spamassassin/PLIST @@ -0,0 +1,34 @@ +@comment $NetBSD: PLIST,v 1.3 2002/08/26 15:55:58 hubertf Exp $ +@comment bin/spamassassin +@comment bin/spamc +@comment bin/spamd +@comment bin/spamproxyd +share/doc/spamassassin/README +share/doc/spamassassin/procmailrc.example +share/doc/spamassassin/sample-nonspam.txt +share/doc/spamassassin/sample-spam.txt +share/doc/spamassassin/spamd/README.spamd +share/doc/spamassassin/sql/README +share/doc/spamassassin/sql/spamassassin.sql +share/spamassassin/10_misc.cf +share/spamassassin/20_body_tests.cf +share/spamassassin/20_head_tests.cf +share/spamassassin/20_uri_tests.cf +share/spamassassin/25_body_tests_es.cf +share/spamassassin/25_body_tests_pl.cf +share/spamassassin/25_head_tests_es.cf +share/spamassassin/25_head_tests_pl.cf +share/spamassassin/30_text_de.cf +share/spamassassin/30_text_es.cf +share/spamassassin/30_text_fr.cf +share/spamassassin/30_text_pl.cf +share/spamassassin/40_spam_phrases.cf +share/spamassassin/50_scores.cf +share/spamassassin/60_whitelist.cf +share/spamassassin/languages +share/spamassassin/triplets.txt +share/spamassassin/user_prefs.template +@dirrm share/doc/spamassassin/spamd +@dirrm share/doc/spamassassin/sql +@dirrm share/doc/spamassassin +@dirrm share/spamassassin diff --git a/mail/spamassassin/distinfo b/mail/spamassassin/distinfo new file mode 100644 index 00000000000..2afd6d9efe3 --- /dev/null +++ b/mail/spamassassin/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.3 2002/08/26 15:55:58 hubertf Exp $ + +SHA1 (Mail-SpamAssassin-2.31.tar.gz) = d43295b0e3e49c60e8f91f7f7645a40db04965f1 +Size (Mail-SpamAssassin-2.31.tar.gz) = 370237 bytes +SHA1 (patch-aa) = 79a9f8589d6a99979bd2ff5dc56aff7ff9654ac7 diff --git a/mail/spamassassin/patches/patch-aa b/mail/spamassassin/patches/patch-aa new file mode 100644 index 00000000000..bb6975953b2 --- /dev/null +++ b/mail/spamassassin/patches/patch-aa @@ -0,0 +1,10 @@ +$NetBSD: patch-aa,v 1.1.1.1 2002/08/26 15:54:29 hubertf Exp $ + +--- rules/local.cf.orig Wed Dec 19 06:20:44 2001 ++++ rules/local.cf +@@ -1,3 +1,3 @@ +-# Add your own customisations to this file. See 'man Mail::SpamAssassin::Conf' +-# for details of what can be tweaked. ++# Add your own customisations to this file. See ++# 'perldoc Mail::SpamAssassin::Conf' for details of what can be tweaked. + # -- cgit v1.2.3