pileofrogs has asked for the wisdom of the Perl Monks concerning the following question:
I've got a module that I'm getting ready for CPAN (see Module Idea) and I have something you might be able to help me with. The module implements a particular method of testing if your web servers are working. I've written a nagios plugin that uses this module and I want to include it with my module.
My question is, what's the best way to include something like this?
First of all, you can use the module without the nagios plugin, so you might not want me to install it at all.
Also, it's not a 'binary' or a 'script' that goes into /usr/bin or a similer directory. Its specific to nagios and goes into /usr/lib/nagios/plugins on my linux distro, and it probably goes elsewhere (/usr/local/nagios/plugins?) on other people's setup.
What's the best way to find out if make install or Build install should install this nagios plugin at all?
What's the best way to figure where to install it, if it should be installed?
Right now, my best idea is to search through a list of known nagios plugin directories, and if one is found, install it there. If none are found, don't install the plugin.
Thanks!
-Pileofrogs
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Distribution Question
by lima1 (Curate) on Aug 26, 2006 at 13:04 UTC | |
by pileofrogs (Priest) on Aug 26, 2006 at 18:54 UTC |