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