I've read How do you package your programs? and a buncha other nodes regarding installation and distribution and haven't found quite what I'm looking for.
Basically, I would like to install a set of scripts, man pages, CGI programs, and compiled (C) wrapper executables for setuid purposes. I'd like
- the stuff that needs to be in people's PATHs to go into $PREFIX/bin and its (processed) POD in $PREFIX/man/man1,
- the stuff that doesn't (like the setuid wrappers, the scripts that need to get wrapped, and the stuff that runs out of cron) to go in $PREFIX/sbin and its POD in $PREFIX/man/man1m,
- the configuration files for all this to go in $PREFIX/etc, and
- the CGI programs (if Apache is installed) to go in $SERVER_ROOT/cgi-bin.
ExtUtils::MakeMaker seems ill-suited for this. It wants to put everything either in $PREFIX/bin (POD in $PREFIX/man/man1) or $PREFIX/lib (POD in $PREFIX/man/man3). It also wants to make modules rather than bundles of scripts. While modular programming is laudable (and I did actually split out much of the functionality into modules), installing applications rather than modules seems beyond the scope of MakeMaker. And Module::Build doesn't seem to understand this either.
I suppose what I'm looking for is a more general-purpose installation tool along the lines of GNU Configure, but less complicated to use and more suited to Perl. Any suggestions?
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.