[Tahoe-debian] Location of man page in source tree
Julian Taylor
jtaylor.debian at googlemail.com
Sun Jul 24 15:25:30 UTC 2011
On 07/24/2011 04:06 PM, David-Sarah Hopwood wrote:
> Where is the preferred location for man pages in the upstream source?
> If I put this man page:
>
> http://tahoe-lafs.org/trac/tahoe-lafs/attachment/ticket/1420/tahoe.1
>
> in a new docs/man directory, for example, then the current debian/control
> file will install it to /usr/share/doc/tahoe-lafs/man/tahoe.1. I think it
> should actually be installed (gzipped) to /usr/share/man/man1/tahoe.1.gz .
> I suppose there's no problem installing it to both places, though.
>
docs/man is a reasonable place in upstream source, the setup.py should
then install into in the correct location.
Adapting the package is simple:
diff -Nru tahoe-lafs-1.8.2/debian/rules tahoe-lafs-1.8.2/debian/rules
--- tahoe-lafs-1.8.2/debian/rules 2011-06-16 19:36:37.000000000 +0200
+++ tahoe-lafs-1.8.2/debian/rules 2011-07-24 17:20:27.000000000 +0200
@@ -49,10 +49,11 @@
dh_testdir
dh_testroot
dh_installchangelogs
- dh_installdocs
+ dh_installdocs -X docs/man
# mv debian/$(package)/usr/share/doc/$(package)/CHANGES.txt \
# debian/$(package)/usr/share/doc/$(package)/changelog
dh_installexamples
+ dh_installman docs/man/tahoe.1
dh_strip
dh_compress -X.py
dh_fixperms
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/tahoe-debian/attachments/20110724/ab5eb8fb/attachment.pgp>
More information about the Tahoe-debian
mailing list