[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Handling config files



Antony Gelberg wrote:
> Hi all,
>
> I've got a Perl app which I'm trying to package up, generically, and for
> Debian at the same time.  I've been in #d-p a bit and had good help, but
> it's quiet ATM so I thought I'd write here.
>
> My package is nearly ready, except:
> dpkg-deb: conffile `etc/myprogrc' does not appear in package
>
> This is fair comment as I don't handle installation of said file in
> Makefile.PL.  I'm trying to use MakeMaker rather than dh_install, to
> make the package more generic.  Is there a directive I can include in
> Makefile.PL to get this file installed to the right place?  If not, do I
> have to put a directive in debian/myprog.install?  What's the best way
> to do this?

You could try using Module::Build instead of MakeMaker.  It supports 
installing additional files.  For example, look at this package of mine, 
which can be installed "manually" via Module::Build but also has debian/ 
infrastructure:

  http://www.bitshapers.com/thingy
  http://dev.bitshapers.com/source/thingy/trunk/
  http://dev.bitshapers.com/source/thingy/trunk/Build.PL?view=auto

(I could have suggested other packages that actually are in the Debian 
archive, such as courier-filter-perl, but thingy is the one with the most 
comprehensive Build.PL I can offer.)

Julian.

Attachment: pgpGB2SIDslcJ.pgp
Description: PGP signature


Reply to: