Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 07 May 2005 03:20:24 -0500
From:      Jonathan Noack <noackjr@alumni.rice.edu>
To:        perl@FreeBSD.org
Subject:   install spamassassin tools?
Message-ID:  <427C7A48.308@alumni.rice.edu>

next in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig07BCC647E015B972F9B982A7
Content-Type: multipart/mixed;
 boundary="------------080602030100040707050900"

This is a multi-part message in MIME format.
--------------080602030100040707050900
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

I came across documentation on the web for check_whitelist, a tool 
included with SpamAssassin that checks and cleans your auto-whitelist 
db.  Considering I have SpamAssassin installed, I tried to find where it 
was installed on my machine.  I failed.  The SpamAssassin port does not 
install any of the tools.  I think these are useful and the attached 
(very rough) patch makes the port install them.

Thoughts?

P.S. Some of the tools use extra perl modules (sa-stats.pl uses 
p5-Date-Manip and p5-Parse-Syslog, for example), so a mention of that 
might be a good idea.

-- 
Jonathan Noack | noackjr@alumni.rice.edu | OpenPGP: 0x991D8195

--------------080602030100040707050900
Content-Type: text/x-patch;
 name="sa-tools.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="sa-tools.diff"

Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/mail/p5-Mail-SpamAssassin/Makefile,v
retrieving revision 1.71
diff -u -r1.71 Makefile
--- Makefile	6 May 2005 20:05:57 -0000	1.71
+++ Makefile	7 May 2005 08:08:13 -0000
@@ -7,6 +7,7 @@
 
 PORTNAME=	Mail-SpamAssassin
 PORTVERSION=	3.0.3
+PORTREVISION=	1
 CATEGORIES=	mail perl5
 MASTER_SITES=	${MASTER_SITE_APACHE:S/$/:apache/} ${MASTER_SITE_PERL_CPAN:S/$/:cpan/}
 MASTER_SITE_SUBDIR=	spamassassin/:apache Mail/:cpan
@@ -78,6 +79,8 @@
 
 DOCSDIR=	${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
 DATADIR=	${PREFIX}/share/spamassassin
+TOOLS=		README.speedtest bayes_dump_to_trusted_networks check_whitelist convert_awl_dbm_to_sql \
+		desc_length.pl mboxsplit sa-stats.pl speedtest split_corpora test_extract triplets.pl
 DOCS=		BUGS CREDITS Changes INSTALL LICENSE NOTICE PACKAGING README STATUS TRADEMARK UPGRADE USAGE procmailrc.example
 DOCSSQL=	README README.awl README.bayes awl_mysql.sql awl_pg.sql bayes_mysql.sql bayes_pg.sql userpref_mysql.sql userpref_pg.sql
 DOCSCONTRIB=	mbox-to-check run-corpora run-masses
@@ -121,6 +124,10 @@
 	@${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
 
 post-install:
+	${MKDIR} ${DATADIR}/tools
+.for f in ${TOOLS}
+	${INSTALL} ${WRKSRC}/tools/${f} ${DATADIR}/tools
+.endfor
 	@${STRIP_CMD} ${PREFIX}/bin/spamc
 	@${INSTALL_SCRIPT} ${WRKDIR}/sa-spamd.sh ${PREFIX}/etc/rc.d/sa-spamd.sh
 	@[ -f ${PREFIX}/etc/mail/spamassassin/init.pre ] || \
Index: pkg-plist
===================================================================
RCS file: /home/ncvs/ports/mail/p5-Mail-SpamAssassin/pkg-plist,v
retrieving revision 1.28
diff -u -r1.28 pkg-plist
--- pkg-plist	6 May 2005 20:05:57 -0000	1.28
+++ pkg-plist	7 May 2005 07:48:03 -0000
@@ -79,6 +79,18 @@
 %%DATADIR%%/languages
 %%DATADIR%%/triplets.txt
 %%DATADIR%%/user_prefs.template
+%%DATADIR%%/tools/README.speedtest
+%%DATADIR%%/tools/bayes_dump_to_trusted_networks
+%%DATADIR%%/tools/check_whitelist
+%%DATADIR%%/tools/convert_awl_dbm_to_sql
+%%DATADIR%%/tools/desc_length.pl
+%%DATADIR%%/tools/mboxsplit
+%%DATADIR%%/tools/sa-stats.pl
+%%DATADIR%%/tools/speedtest
+%%DATADIR%%/tools/split_corpora
+%%DATADIR%%/tools/test_extract
+%%DATADIR%%/tools/triplets.pl
+@dirrm %%DATADIR%%/tools
 @dirrm %%DATADIR%%
 @dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Mail/SpamAssassin
 @unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/Mail 2>/dev/null || true

--------------080602030100040707050900--

--------------enig07BCC647E015B972F9B982A7
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (FreeBSD)

iD8DBQFCfHpOUFz01pkdgZURAs7cAKDUuriLSmRKs0o+yEcTZGy/XnpSsQCffSE1
PXqmNpyH6y5ghDSvYxanjBw=
=zrK+
-----END PGP SIGNATURE-----

--------------enig07BCC647E015B972F9B982A7--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?427C7A48.308>