And how do I hook this subroutine into Makefile.PL so that typing "perl
Makefile.PL will insert the needed lines into the Makefile?  Or do I need to
add another step to the normal installation procedure?

I don't like using /usr/local/etc/http-webtest either, but I don't think it
is appropriate to install a subdirectory structure in
/usr/lib/perl5/site_perl/5.005/HTTP - this seems reserved for .pm files.  At
least /usr/local/etc/http-webtest will persist even after an upgrade to perl
v 6.0.  The only problem with that directory would be if another app uses
/usr/local/etc/http-webtest, which seems unlikely.  Or is your point that
even the mere presence of a subdirectory in /usr/local/etc give MYSQL
problems?

HTTP::Webtest only works on Unix and porting it to other OSes is more work
than I (or anyone else, I suspect) would be willing to take on.  Good point,
though, about using File::Spec

[EMAIL PROTECTED]            RayCosoft
Perl/Java/SQL/Unix software engineering    www.unixscripts.com
www.zipcon.net/~starfire/home                  Seattle, WA, USA
----- Original Message -----
From: "Andreas J. Koenig" <[EMAIL PROTECTED]>
To: "Richard Anderson" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Sunday, December 10, 2000 12:18 PM
Subject: Re: MakeMaker question


> >>>>> On Sun, 10 Dec 2000 08:26:17 -0800, "Richard Anderson"
<[EMAIL PROTECTED]> said:
>
>  > I am preparing a module for CPAN release.  There is a subdirectory tree
>  > that should be copied recursively to /usr/local/etc when "make install"
>  > is typed.  I assume that I should write a perl script that does the
>  > copy, but I don't see anything in the ExtUtils::MakeMaker man page that
>  > lets me indicate that this script should be run during "make install".
>  > The PL_FILES attribute looks promising, but I don't think this does
>  > what I need.
>
> PL_FILES isn't it. AFAIR, you need to define a subroutine that adds
> the necessary lines to the Makefile. Something like
>
> sub MY::postamble {
>         return qq{
> install::
>         $(CP) foo /usr/local/etc/http-webtest/
>         $(CP) bar /usr/local/etc/http-webtest/
> };
> }
>
> Please consider using File::Spec instead of hardcoded slashes as
> directory separators and be warned that the user really needs a chance
> to decide if he considers /usr/local/etc/ being the right place. mysql
> for example puts its databases there, nessus puts its configuration
> there, and when I run
>
>     mysqlshow nessus
>
> I do get a very useless answer. Annoys me.
>
> --
> andreas
>

Reply via email to