after a clean install of SA 317, my DATADIR ((...)/SA/Dist/)
contains:
What's this "DATADIR"? Are you referring to what would normally be
something like /var/lib/spamassassin/ ?
DATADIR is what i've specified as my DATADIR @ build time.
from (distro)/3.1/README:
"File Locations:
SpamAssassin will look in a number of areas to find the default
configuration files that are used. The "__*__" text are variables
whose value you can see by looking at the first several lines of the
"spamassassin" or "spamd" scripts.
They are set on install time and can be overridden with the Makefile.PL
command line options DATADIR (for __def_rules_dir__) and CONFDIR (for
__local_rules_dir__). If none of these options were given,
FHS-compliant
locations based on the PREFIX (which becomes __prefix__) are chosen.
These are:
__prefix__ __def_rules_dir__ __local_rules_dir__
-------------------------------------------------------------------------
/usr /usr/share/spamassassin /etc/mail/spamassassin
/usr/local /usr/local/share/spamassassin /etc/mail/spamassassin
/opt/$DIR /opt/$DIR/share/spamassassin
/etc/opt/mail/spamassassin
$DIR $DIR/share/spamassassin
$DIR/etc/mail/spamassassin
"
unknown reason,
The reason is that that's my understanding of the documentation.
til now, with "just" sa-update of updates.spamassain.org, i've been
using:
sa-update \
--channel updates.spamassassin.org \
--updatedir /var/SA/Dist
i.e., defining --updatedir=$DATADIR, and all's been working fine.
It may well be incorrect.
It may obvious to all others.
Not to me.
Hence, I'm asking a question.
you're using an --updatedir that
already has a bunch of rules in it you've now got two copies of the
rulesets in the same directory that you are trying load. Not good.
ok.
Either don't try to override the --updatedir, or make sure that
whatever your "DATADIR" is (what should be something like
/usr/share/spamassassin maybe?) isn't the same as your --updatedir
(which would normally be /var/lib/spamassassin).
...
No, not at all. There should be no "plain" ruleset files in the
directory that contains all of the channel directories and .cf files.
ok.
given my build config of:
perl Makefile.PL \
PREFIX=/usr/local/spamassassin \
DATADIR=/var/SA/Dist \
CONFDIR=/var/SA/Local \
ENABLE_SSL="yes" \
LDDLFLAGS="-L/usr/local/ssl/lib -lssl -lcrypto" \
LDFLAGS="-bind_at_load -L/usr/local/ssl/lib -lssl -lcrypto
-ldl" \
INC="-I/usr/local/ssl/include"
and that i invoke sa-update with:
sa-update \
--channelfile /var/SA/sa-update-channels.txt \
--updatedir /var/SA/Dist \
--gpgkey 856AA88A
can you please specifically clarify/suggest, should I:
(a) *not* define --updatedir
(b) define --updatedir=$DATADIR
(c) define --updatedir=$CONFDIR
(d) define --updatedir=$somewhereelse
in other words, where _should_ the updates now go?
/"\
\ / ASCII Ribbon Campaign
X against HTML email, vCards
/ \ & micro$oft attachments
[GPG] OpenMacNews at gmail dot com
fingerprint: 50C9 1C46 2F8F DE42 2EDB D460 95F7 DDBD 3671 08C6