1 | <sect2><title> </title><para> </para></sect2>
|
---|
2 |
|
---|
3 | <sect2>
|
---|
4 | <title>Installation of Sh-utils</title>
|
---|
5 |
|
---|
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>
|
---|
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>
|
---|
26 |
|
---|
27 | <para>Finally, move some of the programs to more appropriate
|
---|
28 | locations:</para>
|
---|
29 |
|
---|
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>
|
---|
33 |
|
---|
34 | </sect2>
|
---|
35 |
|
---|
36 | <sect2>
|
---|
37 | <title>FHS compliance notes</title>
|
---|
38 |
|
---|
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>
|
---|
44 |
|
---|
45 | <para><screen><userinput>ln -s test /bin/[</userinput></screen></para>
|
---|
46 |
|
---|
47 | </sect2>
|
---|
48 |
|
---|