eth0s/ports/core/dhcpcd/Pkgfile
2019-11-05 17:52:15 +08:00

32 lines
843 B
Text
Executable file

# Description: Implementation of the DHCP client specified in RFC2131
# URL:
# Maintainer:
# Depends on:
name=dhcpcd
version=8.1.1
bootscriptsversion=20191025
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
}