You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by Quanah Gibson-Mount <qu...@zimbra.com> on 2014/05/05 23:11:02 UTC

Re: Best practice for packaging rules

--On Friday, October 25, 2013 6:04 PM -0700 Quanah Gibson-Mount 
<qu...@zimbra.com> wrote:


Ok, so I want to finally get Zimbra's rules packaging and SA layout correct.

To rehash:  We run SpamAsassin from Amavis.  We currently run with the 
following values:

$DEF_RULES_DIR   = '/opt/zimbra/conf/spamassassin';
$LOCAL_RULES_DIR = '/opt/zimbra/conf/spamassassin';
$LOCAL_STATE_DIR = '/opt/zimbra/data/spamassassin';

I need everything to be under /opt/zimbra, and I understand that having the 
LOCAL_RULES_DIR match DEF_RULES_DIR is incorrect, and I need a solution for 
LOCAL_STATE_DIR.

Right now, I build SA with:

PREFIX=/opt/zimbra/zimbramon
DATADIR=/opt/zimbra/conf/spamassassin
CONFDIR=/opt/zimbra/conf/spamassassin
LOCALSTATEDIR=/opt/zimbra/data/spamassassin;

Makefile.PL notes:

  'DEFRULESDIR',      # A synonym for 'DATADIR'.
  'LOCALRULESDIR',    # " "       "   'CONFDIR'.
  'LOCALSTATEDIR',    # normally determined based on $*PREFIX.


So I believe what I want is:

DATADIR=/opt/zimbra/conf/spamassassin
CONFDIR=/opt/zimbra/data/spamassassin

However, I'm stuck exactly on what I should do for LOCALSTATEDIR.  It 
cannot be based off of /opt/zimbra/zimbramon, as that's only writeable by 
root.  Would:

LOCALSTATEDIR=/opt/zimbra/data/spamassassin/3.004.000 (to reflect 3.4.0 as 
the release) be correct?

Thanks!

--Quanah

--

Quanah Gibson-Mount
Server Architect
Zimbra, Inc.
--------------------
Zimbra ::  the leader in open source messaging and collaboration

Re: Best practice for packaging rules

Posted by Quanah Gibson-Mount <qu...@zimbra.com>.

--On May 5, 2014 at 2:11:02 PM -0700 Quanah Gibson-Mount 
<qu...@zimbra.com> wrote:

> --On Friday, October 25, 2013 6:04 PM -0700 Quanah Gibson-Mount
> <qu...@zimbra.com> wrote:

> PREFIX=/opt/zimbra/zimbramon
> DATADIR=/opt/zimbra/conf/spamassassin
> CONFDIR=/opt/zimbra/conf/spamassassin
> LOCALSTATEDIR=/opt/zimbra/data/spamassassin;

Decided to go with:

PREFIX=/opt/zimbra/zimbramon
DATADIR=/opt/zimbra/data/spamassassin/rules
CONFDIR=/opt/zimbra/data/spamasssassin/localrules
LOCALSTATEDIR=/opt/zimbra/data/spamassassin/state

--Quanah

-- 
Quanah Gibson-Mount
Server Architect
Zimbra, Inc
--------------------
Zimbra ::  the leader in open source messaging and collaboration