blob: 6b94556814006a05b950213ed6c5508d5d6977eb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
<sect2><title> </title><para> </para></sect2>
<sect2>
<title>Installation of Man</title>
<para>There are three patches for Man. The first patch comments out one of the
lines in the <filename>man.conf</filename> file (MANPATH /usr/man) to
prevent redundant results when using programs such as
<userinput>whatis</userinput>:</para>
<para><screen><userinput>patch -Np1 -i ../man-&man-manpath-patch-version;-manpath.patch</userinput></screen></para>
<para>The second patch adds the <emphasis>-R</emphasis> option to the
<emphasis>PAGER</emphasis> variable so that escape sequences are
handled properly:</para>
<para><screen><userinput>patch -Np1 -i ../man-&man-pager-patch-version;-pager.patch</userinput></screen></para>
<para>The last patch prevents problem when man pages not formatted
with more than 80 columns are used in conjunction with recent releases
of <userinput>groff</userinput>:</para>
<para><screen><userinput>patch -Np1 -i ../man-&man-80cols-patch-version;-80cols.patch</userinput></screen></para>
<para>The paths to some programs are written into man's files.
Unfortunately, the configure script picks the last location in PATH
rather than the first place a program is found. By appending
<emphasis>/usr/bin:/bin</emphasis> to PATH for the
<userinput>./configure</userinput> command, we ensure that man doesn't
use the programs in the <filename class="directory">/static</filename>
directory.</para>
<para>Prepare Man to be compiled:</para>
<para><screen><userinput>PATH=$PATH:/usr/bin:/bin \
./configure -default -confdir=/etc</userinput></screen></para>
<para>Continue with compiling the package:</para>
<para><screen><userinput>make</userinput></screen></para>
<para>And finish off installing the package:</para>
<para><screen><userinput>make install</userinput></screen></para>
<note><para>If you wish to disable SGR escape sequences, you should
edit the man.conf file and add the <userinput>-c</userinput> argument
to nroff.</para></note>
<para>You may want to take a look at the man hint
at <ulink url="&hints-root;man.txt"/>, which deals with formatting
and compression issues for man pages.</para>
</sect2>
|