Date: Sat, 16 May 2009 08:30:39 GMT From: Michael Scheidell <scheidell@secnap.net> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/134574: [MAINTAINER UPDATE] Fix for mail/p5-Mail-SpamAssassin: sa-update channel Message-ID: <200905160830.n4G8UdZV034160@www.freebsd.org> Resent-Message-ID: <200905160840.n4G8e1W4087113@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 134574 >Category: ports >Synopsis: [MAINTAINER UPDATE] Fix for mail/p5-Mail-SpamAssassin: sa-update channel >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Sat May 16 08:40:01 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Michael Scheidell >Release: all of them >Organization: SECNAP Network Security >Environment: na >Description: if a user does an update on p5-Mail-SpamAssassin from an older version (3.2.5) sa-update channel does not get updated. older versions (/var/db/spamassassin/3.002005/updates_spamassassin_org/MIRRORED.BY) had this in it: (from june 2008) test mirror: zone, cached via Coral #http://buildbot.spamassassin.org.nyud.net:8090/updatestage/ http://spamassassin.kludge.org/updates/ see: http://forums.freebsd.org/archive/index.php/t-3521.html sa-update would fail to find updates spamassassin.kludge.org no longer exists) if sa-update files to find host, it won't update. and won't update MIRRORED.BY >How-To-Repeat: check old mirrored by. replace mirrored.by with the above run sa-update. >Fix: remove old mirrored.by and sa-update will replace mirrored.by and do the update. new mirrored.by (today) has this: # test mirror: zone, cached via Coral #http://buildbot.spamassassin.org.nyud.net:8090/updatestage/ http://daryl.dostech.ca/sa-update/asf/ weight=5 http://www.sa-update.pccc.com/ weight=5 these patches to port will delete old MIRRORED.BY during (re) install if sa-update fails with rc==4 only issue would be an integrator with a custom MIRRORED.BY (and a failure) diff -bBru /var/tmp/SA/ ./ diff -bBru /var/tmp/SA/Makefile ./Makefile --- /var/tmp/SA/Makefile 2009-03-19 13:11:27.000000000 -0400 +++ ./Makefile 2009-05-16 04:26:41.000000000 -0400 @@ -7,7 +7,7 @@ PORTNAME= Mail-SpamAssassin PORTVERSION= 3.2.5 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= mail perl5 MASTER_SITES= ${MASTER_SITE_APACHE:S/$/:apache/} ${MASTER_SITE_PERL_CPAN:S/$/:cpan/} MASTER_SITE_SUBDIR= spamassassin/source/:apache Mail/:cpan diff -bBru /var/tmp/SA/pkg-install ./pkg-install --- /var/tmp/SA/pkg-install 2007-08-13 18:33:32.000000000 -0400 +++ ./pkg-install 2009-05-16 04:26:25.000000000 -0400 @@ -31,6 +31,11 @@ if yesno "Do you wish to run sa-update to fetch new rules" "N";then ${PKG_PREFIX}/bin/sa-update + if [ $? -eq 4 ];then + # rc=4 means host not found, might be old mirrors. + rm -rf /var/db/spamassassin/3*/updates_spamassassin_org/MIRRORED.BY + ${PKG_PREFIX}/bin/sa-update + fi fi grep '^load.*Rule2XSBody' ${PKG_PREFIX}/etc/mail/spamassassin/v320.pre > /dev/null if [ $? -eq 0 ];then >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905160830.n4G8UdZV034160>