shellutils-inst.xml 1.7 KB

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