source: final-system/common/man.xml@ db63ccc

Last change on this file since db63ccc was eac7362, checked in by Jim Gifford <clfs@…>, 19 years ago

r668@server (orig r666): manuel | 2005-11-08 15:25:13 -0800
Removing SBUs and DUs. Chapter final-system, round 6.

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