Updated to dhcpcd-4.0.4 (#2569)

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@7658 af4574ff-66df-0310-9fd7-8a98e5e911e0
This commit is contained in:
Thomas Trepl 2008-12-21 16:26:03 +00:00
parent 81f2343a36
commit fefa337dce
3 changed files with 42 additions and 27 deletions

View File

@ -4,10 +4,10 @@
<!ENTITY % general-entities SYSTEM "../../general.ent"> <!ENTITY % general-entities SYSTEM "../../general.ent">
%general-entities; %general-entities;
<!ENTITY dhcpcd-download-http "http://download.berlios.de/dhcpcd/dhcpcd-&dhcpcd-version;.tar.bz2"> <!ENTITY dhcpcd-download-http "http://roy.marples.name/downloads/dhcpcd/dhcpcd-&dhcpcd-version;.tar.bz2">
<!ENTITY dhcpcd-download-ftp "ftp://ftp.osuosl.org/pub/gentoo/distfiles/dhcpcd-&dhcpcd-version;.tar.bz2"> <!ENTITY dhcpcd-download-ftp "ftp://ftp.osuosl.org/pub/gentoo/distfiles/dhcpcd-&dhcpcd-version;.tar.bz2">
<!ENTITY dhcpcd-md5sum "90d6df62d663bdea65d5905023377b39"> <!ENTITY dhcpcd-md5sum "f57a9614e592814485c47495c53e4c30">
<!ENTITY dhcpcd-size "32.5 KB"> <!ENTITY dhcpcd-size "50 KB">
<!ENTITY dhcpcd-buildsize "0.3 MB"> <!ENTITY dhcpcd-buildsize "0.3 MB">
<!ENTITY dhcpcd-time "less than 0.1 SBU"> <!ENTITY dhcpcd-time "less than 0.1 SBU">
]> ]>
@ -65,15 +65,22 @@
<title>Installation of dhcpcd</title> <title>Installation of dhcpcd</title>
<para>Install <application>dhcpcd</application> by running the following <para>Install <application>dhcpcd</application> by running the following
commands:</para> commands as the <systemitem class="username">root</systemitem> user:</para>
<screen><userinput>make</userinput></screen> <screen><userinput>make PREFIX= \
LIBEXECDIR=/lib/dhcpcd \
DBDIR=/var/lib \
SYSCONFDIR=/etc/dhcpcd install</userinput></screen>
<para>This package does not come with a test suite.</para> <para>By default, a plain text lease info file isn't created but the
<application>dhcpcd</application> provides a hook which can be used for creating
such a file. Install the hook by running the following
commands as the <systemitem class="username">root</systemitem> user:</para>
<para>Now, as the <systemitem class="username">root</systemitem> user:</para> <screen><userinput>sed -i "s;/var/lib/dhcpcd-;/var/lib/dhcpcd/dhcpcd-;g" \
/lib/dhcpcd/dhcpcd-hooks/50-dhcpcd-compat &amp;&amp;
<screen role="root"><userinput>make install</userinput></screen> make LIBEXECDIR=/lib/dhcpcd \
HOOKSCRIPTS=50-dhcpcd-compat install</userinput></screen>
</sect2> </sect2>
@ -83,10 +90,10 @@
<sect3 id="dhcpcd-config"> <sect3 id="dhcpcd-config">
<title>Config Files</title> <title>Config Files</title>
<para><filename>/etc/dhcpcd.sh</filename></para> <para><filename>/etc/dhcpcd/dhcpcd.conf</filename></para>
<indexterm zone="dhcpcd dhcpcd-config"> <indexterm zone="dhcpcd dhcpcd-config">
<primary sortas="e-etc-dhcpcd-sh">/etc/dhcpcd.sh</primary> <primary sortas="e-etc-dhcpcd-dhcpcd-conf">/etc/dhcpcd/dhcpcd.conf</primary>
</indexterm> </indexterm>
</sect3> </sect3>
@ -107,12 +114,9 @@
<screen role='root'><userinput>make install-service-dhcpcd</userinput></screen> <screen role='root'><userinput>make install-service-dhcpcd</userinput></screen>
<para>Whenever <command>dhcpcd</command> configures or shuts down <para>Whenever <command>dhcpcd</command> configures or shuts down
a network interface, it executes the script a network interface, it executes hook scripts. For more details
<filename>/etc/dhcpcd.sh</filename>. This script can be about those scripts, see the <command>dhcpcd-run-hooks</command> as
customized to perform additional actions for the network interface. well as the <command>dhcpcd</command> man page.</para>
See the man page of <command>dhcpcd</command> for more details. An
example file is shipped in the tarball which can be used to send
the interface details to syslog.</para>
<para id="dhcpcd-config2">Finally, as the <systemitem <para id="dhcpcd-config2">Finally, as the <systemitem
class="username">root</systemitem> user create the class="username">root</systemitem> user create the
@ -145,19 +149,21 @@ EOF</userinput></screen>
<command>dhcpcd</command>.</para> <command>dhcpcd</command>.</para>
<note> <note>
<para id="dhcpcd-config3">The default behavior of <para id="dhcpcd-config3">The default behavior of <command>dhcpcd</command>
<command>dhcpcd</command> is to overwrite (after making backup copies) is to overwrite <filename>/etc/resolv.conf</filename>. All modifications on
<filename>/etc/resolv.conf</filename>, <filename>/etc/yp.conf</filename> and system configuration files like <filename>/etc/resolv.conf</filename>,
<filename>/etc/ntp.conf</filename> with new files containing information from <filename>/etc/yp.conf</filename> and <filename>/etc/ntp.conf</filename> are
the DHCP server. If this is undesirable, review the done by hooks which are stored in <filename>/lib/dhcpcd/dhcpcd-hooks</filename>.
<command>dhcpcd</command> man page for switches to add to the Setup <command>dhcpcd</command> by removing or adding hooks from/to that directory.
The execution of hooks can be disabled by using the -C command line option.
Rewiew the <command>dhcpcd</command> man page for switches to add to the
<envar>DHCP_START</envar> value.</para> <envar>DHCP_START</envar> value.</para>
</note> </note>
<indexterm zone="dhcpcd dhcpcd-config3"> <indexterm zone="dhcpcd dhcpcd-config3">
<primary sortas="e-etc-resolv.conf">/etc/resolv.conf</primary> <primary sortas="e-etc-resolv.conf">/etc/resolv.conf</primary>
</indexterm> </indexterm>
<!-- These are not modified by default with version 4 of dhcpcd
<indexterm zone="dhcpcd dhcpcd-config3"> <indexterm zone="dhcpcd dhcpcd-config3">
<primary sortas="e-etc-yp.conf">/etc/yp.conf</primary> <primary sortas="e-etc-yp.conf">/etc/yp.conf</primary>
</indexterm> </indexterm>
@ -165,7 +171,7 @@ EOF</userinput></screen>
<indexterm zone="dhcpcd dhcpcd-config3"> <indexterm zone="dhcpcd dhcpcd-config3">
<primary sortas="e-etc-ntp.conf">/etc/ntp.conf</primary> <primary sortas="e-etc-ntp.conf">/etc/ntp.conf</primary>
</indexterm> </indexterm>
-->
</sect3> </sect3>
</sect2> </sect2>

View File

@ -3,7 +3,7 @@ $LastChangedBy$
$Date$ $Date$
--> -->
<!ENTITY day "20"> <!-- Always 2 digits --> <!ENTITY day "21"> <!-- Always 2 digits -->
<!ENTITY month "12"> <!-- Always 2 digits --> <!ENTITY month "12"> <!-- Always 2 digits -->
<!ENTITY year "2008"> <!ENTITY year "2008">
<!ENTITY copyrightdate "2001-&year;"> <!ENTITY copyrightdate "2001-&year;">
@ -321,7 +321,7 @@ $Date$
<!-- Chapter 14 --> <!-- Chapter 14 -->
<!ENTITY dhcp-version "3.0.6"> <!ENTITY dhcp-version "3.0.6">
<!ENTITY dhcpcd-version "3.0.19"> <!ENTITY dhcpcd-version "4.0.4">
<!-- Chapter 15 --> <!-- Chapter 15 -->
<!ENTITY pppoe-version "3.8"> <!ENTITY pppoe-version "3.8">

View File

@ -40,6 +40,15 @@
</listitem> </listitem>
--> -->
<listitem>
<para>December 21th, 2008</para>
<itemizedlist>
<listitem>
<para>[thomas] - Updated to dhcpcd-4.0.4 (#2569).</para>
</listitem>
</itemizedlist>
</listitem>
<listitem> <listitem>
<para>December 20th, 2008</para> <para>December 20th, 2008</para>
<itemizedlist> <itemizedlist>