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?