util-linux.xml 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
  4. <!ENTITY % general-entities SYSTEM "../general.ent">
  5. %general-entities;
  6. ]>
  7. <sect1 id="ch-tools-util-linux" role="wrap">
  8. <?dbhtml filename="util-linux.html"?>
  9. <sect1info condition="script">
  10. <productname>util-linux</productname>
  11. <productnumber>&util-linux-version;</productnumber>
  12. <address>&util-linux-url;</address>
  13. </sect1info>
  14. <title>Util-linux-&util-linux-version;</title>
  15. <indexterm zone="ch-tools-util-linux">
  16. <primary sortas="a-Util-linux">Util-linux</primary>
  17. <secondary>tools</secondary>
  18. </indexterm>
  19. <sect2 role="package">
  20. <title/>
  21. <para>The Util-linux package contains miscellaneous utility programs.</para>
  22. <segmentedlist>
  23. <segtitle>&buildtime;</segtitle>
  24. <segtitle>&diskspace;</segtitle>
  25. <seglistitem>
  26. <seg>&util-linux-tmp-sbu;</seg>
  27. <seg>&util-linux-tmp-du;</seg>
  28. </seglistitem>
  29. </segmentedlist>
  30. </sect2>
  31. <sect2 role="installation">
  32. <title>Installation of Util-linux</title>
  33. <para>First create a directory
  34. to enable storage for the <command>hwclock</command> program:</para>
  35. <screen><userinput remap="pre">mkdir -pv /var/lib/hwclock</userinput></screen>
  36. <para>Prepare Util-linux for compilation:</para>
  37. <screen><userinput remap="configure">./configure ADJTIME_PATH=/var/lib/hwclock/adjtime \
  38. --docdir=/usr/share/doc/util-linux-&util-linux-version; \
  39. --disable-chfn-chsh \
  40. --disable-login \
  41. --disable-nologin \
  42. --disable-su \
  43. --disable-setpriv \
  44. --disable-runuser \
  45. --disable-pylibmount \
  46. --disable-static \
  47. --without-python</userinput></screen>
  48. <variablelist>
  49. <title>The meaning of the configure options:</title>
  50. <varlistentry>
  51. <term><parameter>ADJTIME_PATH=/var/lib/hwclock/adjtime</parameter></term>
  52. <listitem>
  53. <para>This sets the location of the file recording information about
  54. the hardware clock in accordance to the FHS. This is not stricly
  55. needed for this temporary tool, but it prevents creating a file
  56. at another location, which would not be overwritten or removed
  57. when building the final util-linux package.</para>
  58. </listitem>
  59. </varlistentry>
  60. <varlistentry>
  61. <term><parameter>--disable-*</parameter></term>
  62. <listitem>
  63. <para>These switches prevent warnings about building components
  64. that require packages not in LFS or not installed yet.</para>
  65. </listitem>
  66. </varlistentry>
  67. <varlistentry>
  68. <term><parameter>--without-python</parameter></term>
  69. <listitem>
  70. <para>This switch disables using <application>Python</application>.
  71. It avoids trying to build unneeded bindings.</para>
  72. </listitem>
  73. </varlistentry>
  74. </variablelist>
  75. <para>Compile the package:</para>
  76. <screen><userinput remap="make">make</userinput></screen>
  77. <para>Install the package:</para>
  78. <screen><userinput remap="install">make install</userinput></screen>
  79. </sect2>
  80. <sect2 role="content">
  81. <title/>
  82. <para>Details on this package are located in <xref linkend="contents-utillinux" role="."/></para>
  83. </sect2>
  84. </sect1>