THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
In order to do this, you essentially need to modify Makefile.PL, moving some code from the postamble to the constants section. The modified file is posted on this bugzilla report: http://bugzilla.spamassassin.org/show_bug.cgi?id=in bug 2955.
Here's how to do it yourself:
- Find the subroutine MY::contantsconstants. Just before the clean_MY_globals call, add the following code:
No Format push(@code, "PREPROCESS = \$(PERL) build/preprocessor"); my($repository); $repository = uc($SELF->{INSTALLDIRS}) || 'SITE'; foreach my $macro (qw(PREFIX SYSCONFDIR)) { push(@code, macro_def('I_' . $macro, macro_ref($repository . $macro))); }
2. In the following section (MY::postamble). Comment out (or remove the following):No Format foreach my $macro (qw(PREFIX SYSCONFDIR)) { push(@code, macro_def('I_' . $macro, macro_ref($repository . $macro))); }
3. Also remove the following line:No Format PREPROCESS = $(PERL) build/preprocessor
By: BretMiller