From owner-freebsd-perl@FreeBSD.ORG Sat May 7 08:20:34 2005 Return-Path: Delivered-To: freebsd-perl@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C0EA516A4D8 for ; Sat, 7 May 2005 08:20:34 +0000 (GMT) Received: from smtp815.mail.sc5.yahoo.com (smtp815.mail.sc5.yahoo.com [66.163.170.1]) by mx1.FreeBSD.org (Postfix) with SMTP id 893D543D6D for ; Sat, 7 May 2005 08:20:34 +0000 (GMT) (envelope-from noackjr@alumni.rice.edu) Received: from unknown (HELO optimator.noacks.org) (noacks@swbell.net@70.240.205.64 with login) by smtp815.mail.sc5.yahoo.com with SMTP; 7 May 2005 08:20:34 -0000 Received: from localhost (localhost [127.0.0.1]) by optimator.noacks.org (Postfix) with ESMTP id 2BF2E612C for ; Sat, 7 May 2005 03:20:33 -0500 (CDT) Received: from optimator.noacks.org ([127.0.0.1]) by localhost (optimator.noacks.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 48378-01 for ; Sat, 7 May 2005 03:20:31 -0500 (CDT) Received: from compgeek.noacks.org (compgeek [192.168.1.10]) by optimator.noacks.org (Postfix) with ESMTP id 19F4560D5 for ; Sat, 7 May 2005 03:20:31 -0500 (CDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) by compgeek.noacks.org (8.13.3/8.13.3) with ESMTP id j478KU8T042901 for ; Sat, 7 May 2005 03:20:30 -0500 (CDT) (envelope-from noackjr@alumni.rice.edu) Message-ID: <427C7A48.308@alumni.rice.edu> Date: Sat, 07 May 2005 03:20:24 -0500 From: Jonathan Noack User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050428) X-Accept-Language: en-us, en MIME-Version: 1.0 To: perl@FreeBSD.org X-Enigmail-Version: 0.91.0.0 OpenPGP: id=991D8195; url=http://www.noacks.org/cert/noackjr.asc Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig07BCC647E015B972F9B982A7" X-Virus-Scanned: amavisd-new at noacks.org Subject: install spamassassin tools? X-BeenThere: freebsd-perl@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: noackjr@alumni.rice.edu List-Id: maintainer of a number of perl-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 May 2005 08:20:34 -0000 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--