Show dhcpcd.xml syntax highlighted
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd" [
<!ENTITY % general_entities SYSTEM "../config/general.ent">
<!ENTITY % package_entities SYSTEM "../config/packages/network.ent">
%general_entities;
%package_entities;
]>
<alfs>
<package name="dhcpcd" version="&dhcpcd-version;">
<download>
<url>&dhcpcd-url;</url>
<file>&dhcpcd-package;</file>
<destination>&packages_dir;</destination>
</download>
<stage name="Unpacking">
<unpack>
<archive>&packages_dir;/&dhcpcd-package;</archive>
<destination>&build_dir;</destination>
</unpack>
</stage>
<stage name="Installing">
<stageinfo>
<base>&build_dir;/&dhcpcd-directory;</base>
</stageinfo>
<configure>
<param>--prefix=/usr</param>
</configure>
<make>
</make>
<make>
<param>install</param>
</make>
<execute command="install -v -d /etc/sysconfig/network-devices/ifconfig.eth0"></execute>
</stage>
<stage name="post-install">
&bootscripts-get;
<stage name="Installing dhcpcd service script">
<stageinfo>
<base>&build_dir;/&blfs-bootscripts-directory;</base>
</stageinfo>
<make>
<param>install-service-dhcpcd</param>
</make>
</stage>
<stage name="Configuring dhcpcd">
<textdump>
<file>/etc/sysconfig/network-devices/ifconfig.eth0/dhcpcd</file>
<content>
=ONBOOT="yes"
=SERVICE="dhcpcd"
=DHCP_START=""
=DHCP_STOP="-k"
=
=# Set PRINTIP="yes" to have the script print
=# the DHCP assigned IP address
=PRINTIP="no"
=
=# Set PRINTALL="yes" to print the DHCP assigned values for
=# IP, SM, DG, and 1st NS. This requires PRINTIP="yes".
=PRINTALL="no"
</content>
</textdump>
</stage>
&bootscripts-clean;
<execute command="touch">
<param>&LFS-pkgmgr;/dhcpcd-&dhcpcd-version;</param>
</execute>
</stage>
<stage name="Cleanup">
<remove>&build_dir;/&dhcpcd-directory;</remove>
</stage>
</package>
</alfs>
See more files for this project here