Difference between revisions of "Dhcpcd"

From CBLFS
Jump to navigationJump to search
Line 15: Line 15:
 
Compile the package:
 
Compile the package:
  
  make CC="gcc" PREFIX=/usr SYSCONFDIR=/etc \
+
  make CC="gcc" PREFIX=/usr SBINDIR=/sbin SYSCONFDIR=/etc \
 
     DBDIR=/var/lib/dhcpcd LIBEXECDIR=/usr/lib/dhcpcd
 
     DBDIR=/var/lib/dhcpcd LIBEXECDIR=/usr/lib/dhcpcd
  
 
Install the package
 
Install the package
  
  make CC="gcc" PREFIX=/usr SYSCONFDIR=/etc \
+
  make CC="gcc" PREFIX=/usr SBINDIR=/sbin SYSCONFDIR=/etc \
 
     DBDIR=/var/lib/dhcpcd LIBEXECDIR=/usr/lib/dhcpcd install
 
     DBDIR=/var/lib/dhcpcd LIBEXECDIR=/usr/lib/dhcpcd install
  
Line 30: Line 30:
 
Compile the package:
 
Compile the package:
  
  make CC="gcc ${BUILD32}" PREFIX=/usr SYSCONFDIR=/etc \
+
  make CC="gcc ${BUILD32}" PREFIX=/usr SBINDIR=/sbin SYSCONFDIR=/etc \
 
     DBDIR=/var/lib/dhcpcd LIBEXECDIR=/usr/lib/dhcpcd
 
     DBDIR=/var/lib/dhcpcd LIBEXECDIR=/usr/lib/dhcpcd
  
 
Install the package
 
Install the package
  
  make CC="gcc ${BUILD32}" PREFIX=/usr SYSCONFDIR=/etc \
+
  make CC="gcc ${BUILD32}" PREFIX=/usr SBINDIR=/sbin SYSCONFDIR=/etc \
 
     DBDIR=/var/lib/dhcpcd LIBEXECDIR=/usr/lib/dhcpcd install
 
     DBDIR=/var/lib/dhcpcd LIBEXECDIR=/usr/lib/dhcpcd install
  
Line 42: Line 42:
 
Compile the package:
 
Compile the package:
  
  make CC="gcc ${BUILDN32}" PREFIX=/usr SYSCONFDIR=/etc \
+
  make CC="gcc ${BUILDN32}" PREFIX=/usr SBINDIR=/sbin SYSCONFDIR=/etc \
 
     DBDIR=/var/lib/dhcpcd LIBEXECDIR=/usr/lib/dhcpcd
 
     DBDIR=/var/lib/dhcpcd LIBEXECDIR=/usr/lib/dhcpcd
  
 
Install the package
 
Install the package
  
  make CC="gcc ${BUILDN32}" PREFIX=/usr SYSCONFDIR=/etc \
+
  make CC="gcc ${BUILDN32}" PREFIX=/usr SBINDIR=/sbin SYSCONFDIR=/etc \
 
     DBDIR=/var/lib/dhcpcd LIBEXECDIR=/usr/lib/dhcpcd install
 
     DBDIR=/var/lib/dhcpcd LIBEXECDIR=/usr/lib/dhcpcd install
  
Line 54: Line 54:
 
Compile the package:
 
Compile the package:
  
  make CC="gcc ${BUILD64}" PREFIX=/usr SYSCONFDIR=/etc \
+
  make CC="gcc ${BUILD64}" PREFIX=/usr SBINDIR=/sbin SYSCONFDIR=/etc \
 
     DBDIR=/var/lib/dhcpcd LIBEXECDIR=/usr/lib/dhcpcd
 
     DBDIR=/var/lib/dhcpcd LIBEXECDIR=/usr/lib/dhcpcd
  
 
Install the package
 
Install the package
  
  make CC="gcc ${BUILD64}" PREFIX=/usr SYSCONFDIR=/etc \
+
  make CC="gcc ${BUILD64}" PREFIX=/usr SBINDIR=/sbin SYSCONFDIR=/etc \
 
     DBDIR=/var/lib/dhcpcd LIBEXECDIR=/usr/lib/dhcpcd install
 
     DBDIR=/var/lib/dhcpcd LIBEXECDIR=/usr/lib/dhcpcd install
  

Revision as of 11:29, 9 November 2008

Download Source: http://roy.marples.name/dhcpcd/dhcpcd-5.2.8.tar.bz2

Introduction to Dhcpcd

A DHCP client

Project Homepage: http://roy.marples.name/dhcpcd

Dependencies

Non-Multilib

Compile the package:

make CC="gcc" PREFIX=/usr SBINDIR=/sbin SYSCONFDIR=/etc \
    DBDIR=/var/lib/dhcpcd LIBEXECDIR=/usr/lib/dhcpcd

Install the package

make CC="gcc" PREFIX=/usr SBINDIR=/sbin SYSCONFDIR=/etc \
    DBDIR=/var/lib/dhcpcd LIBEXECDIR=/usr/lib/dhcpcd install

Multilib

This package does not provide any libraries so only one installation is needed.

32Bit

Compile the package:

make CC="gcc ${BUILD32}" PREFIX=/usr SBINDIR=/sbin SYSCONFDIR=/etc \
    DBDIR=/var/lib/dhcpcd LIBEXECDIR=/usr/lib/dhcpcd

Install the package

make CC="gcc ${BUILD32}" PREFIX=/usr SBINDIR=/sbin SYSCONFDIR=/etc \
    DBDIR=/var/lib/dhcpcd LIBEXECDIR=/usr/lib/dhcpcd install

N32

Compile the package:

make CC="gcc ${BUILDN32}" PREFIX=/usr SBINDIR=/sbin SYSCONFDIR=/etc \
    DBDIR=/var/lib/dhcpcd LIBEXECDIR=/usr/lib/dhcpcd

Install the package

make CC="gcc ${BUILDN32}" PREFIX=/usr SBINDIR=/sbin SYSCONFDIR=/etc \
    DBDIR=/var/lib/dhcpcd LIBEXECDIR=/usr/lib/dhcpcd install

64Bit

Compile the package:

make CC="gcc ${BUILD64}" PREFIX=/usr SBINDIR=/sbin SYSCONFDIR=/etc \
    DBDIR=/var/lib/dhcpcd LIBEXECDIR=/usr/lib/dhcpcd

Install the package

make CC="gcc ${BUILD64}" PREFIX=/usr SBINDIR=/sbin SYSCONFDIR=/etc \
    DBDIR=/var/lib/dhcpcd LIBEXECDIR=/usr/lib/dhcpcd install

Configuring

Network Service

Install the dhcpcd service included in the bootscripts package:

make install-service-dhcpcd

Example Configuration

install -v -d /etc/sysconfig/network-devices/ifconfig.eth0 &&
cat > /etc/sysconfig/network-devices/ifconfig.eth0/dhcpcd << "EOF"
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"
EOF
Retrieved from "?title=Dhcpcd&oldid=15969"