8.6. DHCPCD-5.0.6

The DHCPCD package provides a DHCP Client for network configuration.

8.6.1. Environment Settings

This package requires compiler variables to be set for the target in the environment.

export CC="${CLFS_TARGET}-gcc"
export CXX="${CLFS_TARGET}-g++"
export AR="${CLFS_TARGET}-ar"
export AS="${CLFS_TARGET}-as"
export RANLIB="${CLFS_TARGET}-ranlib"
export LD="${CLFS_TARGET}-ld"
export STRIP="${CLFS_TARGET}-strip"

8.6.2. Installation of DHCPCD

If you wish to configure your network to connect to a DHCP server, you will first need to install a DHCP client. CLFS uses the DHCPCD package for this.

Prepare DHCPCD for compilation:

make PREFIX=/usr BINDIR=/sbin SYSCONFDIR=/etc \
    DBDIR=/var/lib/dhcpcd LIBEXECDIR=/usr/lib/dhcpcd

This package does not come with a test suite.

Install the package:

make PREFIX=/usr BINDIR=/sbin SYSCONFDIR=/etc \
    DBDIR=/var/lib/dhcpcd LIBEXECDIR=/usr/lib/dhcpcd \
    DESTDIR=${CLFS} install

8.6.3. Contents of dhcpcd

Installed files: dhcpcd

Short Descriptions

dhcpcd

dhcpcd is an implementation of the DHCP client specified in RFC 2131. It gets the host information from a DHCP server and configures the network interface automatically.