Converted m4, bison, less, groff, textutils, sed, flex, binutils, fileutils, shellutils, gettext and net-tools to new layout.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2353 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2003-01-16 19:55:00 +00:00
|
|
|
<sect2><title> </title><para> </para></sect2>
|
|
|
|
|
2001-01-24 00:31:17 +00:00
|
|
|
<sect2>
|
|
|
|
<title>Installation of Sh-utils</title>
|
|
|
|
|
2002-09-13 00:16:37 +01:00
|
|
|
<para>This package requires its hostname-patch to be applied before you
|
Converted m4, bison, less, groff, textutils, sed, flex, binutils, fileutils, shellutils, gettext and net-tools to new layout.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2353 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2003-01-16 19:55:00 +00:00
|
|
|
can install it. This patch suppresses the build of the hostname program
|
|
|
|
which will be installed later with the net-tools package. The hostname
|
|
|
|
program from the net-tools package is a much better version (and in some
|
|
|
|
cases even required since it supports options that are needed by some
|
|
|
|
programs such as XFree86). Apply the patch:</para>
|
|
|
|
|
|
|
|
<para><screen><userinput>patch -Np1 -i ../sh-utils-&sh-utils-hostname-patch-version;.patch</userinput></screen></para>
|
|
|
|
|
|
|
|
<para>Prepare Shellutils to be compiled:</para>
|
|
|
|
|
|
|
|
<para><screen><userinput>./configure --prefix=/usr</userinput></screen></para>
|
|
|
|
|
|
|
|
<para>Continue with compiling the package:</para>
|
|
|
|
|
|
|
|
<para><screen><userinput>make</userinput></screen></para>
|
|
|
|
|
|
|
|
<para>Install the package:</para>
|
|
|
|
|
|
|
|
<para><screen><userinput>make install</userinput></screen></para>
|
2002-09-13 00:16:37 +01:00
|
|
|
|
Converted m4, bison, less, groff, textutils, sed, flex, binutils, fileutils, shellutils, gettext and net-tools to new layout.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2353 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2003-01-16 19:55:00 +00:00
|
|
|
<para>Finally, move some of the programs to more appropriate
|
|
|
|
locations:</para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
Converted m4, bison, less, groff, textutils, sed, flex, binutils, fileutils, shellutils, gettext and net-tools to new layout.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2353 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2003-01-16 19:55:00 +00:00
|
|
|
<para><screen><userinput>mv /usr/bin/{basename,date,echo,false,pwd} /bin &&
|
2002-09-13 00:16:37 +01:00
|
|
|
mv /usr/bin/{sleep,stty,su,test,true,uname} /bin &&
|
2002-05-02 21:15:02 +01:00
|
|
|
mv /usr/bin/chroot /usr/sbin</userinput></screen></para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
2001-05-04 00:44:00 +01:00
|
|
|
<sect2>
|
|
|
|
<title>FHS compliance notes</title>
|
|
|
|
|
2001-07-22 20:45:10 +01:00
|
|
|
<para>There is a command installed in this package which is named test. It is
|
|
|
|
often used in shell scripts to evaluate conditions, but is more often
|
|
|
|
encountered in the form of <command>[ condition ]</command>. These brackets
|
|
|
|
are built into the bash interpreter, but the FHS dictates that there should be a
|
2002-05-21 17:50:46 +01:00
|
|
|
<filename>[</filename> binary. Create it by running:</para>
|
2001-07-22 20:45:10 +01:00
|
|
|
|
2002-08-18 18:26:58 +01:00
|
|
|
<para><screen><userinput>ln -s test /bin/[</userinput></screen></para>
|
2001-05-04 00:44:00 +01:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|