eth0s/ports/dhcpcd/Pkgfile
2019-10-03 18:00:34 +08:00

32 lines
847 B
Text
Executable file

# Description: Implementation of the DHCP client specified in RFC2131
# URL:
# Maintainer:
# Depends on:
name=dhcpcd
version=8.0.6
bootscriptsversion=20190908
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="yes"
#IFACE="eth0"
#SERVICE="dhcpcd"
#DHCP_START="-b -q <insert appropriate start options here>"
#DHCP_STOP="-k <insert additional stop options here>"
EOF
}