cd ${LFS_TMP}/${PACKAGE}
sed -i 's%\(^sbindir =\).*%\1 @prefix@@sbindir@%' server/Makefile.in
- CONFIGURE_OPTS="\
- ${CONFIGURE_OPTS} \
+ CONFIGURE_OPTS+=" \
--localstatedir=/var \
--sbindir=/sbin \
--with-srv-lease-file=/var/state/dhcp/dhcpd.leases \
hvbuild_post()
{
- install -m 755 client/scripts/linux /sbin/dhclient-script
-
- # This is for the DHCP client
- cat > /etc/dhclient.conf << "EOF"
-# dhclient.conf
-
-timeout 15;
-
-interface "eth0"{
- supersede domain-name "_DOMAIN_";
- request subnet-mask, broadcast-address, time-offset, routers,
- domain-name, domain-name-servers, host-name;
- require subnet-mask, domain-name-servers;
-}
-EOF
-
- sed -i -e "s!_DOMAIN_!${DOMAIN}!g" /etc/dhclient.conf
-
- cat > /etc/sysconfig/network/dhcp-client << "EOF"
-# dhcp-client
-# DHCP client program informations
-#
-DHCP_PROG="/sbin/dhclient"
-DHCP_START="-q -1"
-DHCP_STOP="-q -r"
-EOF
-
# Create a base configuration file for a DHCP server.
cat > /etc/dhcpd.conf << EOF
# Configuration file for DHCP server.