Estimated build time: 1 minute Estimated required disk space: 1 MB
Run the following commands to install man:
for i in configure src/Makefile.in src/makewhatis.sh do ���cp $i $i.backup && ���sed 's/gawk/awk/g' $i > tmp~ && ���mv tmp~ $i done chmod 700 configure && ./configure -default && make && make install
You may want to take a look at the man hint at http://hints.linuxfromscratch.org/hints/man.txt which deals with formatting and compression issues for man pages.
for ... sed ... done: This construct changes man so that it uses awk instead of gawk which is the default. We use this as LFS uses awk instead of gawk.
The Man package contains the man, apropos whatis and makewhatis programs.
man formats and displays the on-line manual pages.
apropos searches a set of database files containing short descriptions of system commands for keywords and displays the result on the standard output.
whatis searches a set of database files containing short descriptions of system commands for keywords and displays the result on the standard output. Only complete word matches are displayed.
makewhatis reads all the manual pages contained in given sections of manpath or the pre-formatted pages contained in the given sections of catpath. For each page, it writes a line in the whatis database; each line consists of the name of the page and a short description, separated by a dash. The description is extracted using the content of the NAME section of the manual page.
Man-1.5i2 needs the following to be installed:
sh from the bash package
as from the binutils package
ld from the binutils package
bzip2 from the bzip2 package
chmod from the fileutils package
cp from the fileutils package
install from the fileutils package
mkdir from the fileutils package
mv from the fileutils package
rm from the fileutils package
gcc from the gcc package
grep from the grep package
gunzip from the gzip package
zcat from the gzip package
make from the make package
awk from the mawk package
sed from the sed package
echo from the sh-utils package
cat from the textutils package