[b7d9d404] | 1 | <sect2><title> </title><para> </para></sect2>
|
---|
| 2 |
|
---|
[6370fa6] | 3 | <sect2>
|
---|
| 4 | <title>Installation of Sh-utils</title>
|
---|
| 5 |
|
---|
[b06ac510] | 6 | <para>This package requires its hostname-patch to be applied before you
|
---|
[b7d9d404] | 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>
|
---|
| 12 |
|
---|
| 13 | <para><screen><userinput>patch -Np1 -i ../sh-utils-&sh-utils-hostname-patch-version;.patch</userinput></screen></para>
|
---|
| 14 |
|
---|
| 15 | <para>Prepare Shellutils to be compiled:</para>
|
---|
| 16 |
|
---|
| 17 | <para><screen><userinput>./configure --prefix=/usr</userinput></screen></para>
|
---|
| 18 |
|
---|
| 19 | <para>Continue with compiling the package:</para>
|
---|
| 20 |
|
---|
| 21 | <para><screen><userinput>make</userinput></screen></para>
|
---|
| 22 |
|
---|
| 23 | <para>Install the package:</para>
|
---|
| 24 |
|
---|
| 25 | <para><screen><userinput>make install</userinput></screen></para>
|
---|
[b06ac510] | 26 |
|
---|
[b7d9d404] | 27 | <para>Finally, move some of the programs to more appropriate
|
---|
| 28 | locations:</para>
|
---|
[6370fa6] | 29 |
|
---|
[b7d9d404] | 30 | <para><screen><userinput>mv /usr/bin/{basename,date,echo,false,pwd} /bin &&
|
---|
[b06ac510] | 31 | mv /usr/bin/{sleep,stty,su,test,true,uname} /bin &&
|
---|
[3f12743] | 32 | mv /usr/bin/chroot /usr/sbin</userinput></screen></para>
|
---|
[6370fa6] | 33 |
|
---|
| 34 | </sect2>
|
---|
| 35 |
|
---|
[4294b90] | 36 | <sect2>
|
---|
| 37 | <title>FHS compliance notes</title>
|
---|
| 38 |
|
---|
[b822811] | 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
|
---|
[a81d3ab] | 43 | <filename>[</filename> binary. Create it by running:</para>
|
---|
[b822811] | 44 |
|
---|
[819ecc65] | 45 | <para><screen><userinput>ln -s test /bin/[</userinput></screen></para>
|
---|
[4294b90] | 46 |
|
---|
| 47 | </sect2>
|
---|
| 48 |
|
---|