How to package a single text file into a .deb?

Posted by Fluffy on Ask Ubuntu See other posts from Ask Ubuntu or by Fluffy
Published on 2012-05-31T10:27:24Z Indexed on 2012/05/31 16:50 UTC
Read the original article Hit count: 202

Filed under:

I'm trying to a make a simple .deb package, which would basically edit a config of another package I listed as a dependency.

I added the required manipulations to the postinstall file.

The problem is I can't find a way to package an example config, which should be copied and edited from the postinstall script.

At the moment I just have a folder with the sample config, of which I'm creating a tar.gz and orig.tar.gz, then dh_make in that folder, edit the generated files and run debuild. However if I open the resulting .deb file with an archive manager, I can see that the sample file was not included at all.

© Ask Ubuntu or respective owner

Related posts about packaging