Bug 1089 - patches needed to do a decent package install
Summary: patches needed to do a decent package install
Status: RESOLVED DUPLICATE of bug 1075
Alias: None
Product: Spamassassin
Classification: Unclassified
Component: Rules (show other bugs)
Version: 2.42
Hardware: All other
: P2 normal
Target Milestone: ---
Assignee: SpamAssassin Developer Mailing List
URL: http://www.openbsd.org/cgi-bin/cvsweb...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-09 23:05 UTC by Han Boetes
Modified: 2002-10-10 00:33 UTC (History)
0 users



Attachment Type Modified Status Actions Submitter/CLA Status

Note You need to log in before you can comment on or make changes to this bug.
Description Han Boetes 2002-10-09 23:05:27 UTC
To make a decent package install  on  both OpenBSD and Mandrake-linux: So I 
assume it applies to all platforms that do a fake install, I have to do the following:

SAMPLE_CONFIG_DIR=      ${PREFIX}/share/examples/SpamAssassin
INSTALL_TARGET=         
LOCAL_RULES_DIR=${WRKINST}${SAMPLE_CONFIG_DIR} install

${WRKINST} is the fake install dir.
Otherwise the make install target will install local.cf in /etc/somewhere 

This results in the  rules that have the wrong comments. Fixed by:
post-patch:
        perl -pi -e "s#\@\@LOCAL_RULES_DIR\@\@#${SAMPLE_CONFIG_DIR}#" 
${WRKSRC}/rules/*
Comment 1 Justin Mason 2002-10-10 08:33:12 UTC
Hi Han,

this is basically a duplicate of bug 1075.  I've just checked in a fix
for that bug (and this) by changing the Makefile code instead. 
It's best to track discussion on that bug instead of here.

http://bugzilla.spamassassin.org/show_bug.cgi?id=1075

*** This bug has been marked as a duplicate of 1075 ***