1 <sect2><title> </title><para> </para></sect2>
4 <title>Installation of Sh-utils</title>
6 <para>This package requires its hostname-patch to be applied before you
7 can install it. This patch suppresses the build of the hostname program
8 which will be installed later with the net-tools package. The hostname
9 program from the net-tools package is a much better version (and in some
10 cases even required since it supports options that are needed by some
11 programs such as XFree86). Apply the patch:</para>
13 <para><screen><userinput>patch -Np1 -i ../sh-utils-&sh-utils-hostname-patch-version;.patch</userinput></screen></para>
15 <para>Prepare Shellutils to be compiled:</para>
17 <para><screen><userinput>./configure --prefix=/usr</userinput></screen></para>
19 <para>Continue with compiling the package:</para>
21 <para><screen><userinput>make</userinput></screen></para>
23 <para>Install the package:</para>
25 <para><screen><userinput>make install</userinput></screen></para>
27 <para>Finally, move some of the programs to more appropriate
30 <para><screen><userinput>mv /usr/bin/{basename,date,echo,false,pwd} /bin &&
31 mv /usr/bin/{sleep,stty,su,test,true,uname} /bin &&
32 mv /usr/bin/chroot /usr/sbin</userinput></screen></para>
37 <title>FHS compliance notes</title>
39 <para>There is a command installed in this package which is named test. It is
40 often used in shell scripts to evaluate conditions, but is more often
41 encountered in the form of <command>[ condition ]</command>. These brackets
42 are built into the bash interpreter, but the FHS dictates that there should be a
43 <filename>[</filename> binary. Create it by running:</para>
45 <para><screen><userinput>ln -s test /bin/[</userinput></screen></para>