smlinux/net/dhcpcd/smbuild

42 lines
982 B
Text

# Maintainer: PktSurf <smlinux@pktsurf.in>
app=dhcpcd
version=9.1.4
build=1sml
homepage="https://roy.marples.name/projects/dhcpcd"
download="https://github.com/NetworkConfiguration/dhcpcd/archive/refs/tags/dhcpcd-9.1.4.tar.gz"
desc="RFC2131 and 1541-compliant DHCP client"
requires="musl"
prepbuilddir() {
mkandenterbuilddir
rm -rf $app-$version
tar xf $srcdir/$app-$version.tar.?z*
cd $app-$version
fixbuilddirpermissions
}
build() {
./configure \
--prefix=/usr \
--sbindir=/bin \
--libexecdir=/usr/lib/dhcpcd \
--datadir=/usr/share \
--mandir=/usr/share/man \
--dbdir=/var/lib/dhcpcd \
--privsepuser=dhcpcd
make
make install DESTDIR=$pkg
cp LICENSE $pkgdocs/
# Rename the config file as .new
mv $pkg/etc/dhcpcd.conf $pkg/etc/dhcpcd.conf.new
mkfinalpkg
}
sha512sums="
9095276a4492432dd8d7aef2e2a485137bc116240431f01a4d6bc27e484f56178462985485892b7869852f64983811042b636646364c82a3fe8fe84951739658 dhcpcd-9.1.4.tar.lz
"