Malte S. Stretz wrote:
On Thursday 29 July 2004 16:39 CET Ruslan U. Zakirov wrote:

Malte S. Stretz wrote:

On Wednesday 28 July 2004 20:44 CET Michael G Schwern wrote:

2) Instead of putting config files in /etc, make the config files a
.pm file and install it like one.  See Net::Config as an example.

/etc is one of the cases. App can have DATADIR, LOGDIR and other.


SpamAssassin also uses /usr/share/spamassassin if that's what you mean with
Yes, that is.

DATADIR. Trust me, you won't find a more portable hack to do things like this than the SA Makefile.PL ;-) It works with various versions of EU::MM and even on Windows and halfways on VMS.
I see. It's impressive.



If that doesn't work for you, have a look at the current
Mail::SpamAssassin Makefile.PL. It's horrible, it's huge, but it works
with /etc, even guesses reasonable defaults.

Just a thought something similar could be integrated into standalone module like Module::Install::Application(or something else). I don't think that I can do it.


I planned to port SpamAssassin to Module::Build within the next half year. If I find that there's anything missing while I do so, I'll probably create some modules for that. But that won't happen within the near future :)
May be I should look at M::B too. As I can see from MOTIVATION section this module is more wellcome. Also I can wait for port of SpamAssassin, I think users wouldn't die because of two *.in files ;)


Cheers, Malte




Reply via email to