eth0s/ports/core/dhcpcd/Pkgfile

33 lines
891 B
Text
Raw Normal View History

# Description: Implementation of the DHCP client specified in RFC2131
# URL:
2019-11-10 23:58:56 +08:00
# Maintainer: Emmett1, emmett1 dot 2miligrams at gmail dot com
# Depends on:
name=dhcpcd
2021-04-18 08:19:42 +08:00
version=9.4.0
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"
2019-10-16 17:23:02 +08:00
ONBOOT="no"
IFACE="eth0"
SERVICE="dhcpcd"
#DHCP_START="-b -q <insert appropriate start options here>"
#DHCP_STOP="-k <insert additional stop options here>"
EOF
}