Click here to get back home

ExtUtils::MakeMaker installation question

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
ExtUtils::MakeMaker installation question patrick.leboutillier@gmail.com 01-15-2005
Posted by patrick.leboutillier@gmail.com on January 15, 2005, 11:38 am
Please log in for more thread options
Hi all,

Is there a way, using ExtUtils::MakeMaker, to install file anywhere on
the file system?

I have written this module that comes with a script. The script is
installed properly in /usr/bin when I specify it in the EXE_FILES
section. But this script can also be used as a daemon/service.

What I would like to do is install the service script in
/etc/init.d/<my_script>.
I would also like to create a configuration directory
(/etc/<my_script>/conf.d) and place a sample config file in there.
Anyone know if this can be dono?

Thanks,

Patrick LeBoutillier



Posted by Slaven Rezic on January 15, 2005, 11:43 pm
Please log in for more thread options

> Hi all,
>
> Is there a way, using ExtUtils::MakeMaker, to install file anywhere on
> the file system?
>
> I have written this module that comes with a script. The script is
> installed properly in /usr/bin when I specify it in the EXE_FILES
> section. But this script can also be used as a daemon/service.
>
> What I would like to do is install the service script in
> /etc/init.d/<my_script>.
> I would also like to create a configuration directory
> (/etc/<my_script>/conf.d) and place a sample config file in there.
> Anyone know if this can be dono?
>

You can add arbitrary makefile rules in the postamble section of your
Makefile.PL:

sub MY::postamble {
if ($^O eq 'linux') { # as the examples above look OS-dependent
<<'EOF';
install::
        cp something /etc/init.d
EOF
} else {
"";
}
}

Regards,
Slaven

--
Slaven Rezic - slaven <at> rezic <dot> de

tksm - Perl/Tk program for searching and replacing in multiple files
http://ptktools.sourceforge.net/#tksm


Similar ThreadsPosted
ExtUtils::MakeMaker December 30, 2006, 9:06 am
Setting file permissions in ExtUtils::MakeMaker January 25, 2005, 5:15 am
extutils::MakeMaker trying to portability build a shared lib July 9, 2007, 4:36 pm
Passing Environment and ExtUtils::MakeMaker options to CPAN methods August 5, 2005, 8:42 am
Question on platform dependency of ExtUtils::Command::MM (file globbing) December 17, 2006, 7:49 am
CPAN module local installation question July 12, 2006, 4:49 am
ANNOUNCE: ExtUtils-ModuleMaker-0.43 and ExtUtils-ModuleMaker-PBP-0.08 October 1, 2005, 3:48 pm
ANNOUNCE: ExtUtils-ModuleMaker-0.43 and ExtUtils-ModuleMaker-PBP-0.08 October 1, 2005, 3:51 pm
Help needed with MakeMaker August 15, 2005, 2:37 pm
ANNOUNCE: ExtUtils-ModuleMaker-0.33 July 10, 2005, 2:25 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap