[maemo-developers] documentation in .deb packages

From: Andrew Zabolotny zap at homelink.ru
Date: Tue Jul 22 01:10:26 EEST 2008
Hello!

I'm trying to understand the machinery that automatically removes the
documentation file when installing them on tablet. So far my packages
install a few files in /usr/share/doc/${pkg}/ and for some reason they
are not autoremoved.

Some more complex packages also have documentation inside the .deb
file, but at some point it is removed, although I don't get at which
(install-docs in postinst it seems?)

Can somebody explain how this works and what I should put in the .rules
to generate the correct postinst hooks.

For reference, my package builds with the following commands:

dh_installchangelogs
dh_installdocs
dh_install
dh_compress
dh_fixperms
dh_installdeb
dh_gencontrol
dh_md5sums
dh_builddeb

Sure, I can just remove dh_installchangelogs & dh_installdocs and there
simply won't be any docs in the .deb. However, it's a matter of
principle :-)

I have a postinst script, but it contains a proper #DEBHELPER# line so
debhelper could insert there whatever he wants... however, #DEBHELPER#
is replaced with a empty line.

-- 
Andrew
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
Url : http://lists.maemo.org/pipermail/maemo-developers/attachments/20080722/4ddb3b90/attachment.pgp 
More information about the maemo-developers mailing list