Subject: pkg/16422: update of package mail/p5-Mail-SpamAssassin (version 2.20)
To: None <gnats-bugs@gnats.netbsd.org>
From: Klaus Heinz <klaus.heinz@onlinehome.de>
List: netbsd-bugs
Date: 04/20/2002 03:50:02
>Number:         16422
>Category:       pkg
>Synopsis:       update of package mail/p5-Mail-SpamAssassin (version 2.20)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Fri Apr 19 18:50:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Klaus Heinz
>Release:        NetBSD 1.5.2
>Organization:
none
>Environment:
	done on NetBSD/i386 1.5.2

>Description:
	SpamAssassin 2.20 was released yesterday and this is an update for the
	existing package mail/p5-Mail-SpamAssassin.

	Please _test_ this as I changed the location of site-wide config
	files (see below).

	- at this time, the CPAN had not yet distributed version 2.20 of
	  SpamAssassin, but will likely have done so when you process this PR
	- changed DISTNAME
	- changed HOMEPAGE to http://www.spamassassin.org/
	- changed _commented_ MASTER_SITES to
	    http://www.spamassassin.org/released/
	- post-patch action in the Makefile:
	  - lib/Mail/SpamAssassin/SpamAssassin.pm now supports
	    __prefix__/share, so I removed this file from the action
	  - added the 'g' flag to the sed expression 
	  - added README and Makefile.PL to the list of files to patch
	  - added a new sed expression to convert /etc/mail to ${PREFIX}/etc.
	    The NetBSD package for the previous version 2.11 used
	    /etc/mail/spamassassin for site-wide config files as proposed
	    by the original author(s). This was done and not recorded in
	    the PLIST.
	    I changed this to a more (IMHO) NetBSD-like way of using
	    ${PREFIX}/etc/spamassassin. The directory and empty local.cf
	    will be created if not already existing and are also _not_
	    recorded in PLIST.
	  - added MESSAGE to indicate the change from /etc/mail/spamassassin
	
	- uploaded Mail-SpamAssassin-2.20.tar.gz from the MASTER_SITE to
	  ftp://ftp.netbsd.org/pub/NetBSD/packages/distfiles/
	- pklint complains about
	    WARN: "DEPENDS" has to appear earlier in Makefile.
	  This is probably caused by lang/perl5/buildlink.mk.
	- pkglint complains about
	    WARN: possible use of absolute pathname "/etc/mail..." in MESSAGE
	  This was done intentionally and I don't know how to avoid it.
>How-To-Repeat:
>Fix:
	unpack the following shar archive

------8<------ cut here --------------------------------------------
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	./p5-Mail-SpamAssassin/
#	./p5-Mail-SpamAssassin//DESCR
#	./p5-Mail-SpamAssassin//MESSAGE
#	./p5-Mail-SpamAssassin//Makefile
#	./p5-Mail-SpamAssassin//PLIST
#	./p5-Mail-SpamAssassin//distinfo
#
echo c - ./p5-Mail-SpamAssassin/
mkdir -p ./p5-Mail-SpamAssassin/ > /dev/null 2>&1
echo x - ./p5-Mail-SpamAssassin//DESCR
sed 's/^X//' >./p5-Mail-SpamAssassin//DESCR << 'END-of-./p5-Mail-SpamAssassin//DESCR'
XSpamAssassin is a mail filter to identify spam.
X
XUsing its rule base, it uses a wide range of heuristic tests on mail
Xheaders and body text to identify "spam", also known as unsolicited
Xcommercial email.
X
XThe spam-identification tactics used include header analysis, text
Xanalysis, blacklists and Razor.
X
XOnce identified, the mail can then be optionally tagged as spam for
Xlater filtering using the user's own mail user-agent application.
X
XSpamAssassin requires very little configuration; you do not need to
Xcontinually update it with details of your mail accounts, mailing list
Xmemberships, etc. It accomplishes filtering without this knowledge, as
Xmuch as possible.
X
XThe distribution provides a command line tool to perform filtering,
Xalong with Mail::SpamAssassin, a set of perl modules which implement a
XMail::Audit plugin, allowing SpamAssassin to be used in a Mail::Audit
Xfilter, or (possibly at some point) in a spam-protection proxy POP/IMAP
Xserver.
END-of-./p5-Mail-SpamAssassin//DESCR
echo x - ./p5-Mail-SpamAssassin//MESSAGE
sed 's/^X//' >./p5-Mail-SpamAssassin//MESSAGE << 'END-of-./p5-Mail-SpamAssassin//MESSAGE'
X===========================================================================
X$NetBSD$
X
XThe default directory for site-wide config files for SpamAssassin on
XNetBSD has changed from
X
X	/etc/mail/spamassassin
X
Xto
X
X	${PREFIX}/etc/spamassassin
X
XIf you have old config files, please move them to the new location.
X
X===========================================================================
END-of-./p5-Mail-SpamAssassin//MESSAGE
echo x - ./p5-Mail-SpamAssassin//Makefile
sed 's/^X//' >./p5-Mail-SpamAssassin//Makefile << 'END-of-./p5-Mail-SpamAssassin//Makefile'
X# $NetBSD: Makefile,v 1.2 2002/03/08 12:34:20 wiz Exp $
X#
X
XDISTNAME=	Mail-SpamAssassin-2.20
XPKGNAME=	p5-${DISTNAME}
XSVR4_PKGNAME=	p5msa
XCATEGORIES=	mail
X#MASTER_SITES=	http://www.spamassassin.org/released/
XMASTER_SITES=	${MASTER_SITE_PERL_CPAN:=Mail/}
X
XMAINTAINER=	packages@netbsd.org
XHOMEPAGE=	http://www.spamassassin.org/
XCOMMENT=	mail filter to identify spam
X
XDEPENDS+=	p5-Net-DNS-[0-9]*:../../net/p5-Net-DNS
X
XUSE_BUILDLINK_ONLY=	YES
XPERL5_PACKLIST=		${PERL5_SITEARCH}/auto/Mail/SpamAssassin/.packlist
X
Xpost-patch:
X	@(cd ${WRKSRC};							\
X	for f in README Makefile.PL lib/Mail/SpamAssassin/Conf.pm ; do \
X		${SED} -e "s,/usr/share,${PREFIX}/share,g" \
X		       -e "s,/etc/mail,${PREFIX}/etc,g" $$f > $$f.fixed && \
X		${MV} $$f.fixed $$f;					\
X	done)
X
Xdo-configure:
X	@cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${PERL5} Makefile.PL
X
Xpost-install:
X.for d in spamassassin spamassassin/sql spamassassin/spamd
X	${INSTALL_DATA_DIR} ${PREFIX}/share/doc/$d
X.endfor
X.for f in README procmailrc.example sample-nonspam.txt sample-spam.txt \
X    sql/README sql/spamassassin.sql spamd/README.spamd
X	${INSTALL_DATA} ${WRKSRC}/$f ${PREFIX}/share/doc/spamassassin/$f
X.endfor
X
X.include "../../lang/perl5/buildlink.mk"
X.include "../../mk/bsd.pkg.mk"
END-of-./p5-Mail-SpamAssassin//Makefile
echo x - ./p5-Mail-SpamAssassin//PLIST
sed 's/^X//' >./p5-Mail-SpamAssassin//PLIST << 'END-of-./p5-Mail-SpamAssassin//PLIST'
X@comment $NetBSD$
Xshare/doc/spamassassin/README
Xshare/doc/spamassassin/procmailrc.example
Xshare/doc/spamassassin/sample-nonspam.txt
Xshare/doc/spamassassin/sample-spam.txt
Xshare/doc/spamassassin/spamd/README.spamd
Xshare/doc/spamassassin/sql/README
Xshare/doc/spamassassin/sql/spamassassin.sql
Xshare/spamassassin/10_misc.cf
Xshare/spamassassin/20_body_tests.cf
Xshare/spamassassin/20_head_tests.cf
Xshare/spamassassin/20_uri_tests.cf
Xshare/spamassassin/25_body_tests_es.cf
Xshare/spamassassin/25_body_tests_pl.cf
Xshare/spamassassin/25_head_tests_pl.cf
Xshare/spamassassin/30_text_es.cf
Xshare/spamassassin/30_text_pl.cf
Xshare/spamassassin/40_spam_phrases.cf
Xshare/spamassassin/50_scores.cf
Xshare/spamassassin/60_whitelist.cf
Xshare/spamassassin/user_prefs.template
X@dirrm share/spamassassin
X@dirrm share/doc/spamassassin/sql
X@dirrm share/doc/spamassassin/spamd
X@dirrm share/doc/spamassassin
END-of-./p5-Mail-SpamAssassin//PLIST
echo x - ./p5-Mail-SpamAssassin//distinfo
sed 's/^X//' >./p5-Mail-SpamAssassin//distinfo << 'END-of-./p5-Mail-SpamAssassin//distinfo'
X$NetBSD: distinfo,v 1.2 2002/03/08 12:34:20 wiz Exp $
X
XSHA1 (Mail-SpamAssassin-2.20.tar.gz) = 03a4a4849e2d5f8851a8702df965a36b0a17aee8
XSize (Mail-SpamAssassin-2.20.tar.gz) = 249143 bytes
END-of-./p5-Mail-SpamAssassin//distinfo
exit

------8<------ cut here --------------------------------------------
>Release-Note:
>Audit-Trail:
>Unformatted:
 X-send-pr-version: 3.95