source: chapter06/man.xml@ 386babed

Last change on this file since 386babed was a0e1913, checked in by Manuel Canales Esparcia <manuel@…>, 19 years ago

Removed the package name from the dependencies titles.

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/multi-arch/BOOK@4691 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 6.1 KB
RevLine 
[673b0d8]1<?xml version="1.0" encoding="ISO-8859-1"?>
[c2133bc]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
[673b0d8]3 <!ENTITY % general-entities SYSTEM "../general.ent">
4 %general-entities;
5]>
[752f4e5]6<sect1 id="ch-system-man" role="wrap">
[673b0d8]7<title>Man-&man-version;</title>
8<?dbhtml filename="man.html"?>
9
10<indexterm zone="ch-system-man"><primary sortas="a-Man">Man</primary></indexterm>
[6370fa6]11
[a001133]12<sect2 role="package"><title/>
[5888299]13<para>The Man package contains programs for finding and viewing manual pages.</para>
14
[a001133]15<segmentedlist>
16<segtitle>&buildtime;</segtitle>
17<segtitle>&diskspace;</segtitle>
18<seglistitem><seg>0.1 SBU</seg><seg>1.9MB</seg></seglistitem>
19</segmentedlist>
[673b0d8]20
[a001133]21<segmentedlist>
[a0e1913]22<segtitle>&dependencies;</segtitle>
[a001133]23<seglistitem><seg>Bash, Binutils, Coreutils, Gawk, GCC,
[69993f4]24Glibc, Grep, Make, and Sed</seg></seglistitem>
[a001133]25</segmentedlist>
26</sect2>
[3554fa3a]27
[a001133]28<sect2 role="installation">
[73aedd1d]29<title>Installation of Man</title>
30
[56964fb]31<para>A few adjustments need to be made to the sources of Man.</para>
[73aedd1d]32
[56964fb]33<para>This a sed substitution to add the
[752f4e5]34<parameter>-R</parameter> switch to the <envar>PAGER</envar>
[ef13657]35variable so that escape sequences are properly handled by Less:</para>
[73aedd1d]36
[8dffa04]37<screen><userinput>sed -i 's@-is@&amp;R@g' configure</userinput></screen>
[73aedd1d]38
[56964fb]39<para>This a sed substitution to comment out the
[ef13657]40<quote>MANPATH /usr/man</quote> line in the
41<filename>man.conf</filename> file to prevent redundant results when
42using programs such as <command>whatis</command>:</para>
[73aedd1d]43
[2ec4b60]44<screen><userinput>sed -i 's@MANPATH./usr/man@#&amp;@g' src/man.conf.in</userinput></screen>
[37dcf2a]45
[ef13657]46<para>Prepare Man for compilation:</para>
[73aedd1d]47
[e5f8a42]48<screen><userinput>./configure -confdir=/etc</userinput></screen>
[73aedd1d]49
50<para>The meaning of the configure options:</para>
51
[df8334f]52<variablelist>
53<varlistentry>
[ef57e3b]54<term><parameter>-confdir=/etc</parameter></term>
[490edce]55<listitem><para>This tells the <command>man</command> program to look for the
[ef13657]56<filename>man.conf</filename> configuration file in the <filename
57class="directory">/etc</filename> directory.</para></listitem>
[df8334f]58</varlistentry>
59</variablelist>
[73aedd1d]60
61<para>Compile the package:</para>
62
63<screen><userinput>make</userinput></screen>
64
[ef13657]65<para>Install the package:</para>
[73aedd1d]66
67<screen><userinput>make install</userinput></screen>
68
[ef13657]69<note><para>To disable Select Graphic Rendition (SGR) escape
[69993f4]70sequences, edit the <filename>man.conf</filename> file and
[ef13657]71add the <parameter>-c</parameter> switch to
[752f4e5]72the <envar>NROFF</envar> variable.</para></note>
[73aedd1d]73
[69993f4]74<para>If the character set uses 8-bit characters, search for the line
[ef13657]75beginning with <quote>NROFF</quote> in
76<filename>/etc/man.conf</filename>, and verify that it looks as
77follows:</para>
[b32e803]78
79<screen>NROFF /usr/bin/nroff -Tlatin1 -mandoc</screen>
80
[ef13657]81<para>Note that <quote>latin1</quote> should be used even if it is not
82the character set of the locale. The reason is that, according to the
83specification, <command>groff</command> has no means of typesetting
[69993f4]84characters outside International Organization for Standards
85(ISO) 8859-1 without some strange escape codes. When formatting manual
86pages, <command>groff</command> thinks that they are in the ISO 8859-1
87encoding and this <parameter>-Tlatin1</parameter> switch tells
88<command>groff</command> to use the same encoding for output. Since
89<command>groff</command> does no recoding of input characters, the
90formatted result is really in the same encoding as input, and therefore
91it is usable as the input for a pager.</para>
[ef13657]92
93<para>This does not solve the problem of a non-working
94<command>man2dvi</command> program for localized manual pages in
[69993f4]95non-ISO 8859-1 locales. Also, it does not work with multibyte
[ef13657]96character sets. The first problem does not currently have a solution.
[69993f4]97The second issue is not of concern because the LFS installation does
[ef13657]98not support multibyte character sets.</para>
99
[38bb44a]100<para>Additional information with regards to the compression of
[2256873]101man and info pages can be found in the BLFS book at
[1cc7be0]102<ulink url="&blfs-root;view/cvs/postlfs/compressdoc.html"/>.</para>
[73aedd1d]103
[b48b8c5]104
[73aedd1d]105</sect2>
[6370fa6]106
[5888299]107
[c6cb3aa]108<sect2 id="contents-man" role="content"><title>Contents of Man</title>
[673b0d8]109
[c6cb3aa]110<segmentedlist>
111<segtitle>Installed programs</segtitle>
112<seglistitem><seg>apropos, makewhatis, man,
[69993f4]113man2dvi, man2html, and whatis</seg></seglistitem>
[c6cb3aa]114</segmentedlist>
[673b0d8]115
[2256873]116<variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
[3ed279f]117<?dbfo list-presentation="list"?>
[c5f9180]118<?dbhtml list-presentation="table"?>
[673b0d8]119
[b8a819f]120<varlistentry id="apropos">
121<term><command>apropos</command></term>
[c6cb3aa]122<listitem>
[2256873]123<para>Searches the whatis database and displays the short descriptions
124of system commands that contain a given string</para>
[3ed279f]125<indexterm zone="ch-system-man apropos"><primary sortas="b-apropos">apropos</primary></indexterm>
[c6cb3aa]126</listitem>
127</varlistentry>
[673b0d8]128
[b8a819f]129<varlistentry id="makewhatis">
130<term><command>makewhatis</command></term>
[c6cb3aa]131<listitem>
[2256873]132<para>Builds the whatis database; it reads all the manual pages in the
[ef13657]133manpath and writes the name and a short description in the whatis
[2256873]134database for each page</para>
[3ed279f]135<indexterm zone="ch-system-man makewhatis"><primary sortas="b-makewhatis">makewhatis</primary></indexterm>
[c6cb3aa]136</listitem>
137</varlistentry>
[6370fa6]138
[b8a819f]139<varlistentry id="man">
140<term><command>man</command></term>
[c6cb3aa]141<listitem>
[2256873]142<para>Formats and displays the requested on-line manual page</para>
[3ed279f]143<indexterm zone="ch-system-man man"><primary sortas="b-man">man</primary></indexterm>
[c6cb3aa]144</listitem>
145</varlistentry>
[673b0d8]146
[b8a819f]147<varlistentry id="man2dvi">
148<term><command>man2dvi</command></term>
[c6cb3aa]149<listitem>
[2256873]150<para>Converts a manual page into dvi format</para>
[3ed279f]151<indexterm zone="ch-system-man man2dvi"><primary sortas="b-man2dvi">man2dvi</primary></indexterm>
[c6cb3aa]152</listitem>
153</varlistentry>
[673b0d8]154
[b8a819f]155<varlistentry id="man2html">
156<term><command>man2html</command></term>
[c6cb3aa]157<listitem>
[2256873]158<para>Converts a manual page into HTML</para>
[3ed279f]159<indexterm zone="ch-system-man man2html"><primary sortas="b-man2html">man2html</primary></indexterm>
[c6cb3aa]160</listitem>
161</varlistentry>
[673b0d8]162
[b8a819f]163<varlistentry id="whatis">
164<term><command>whatis</command></term>
[c6cb3aa]165<listitem>
[2256873]166<para>Searches the whatis database and displays the short descriptions
[ef13657]167of system commands that contain the given keyword as a separate
[2256873]168word</para>
[3ed279f]169<indexterm zone="ch-system-man whatis"><primary sortas="b-whatis">whatis</primary></indexterm>
[c6cb3aa]170</listitem>
171</varlistentry>
172</variablelist>
[673b0d8]173
174</sect2>
175
176</sect1>
[ef13657]177
Note: See TracBrowser for help on using the repository browser.