[6370fa6] | 1 | <sect1 id="ch06-utillinux">
|
---|
[793c2f7] | 2 | <title>Installing Util-linux-&util-linux-version;</title>
|
---|
[576e206] | 3 | <?dbhtml filename="util-linux.html" dir="chapter06"?>
|
---|
[6370fa6] | 4 |
|
---|
[b822811] | 5 | <screen>Estimated build time: &util-linux-time;
|
---|
[6403026] | 6 | Estimated required disk space: &util-linux-compsize;</screen>
|
---|
[3554fa3a] | 7 |
|
---|
[34cc81e] | 8 | &aa-utillinux-shortdesc;
|
---|
[9b29852] | 9 | &aa-utillinux-dep;
|
---|
[73aedd1d] | 10 |
|
---|
| 11 | <sect2><title> </title><para> </para></sect2>
|
---|
| 12 |
|
---|
| 13 | <sect2>
|
---|
| 14 | <title>FHS compliance notes</title>
|
---|
| 15 |
|
---|
| 16 | <para>The FHS recommends that we use <filename>/var/lib/hwclock</filename>,
|
---|
| 17 | instead of the usual <filename>/etc</filename>, as the location for the
|
---|
| 18 | <filename>adjtime</filename> file. To make the <userinput>hwclock</userinput>
|
---|
| 19 | program FHS-compliant, run the following:</para>
|
---|
| 20 |
|
---|
| 21 | <screen><userinput>cp hwclock/hwclock.c{,.backup}
|
---|
| 22 | sed 's%etc/adjtime%var/lib/hwclock/adjtime%' \
|
---|
| 23 | hwclock/hwclock.c.backup > hwclock/hwclock.c
|
---|
| 24 | mkdir -p /var/lib/hwclock</userinput></screen>
|
---|
| 25 |
|
---|
| 26 | </sect2>
|
---|
| 27 |
|
---|
| 28 | <sect2>
|
---|
| 29 | <title>Installation of Util-linux</title>
|
---|
| 30 |
|
---|
| 31 | <para>Prepare Util-linux for compilation:</para>
|
---|
| 32 |
|
---|
| 33 | <screen><userinput>./configure</userinput></screen>
|
---|
| 34 |
|
---|
| 35 | <para>Compile the package:</para>
|
---|
| 36 |
|
---|
[2b07134] | 37 | <screen><userinput>make HAVE_KILL=yes HAVE_SLN=yes</userinput></screen>
|
---|
[73aedd1d] | 38 |
|
---|
[2b07134] | 39 | <para>The meaning of the make parameters:</para>
|
---|
[73aedd1d] | 40 |
|
---|
| 41 | <itemizedlist>
|
---|
[2b07134] | 42 | <listitem><para><userinput>HAVE_KILL=yes</userinput>: This prevents the
|
---|
| 43 | <userinput>kill</userinput> program (already installed by Procps) from being
|
---|
| 44 | built and installed again.</para></listitem>
|
---|
| 45 |
|
---|
[73aedd1d] | 46 | <listitem><para><userinput>HAVE_SLN=yes</userinput>: This prevents the
|
---|
| 47 | <userinput>sln</userinput> program (a statically linked
|
---|
[2b07134] | 48 | <userinput>ln</userinput>, already installed by Glibc) from being built and
|
---|
| 49 | installed again.</para></listitem>
|
---|
[73aedd1d] | 50 | </itemizedlist>
|
---|
| 51 |
|
---|
| 52 | <para>And install the package:</para>
|
---|
| 53 |
|
---|
[2b07134] | 54 | <screen><userinput>make HAVE_KILL=yes HAVE_SLN=yes install</userinput></screen>
|
---|
[73aedd1d] | 55 |
|
---|
| 56 | </sect2>
|
---|
[6370fa6] | 57 |
|
---|
| 58 | </sect1>
|
---|
[73aedd1d] | 59 |
|
---|