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 
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.

> > 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 :)

Cheers,
Malte

-- 
[SGT] Simon G. Tatham: "How to Report Bugs Effectively"
      <http://www.chiark.greenend.org.uk/~sgtatham/bugs.html>
[ESR] Eric S. Raymond: "How To Ask Questions The Smart Way"
      <http://www.catb.org/~esr/faqs/smart-questions.html>

Reply via email to