In one place in sa-update.raw the path /var/lib/spamassassin is hardcoded. I think that hardcoded path ought to be replaced with @@LOCAL_STATE_DIR@@.
In another place @@LOCAL_STATE_DIR@@/spamassassin is used. As far as I can see that should be @@LOCAL_STATE_DIR@@ only. A patch against sa-update.raw from SpamAssassin 3.1.7 is attached. BTW, I tried to create a Bugzilla account but I didn't get the confirmation mail.
$OpenBSD: patch-sa-update_raw,v 1.1 2006/08/10 18:24:45 steven Exp $ --- sa-update.raw.orig Mon Oct 9 19:34:35 2006 +++ sa-update.raw Sun Oct 22 20:36:01 2006 @@ -1225,7 +1225,7 @@ Options: --updatedir path Directory to place updates, defaults to the SpamAssassin site rules directory (def: - /var/lib/spamassassin/<version>) + @@LOCAL_STATE_DIR@@/<version>) --channel channel Retrieve updates from this channel Use multiple times for multiple channels @@ -1263,7 +1263,7 @@ Update archives are verified by default By default, C<sa-update> will use the system-wide rules update directory: - @@LOCAL_STATE_DIR@@/spamassassin/@@VERSION@@ + @@LOCAL_STATE_DIR@@/@@VERSION@@ If the updates should be stored in another location, specify it here.
