6 Jul 09:53
Packaging a CGI with modules?
From: MJ Ray <mjr <at> phonecoop.coop>
Subject: Packaging a CGI with modules?
Newsgroups: gmane.linux.debian.devel.perl
Date: 2007-07-06 07:54:52 GMT
Subject: Packaging a CGI with modules?
Newsgroups: gmane.linux.debian.devel.perl
Date: 2007-07-06 07:54:52 GMT
Perl sages, What is the recommended way to package a CGI with its own modules? This seems not very well-documented: not just for debian, but generally. I'm using MakeMaker because it seems to be halfway portable. As well as having ITP'd koha, I am an upstream developer of it. Upstream, I am setting WriteMakefile()'s PM to move the files into good locations - for example, I'm currently putting the CGIs in $(INST_LIB)/koha/cgi-bin - and I intend to mv them with debian/rules to meet policy. Is that the best MakeMaker-definable location for them to start in? Also, I'm intending to use prompt() to obtain values to generate configuration files. Is there a slick way to get debconf to supply prompt() answers, should I rerewrite the config file from post-inst, or something else? Any answers to the above or any pointers to stuff I've not found would be very appreciated. Thanks, -- -- MJR/slef My Opinion Only: see http://people.debian.org/~mjr/ Please follow http://www.uk.debian.org/MailingLists/#codeofconduct(Continue reading)
MJ, Gunnar, Martin, what MJ is trying to do may be awkward to achieve with
MakeMaker, but it's a breeze with Module::Build (don't know about Module::
Install, but I guess it can do it easily, too).
For example, look at this package of mine, which can be installed
"manually" via Module::Build but also has debian/ infrastructure built on
top of that:
RSS Feed