From nobody@FreeBSD.org  Thu Feb  8 15:40:54 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 1E09D16A40D
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  8 Feb 2007 15:40:53 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [69.147.83.33])
	by mx1.freebsd.org (Postfix) with ESMTP id 1086413C4CC
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  8 Feb 2007 15:40:53 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l18FeqZD049018
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 8 Feb 2007 15:40:52 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id l18Feqdt049017;
	Thu, 8 Feb 2007 15:40:52 GMT
	(envelope-from nobody)
Message-Id: <200702081540.l18Feqdt049017@www.freebsd.org>
Date: Thu, 8 Feb 2007 15:40:52 GMT
From: Matus UHLAR - fantomas<uhlar@fantomas.sk>
To: freebsd-gnats-submit@FreeBSD.org
Subject: spamassassin uses /var/lib/spamassassin directory but /var/lib doesn't exist on FreeBSD
X-Send-Pr-Version: www-3.0

>Number:         108934
>Category:       ports
>Synopsis:       mail/p5-Mail-SpamAssassin: spamassassin uses /var/lib/spamassassin directory but /var/lib doesn't exist on FreeBSD
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    clsung
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 08 15:50:22 GMT 2007
>Closed-Date:    Sat Jun 02 07:10:49 GMT 2007
>Last-Modified:  Sat Jun 02 07:10:49 GMT 2007
>Originator:     Matus UHLAR - fantomas
>Release:        4.11
>Organization:
GTS Nextra a.s. Slovakia
>Environment:
FreeBSD tic 4.11-RELEASE-p11 FreeBSD 4.11-RELEASE-p11 #2: Fri Jul  1 08:18:57 CEST 2005 root@tac:/shared1/rw/os/FreeBSD/i386/obj/RELENG_4_11/shared1/rw/os/FreeBSD/i386/src/RELENG_4_11/sys/i686_MP_squid_tunning i386

>Description:
spamassassin is by default built without specifying LOCALSTATEDIR, which
results into using /var/lib/spamassassin for its updates. However, the
/var/lib does not exists on FreeBSD, so alternate dir should probably be used.
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->perl 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Thu Feb 8 20:24:47 UTC 2007 
Responsible-Changed-Why:  
Over to maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=108934 

From: Michael Scheidell <scheidell@secnap.net>
To: bug-followup@FreeBSD.org,  uhlar@fantomas.sk
Cc:  
Subject: Re: ports/108934: mail/p5-Mail-SpamAssassin: spamassassin uses /var/lib/spamassassin
 directory but /var/lib doesn't exist on FreeBSD
Date: Wed, 14 Mar 2007 08:32:25 -0400

 I have tested SpamAssassin on 4.11, 5.3,5.4 and 5.5,   installs, 
 reinstalls and portsupgrade.
 
 I don't have a /var/lib directory and SpamAssassin works fine.
 
 Please explain when, where, and what fails with your spamassassin port.
 
 If it is difficult to duplicate, please include exact steps, step by 
 step needed to duplicate the error.
 
 
 
 -- 
 Michael Scheidell, CTO
 SECNAP Network Security Corporation
 ----------------------------------------------------------------- 
 This email has been scanned and certified safe by SpammerTrap(tm) 
 For Information please see http://www.spammertrap.com 
 ----------------------------------------------------------------- 

From: Michael Scheidell <scheidell@secnap.net>
To: Matus UHLAR - fantomas <uhlar@fantomas.sk>
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/108934: mail/p5-Mail-SpamAssassin: spamassassin uses /var/lib/spamassassin
 directory but /var/lib doesn't exist on FreeBSD
Date: Wed, 14 Mar 2007 08:53:38 -0400

 Matus UHLAR - fantomas wrote:
 > run sa-update. It will create
 > /var/lib/spamassassin/<version>/updates_spamassassin_org/ directory, where
 > it puts updated rules, if it founds them. spamassassin and spamd later check
 > these rules instead of those in /usr/local/share/spamassassin/50_scores.cf
 >
 > You may need older installation of spamassassin to verify this, I'm not sure
 > that 3.1.8 has some updates, but I was able to update rules for 3.1.7 at
 > least twice.
 >
 >   
 I think some of this was discussed on SpamAssassin list.
 If you actually let sa-update put the files in /var/lib/spamassassin, it 
 REPLACES original files.
 
 I think the suggestion was to run sa-update like this:
 
  sa-update --updatedir /usr/local/share/spamassassin
 
 my suggestion to patch sa-update to do that was not met with enthusiasm.
 
 try the above, things should work better, and I will look at patching 
 sa-update for the ports only.
 
 
 ----------------------------------------------------------------- 
 This email has been scanned and certified safe by SpammerTrap(tm) 
 For Information please see http://www.spammertrap.com 
 ----------------------------------------------------------------- 

From: Matus UHLAR - fantomas <uhlar@fantomas.sk>
To: Michael Scheidell <scheidell@secnap.net>
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/108934: mail/p5-Mail-SpamAssassin: spamassassin uses /var/lib/spamassassin directory but /var/lib doesn't exist on FreeBSD
Date: Wed, 14 Mar 2007 13:46:45 +0100

 On 14.03.07 08:32, Michael Scheidell wrote:
 > I have tested SpamAssassin on 4.11, 5.3,5.4 and 5.5,   installs, 
 > reinstalls and portsupgrade.
 > 
 > I don't have a /var/lib directory and SpamAssassin works fine.
 > 
 > Please explain when, where, and what fails with your spamassassin port.
 > 
 > If it is difficult to duplicate, please include exact steps, step by 
 > step needed to duplicate the error.
 
 run sa-update. It will create
 /var/lib/spamassassin/<version>/updates_spamassassin_org/ directory, where
 it puts updated rules, if it founds them. spamassassin and spamd later check
 these rules instead of those in /usr/local/share/spamassassin/50_scores.cf
 
 You may need older installation of spamassassin to verify this, I'm not sure
 that 3.1.8 has some updates, but I was able to update rules for 3.1.7 at
 least twice.
 
 -- 
 Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
 Warning: I wish NOT to receive e-mail advertising to this address.
 Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
 Quantum mechanics: The dreams stuff is made of. 

From: Matus UHLAR - fantomas <uhlar@fantomas.sk>
To: Michael Scheidell <scheidell@secnap.net>
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/108934: mail/p5-Mail-SpamAssassin: spamassassin uses /var/lib/spamassassin directory but /var/lib doesn't exist on FreeBSD
Date: Sun, 18 Mar 2007 16:06:03 +0100

 > Matus UHLAR - fantomas wrote:
 > >run sa-update. It will create
 > >/var/lib/spamassassin/<version>/updates_spamassassin_org/ directory, where
 > >it puts updated rules, if it founds them. spamassassin and spamd later 
 > >check
 > >these rules instead of those in /usr/local/share/spamassassin/50_scores.cf
 > >
 > >You may need older installation of spamassassin to verify this, I'm not 
 > >sure
 > >that 3.1.8 has some updates, but I was able to update rules for 3.1.7 at
 > >least twice.
 
 On 14.03.07 08:53, Michael Scheidell wrote:
 > I think some of this was discussed on SpamAssassin list.
 > If you actually let sa-update put the files in /var/lib/spamassassin, it 
 > REPLACES original files.
 
 original files are in /usr/local/etc/mail/spamassassin/, but if there are any
 updates in $LOCALSTATEDIR/..., spamassassin and spamd ignore those from
 installation.
 
 > I think the suggestion was to run sa-update like this:
 > 
 > sa-update --updatedir /usr/local/share/spamassassin
 
 that is possible, but I prefer to keep files installed with spamassassin
 available. It's good to use updates directory in /var, but
 /var/lib/spamassassin/ seems not to be the best idea for FreeBSD...
 
 > my suggestion to patch sa-update to do that was not met with enthusiasm.
 > 
 > try the above, things should work better, and I will look at patching 
 > sa-update for the ports only.
 
 actually, I don't mind have /var/lib/spamassassin on my filesystem, I just
 think that's not good idea because of FreeBSD's different directory layout.
 for ports, you could just specify localstatedir when configuring
 SpamAssassin. However as I said, I would prefer different directory for
 updates than the one in /usr/local/...
 
 -- 
 Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
 Warning: I wish NOT to receive e-mail advertising to this address.
 Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
 Atheism is a non-prophet organization. 

From: Michael Scheidell <scheidell@secnap.net>
To: Matus UHLAR - fantomas <uhlar@fantomas.sk>
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/108934: mail/p5-Mail-SpamAssassin: spamassassin uses /var/lib/spamassassin
 directory but /var/lib doesn't exist on FreeBSD
Date: Mon, 19 Mar 2007 18:44:07 -0400

 Matus UHLAR - fantomas wrote:
 > actually, I don't mind have /var/lib/spamassassin on my filesystem, I just
 > think that's not good idea because of FreeBSD's different directory layout.
 > for ports, you could just specify localstatedir when configuring
 > SpamAssassin. However as I said, I would prefer different directory for
 > updates than the one in /usr/local/...
 >
 >   
 
 I am looking at this again (I want to patch dependencies for gnupg)
 
 When sa-update first came out, and I let it use the default 
 /var/lib/spamassassin, SA broke
 (since sa looks for: localrules, state dir, then site dir.  if it finds 
 state dir (var/lib) it doesn't even load site dir (/usr/local/share)
 This cause problems originally. (missing files, missing rules, etc)
 
 however, by using my method (--updatedir 
 /usr/local/share/spamassassin).  it seems to load BOTH sets (uses too 
 much ram)
 
 patching will need to be made, looking into it now.
 
 Do you suggest /usr/local/lib/spamassassin ??
 
 I think I should also do a postinstall, ifexists /var/lib  and move it 
 to /usr/local/lib.
 
 do you think that would work?  do you want to test out the patches 
 before I commit them?
 
 
 ----------------------------------------------------------------- 
 This email has been scanned and certified safe by SpammerTrap(tm) 
 For Information please see http://www.spammertrap.com 
 ----------------------------------------------------------------- 

Date: Mon, 16 Apr 2007 07:00:48 -0400
From: Michael Scheidell <scheidell@secnap.net>

 Will change to /var/db with SpamAssassin 3.20.
 Don't want to make a change like this or submit new port till a major 
 code change.


From: Michael Scheidell <scheidell@secnap.net>
To: Matus UHLAR - fantomas <uhlar@fantomas.sk>
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/108934: mail/p5-Mail-SpamAssassin: spamassassin uses /var/lib/spamassassin
 directory but /var/lib doesn't exist on FreeBSD
Date: Mon, 07 May 2007 17:10:52 -0400

 Update applied to to SpamAssassin 3.2.0
 bugs: please mark bug closed.
 > run sa-update. It will create
 > /var/lib/spamassassin/<version>/updates_spamassassin_org/ directory, where
 > it puts updated rules, if it founds them. spamassassin and spamd later check
 > these rules instead of those in /usr/local/share/spamassassin/50_scores.cf
 >
 > You may need older installation of spamassassin to verify this, I'm not sure
 > that 3.1.8 has some updates, but I was able to update rules for 3.1.7 at
 > least twice.
 >
 >   
 
 _________________________________________________________________________
 This email has been scanned and certified safe by SpammerTrap(tm). 
 For Information please see http://www.spammertrap.com
 _________________________________________________________________________
Responsible-Changed-From-To: perl->clsung 
Responsible-Changed-By: clsung 
Responsible-Changed-When: Fri May 25 08:49:05 UTC 2007 
Responsible-Changed-Why:  
I'll watch this. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=108934 

From: "Michael Scheidell" <scheidell@secnap.net>
To: <bug-followup@FreeBSD.org>,
	<uhlar@fantomas.sk>
Cc:  
Subject: Re: ports/108934: mail/p5-Mail-SpamAssassin: spamassassin uses /var/lib/spamassassin directory but /var/lib doesn't exist on FreeBSD
Date: Fri, 25 May 2007 23:07:19 -0400

 This is a multi-part message in MIME format.
 
 ------=_NextPart_000_0002_01C79F21.71A64E10
 Content-Type: text/plain;
 	charset="iso-8859-1"
 Content-Transfer-Encoding: quoted-printable
 
 PR: please close bug, will be fixed in SA 3.20 Update (submitted and =
 updated tonight)
 http://www.freebsd.org/cgi/query-pr.cgi?pr=3Dports/112502
 
 ------=_NextPart_000_0002_01C79F21.71A64E10
 Content-Type: text/html;
 	charset="iso-8859-1"
 Content-Transfer-Encoding: quoted-printable
 
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
 <HTML><HEAD>
 <META http-equiv=3DContent-Type content=3D"text/html; =
 charset=3Diso-8859-1">
 <META content=3D"MSHTML 6.00.2900.3086" name=3DGENERATOR>
 <STYLE></STYLE>
 </HEAD>
 <BODY bgColor=3D#ffffff>
 <DIV><FONT face=3DArial size=3D2>PR: please close bug, will be fixed in =
 SA 3.20=20
 Update (submitted and updated tonight)</FONT></DIV>
 <DIV><FONT face=3DArial size=3D2><A=20
 href=3D"http://www.freebsd.org/cgi/query-pr.cgi?pr=3Dports/112502">http:/=
 /www.freebsd.org/cgi/query-pr.cgi?pr=3Dports/112502</A></FONT></DIV>
 <DIV>&nbsp;</DIV></BODY></HTML>
 
 ------=_NextPart_000_0002_01C79F21.71A64E10--
 
State-Changed-From-To: open->closed 
State-Changed-By: clsung 
State-Changed-When: Sat Jun 2 07:10:47 UTC 2007 
State-Changed-Why:  
Closed by ports/112502, SA 3.2 

http://www.freebsd.org/cgi/query-pr.cgi?pr=108934 
>Unformatted:
