core/dhcpcd/Pkgfile
2022-10-03 18:46:36 +02:00

33 lines
750 B
Plaintext

# Description: An RFC2131-compliant DHCP client daemon
# URL: https://roy.marples.name/projects/dhcpcd/
# Maintainer: CRUX System Team, core-ports at crux dot nu
# Depends on: eudev
name=dhcpcd
version=9.4.0.105
release=1
#source=(https://roy.marples.name/downloads/dhcpcd/$name-$version.tar.xz
source=(https://crux.nu/files/distfiles/$name-$version.tar.xz
rc.dhcpcd)
build() {
cd $name-$version
./configure \
--prefix= \
--libexecdir=/lib/dhcpcd \
--dbdir=/var/lib/dhcpcd \
--sysconfdir=/etc/dhcpcd \
--rundir=/run/dhcpcd \
--enable-privsep \
--privsepuser=dhcpcd
make
make DESTDIR=$PKG install
install -d -o dhcpcd -g dhcpcd $PKG/var/lib/dhcpcd
install -D -m 0755 $SRC/rc.dhcpcd $PKG/etc/rc.d/dhcpcd
chmod -R u+w $PKG
}