source: BOOK/final-system/common/man.xml@ 918a9d3

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 918a9d3 was aa18ac0, checked in by Manuel Canales Esparcia <manuel@…>, 18 years ago

Updated trunk book sources to use DocBook-XML DTD 4.5.

  • Property mode set to 100644
File size: 7.4 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-system-man" role="wrap">
9 <?dbhtml filename="man.html"?>
10
11 <title>Man-&man-version;</title>
12
13 <indexterm zone="ch-system-man">
14 <primary sortas="a-Man">Man</primary>
15 </indexterm>
16
17 <sect2 role="package">
18 <title/>
19
20 <para>The Man package contains programs for finding and viewing man
21 pages.</para>
22
23 </sect2>
24
25 <sect2 role="installation">
26 <title>Installation of Man</title>
27
28 <para os="a">A few adjustments need to be made to the sources of Man.</para>
29
30 <para os="b">First, a <command>sed</command> substitution is
31 needed to add the <option>-R</option> switch to the
32 <envar>PAGER</envar> variable so that escape sequences are
33 properly handled by Less:</para>
34
35<screen os="c"><userinput>sed -i 's@-is@&amp;R@g' configure</userinput></screen>
36
37 <para os="d">Another couple of <command>sed</command> substitutions
38 comment out the <quote>MANPATH /usr/man</quote> and
39 <quote>MANPATH /usr/local/man</quote> lines in the
40 <filename>man.conf</filename> file to prevent redundant
41 results when using programs such as <command>whatis</command>:</para>
42
43<screen os="e"><userinput>sed -i 's@MANPATH./usr/man@#&amp;@g' src/man.conf.in
44sed -i 's@MANPATH./usr/local/man@#&amp;@g' src/man.conf.in</userinput></screen>
45
46 <para os="h">Prepare Man for compilation:</para>
47
48<screen os="i"><userinput>./configure -confdir=/etc</userinput></screen>
49
50 <variablelist os="j">
51 <title>The meaning of the configure options:</title>
52
53 <varlistentry>
54 <term><parameter>-confdir=/etc</parameter></term>
55 <listitem>
56 <para>This tells the <command>man</command> program to look for the
57 <filename>man.conf</filename> configuration file in the <filename
58 class="directory">/etc</filename> directory.</para>
59 </listitem>
60 </varlistentry>
61 </variablelist>
62
63 <para os="k">Compile the package:</para>
64
65<screen os="l"><userinput>make</userinput></screen>
66
67 <para os="m">This package does not come with a test suite.</para>
68
69 <para os="n">Install the package:</para>
70
71<screen os="o"><userinput>make install</userinput></screen>
72
73 <note os="p">
74 <para>If you will be working on a terminal that does not support
75 text attributes such as color and bold, you can disable Select
76 Graphic Rendition (SGR) escape sequences by editing the
77 <filename>man.conf</filename> file and adding the <option>-c</option>
78 option to the <envar>NROFF</envar> variable. If you use multiple
79 terminal types for one computer it may be better to selectively add
80 the <envar>GROFF_NO_SGR</envar> environment variable for the terminals
81 that do not support SGR.</para>
82 </note>
83
84 <para os="q">If the character set of the locale uses 8-bit characters, search
85 for the line beginning with <quote>NROFF</quote> in
86 <filename>/etc/man.conf</filename>, and verify that it matches the
87 following:</para>
88
89<screen os="r">NROFF /usr/bin/nroff -Tlatin1 -mandoc</screen>
90
91 <para os="s">Note that <quote>latin1</quote> should be used even if it is not
92 the character set of the locale. The reason is that, according to the
93 specification, <command>groff</command> has no means of typesetting
94 characters outside International Organization for Standards (ISO) 8859-1
95 without some strange escape codes. When formatting man pages,
96 <command>groff</command> thinks that they are in the ISO 8859-1 encoding
97 and this <parameter>-Tlatin1</parameter> switch tells
98 <command>groff</command> to use the same encoding for output. Since
99 <command>groff</command> does no recoding of input characters, the f
100 ormatted result is really in the same encoding as input, and therefore
101 it is usable as the input for a pager.</para>
102
103 <para os="t">This does not solve the problem of a non-working
104 <command>man2dvi</command> program for localized man pages in
105 non-ISO 8859-1 locales. Also, it does not work with multibyte
106 character sets. The first problem does not currently have a solution.
107 The second issue is not of concern because the CLFS installation does
108 not support multibyte character sets.</para>
109
110 <para os="u">Additional information with regards to the compression of
111 man and info pages can be found in the BLFS book at
112 <ulink url="&blfs-root;view/svn/postlfs/compressdoc.html"/>.</para>
113
114 </sect2>
115
116 <sect2 id="contents-man" role="content">
117 <title>Contents of Man</title>
118
119 <segmentedlist>
120 <segtitle>Installed programs</segtitle>
121
122 <seglistitem>
123 <seg>apropos, makewhatis, man, man2dvi, man2html, and whatis</seg>
124 </seglistitem>
125 </segmentedlist>
126
127 <variablelist>
128 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
129 <?dbfo list-presentation="list"?>
130 <?dbhtml list-presentation="table"?>
131
132 <varlistentry id="apropos">
133 <term><command>apropos</command></term>
134 <listitem>
135 <para>Searches the <command>whatis</command> database and
136 displays the short descriptions of system commands that contain
137 a given string</para>
138 <indexterm zone="ch-system-man apropos">
139 <primary sortas="b-apropos">apropos</primary>
140 </indexterm>
141 </listitem>
142 </varlistentry>
143
144 <varlistentry id="makewhatis">
145 <term><command>makewhatis</command></term>
146 <listitem>
147 <para>Builds the <command>whatis</command> database; it reads all
148 the man pages in the <envar>MANPATH</envar> and writes the name
149 and a short description in the <command>whatis</command> database
150 for each page</para>
151 <indexterm zone="ch-system-man makewhatis">
152 <primary sortas="b-makewhatis">makewhatis</primary>
153 </indexterm>
154 </listitem>
155 </varlistentry>
156
157 <varlistentry id="man">
158 <term><command>man</command></term>
159 <listitem>
160 <para>Formats and displays the requested on-line man page</para>
161 <indexterm zone="ch-system-man man">
162 <primary sortas="b-man">man</primary>
163 </indexterm>
164 </listitem>
165 </varlistentry>
166
167 <varlistentry id="man2dvi">
168 <term><command>man2dvi</command></term>
169 <listitem>
170 <para>Converts a man page into dvi format</para>
171 <indexterm zone="ch-system-man man2dvi">
172 <primary sortas="b-man2dvi">man2dvi</primary>
173 </indexterm>
174 </listitem>
175 </varlistentry>
176
177 <varlistentry id="man2html">
178 <term><command>man2html</command></term>
179 <listitem>
180 <para>Converts a man page into HTML</para>
181 <indexterm zone="ch-system-man man2html">
182 <primary sortas="b-man2html">man2html</primary>
183 </indexterm>
184 </listitem>
185 </varlistentry>
186
187 <varlistentry id="whatis">
188 <term><command>whatis</command></term>
189 <listitem>
190 <para>Searches the <command>whatis</command> database and
191 displays the short descriptions of system commands that
192 contain the given keyword as a separate word</para>
193 <indexterm zone="ch-system-man whatis">
194 <primary sortas="b-whatis">whatis</primary>
195 </indexterm>
196 </listitem>
197 </varlistentry>
198
199 </variablelist>
200
201 </sect2>
202
203</sect1>
Note: See TracBrowser for help on using the repository browser.