Re: Multiple Binary and man pages
On Sun, Sep 08, 2002 at 08:21:09PM -0400, Joey Hess wrote:
> Marco Presi wrote:
> > My problem is this: for the two packeges I want to have two
> > different man pages (in fact "server-enhanced" has more config
> > options that "server") but it would nice if the man pages could have
> > the same name ("server.conf.5")
>
> > I don't know how to resolve this, because in the /debian dir I can
> > put just one file named "server.conf.5"
>
> Provided your packages conflict, you can make two files,
> debian/server.conf.5 and debian/server-enhanced.conf.5. Make the latter
> have the same .TH line at the top as does the former, something like
> this:
>
> .TH SERVER.CONF 5
>
> And make dh_installman install one into one package, one into the other.
> It will take care of naming them based on the .TH line, so the file
> names used in your source package really don't matter.
Alternatively, if the package overlap, then you could have a so link to
create a link from the new enhanced man page to the normal one (if they
are both going to be installed at the same time). This would create a
symlink when both packages are installed.
Saddly, the current way dh_installmanpages handle this is broken (well i
was told it would be fixed post woody release) and it does not really
work (the symlink is to the original name, not the gzipped one).
I create the symlink by hand in a postinst.
Friendly,
Sven Luther
Reply to: