32 lines
891 B
Text
Executable file
32 lines
891 B
Text
Executable file
# Description: Implementation of the DHCP client specified in RFC2131
|
|
# URL:
|
|
# Maintainer: Emmett1, emmett1 dot 2miligrams at gmail dot com
|
|
# Depends on:
|
|
|
|
name=dhcpcd
|
|
version=9.4.1
|
|
bootscriptsversion=20210110
|
|
release=1
|
|
source=(https://roy.marples.name/downloads/dhcpcd/dhcpcd-$version.tar.xz
|
|
http://anduin.linuxfromscratch.org/BLFS/blfs-bootscripts/blfs-bootscripts-$bootscriptsversion.tar.xz)
|
|
|
|
build() {
|
|
cd $name-$version
|
|
|
|
./configure --libexecdir=/lib/dhcpcd \
|
|
--dbdir=/var/lib/dhcpcd
|
|
make
|
|
make DESTDIR=$PKG install
|
|
|
|
cd ../blfs-bootscripts-$bootscriptsversion
|
|
make DESTDIR=$PKG install-service-dhcpcd
|
|
|
|
mkdir -p $PKG/etc/sysconfig/
|
|
cat > $PKG/etc/sysconfig/ifconfig.eth0 << "EOF"
|
|
ONBOOT="no"
|
|
IFACE="eth0"
|
|
SERVICE="dhcpcd"
|
|
#DHCP_START="-b -q <insert appropriate start options here>"
|
|
#DHCP_STOP="-k <insert additional stop options here>"
|
|
EOF
|
|
}
|