core/dhcpcd/Pkgfile

32 lines
717 B
Plaintext
Raw Normal View History

2006-12-15 09:19:23 +01:00
# Description: An RFC2131-compliant DHCP client daemon
2021-10-26 13:00:45 +02:00
# URL: https://roy.marples.name/projects/dhcpcd/
# Maintainer: CRUX System Team, core-ports at crux dot nu
# Depends on: eudev
2006-02-23 16:26:10 +01:00
name=dhcpcd
2023-12-19 10:05:25 +01:00
version=10.0.6
release=1
2023-04-21 09:50:05 +02:00
source=(https://github.com/NetworkConfiguration/dhcpcd/releases/download/v$version/$name-$version.tar.xz
2021-10-26 13:00:45 +02:00
rc.dhcpcd)
2006-02-23 16:26:10 +01:00
2021-10-26 13:00:45 +02:00
build() {
2023-04-21 09:50:05 +02:00
cd $name-$version
2008-09-17 10:46:40 +02:00
2021-10-26 13:00:45 +02:00
./configure \
--prefix= \
--libexecdir=/lib/dhcpcd \
--dbdir=/var/lib/dhcpcd \
--sysconfdir=/etc/dhcpcd \
2022-01-17 17:20:08 +01:00
--rundir=/run/dhcpcd \
2021-10-26 13:00:45 +02:00
--enable-privsep \
--privsepuser=dhcpcd
2008-09-17 10:46:40 +02:00
2021-10-26 13:00:45 +02:00
make
make DESTDIR=$PKG install
2021-10-26 13:00:45 +02:00
install -d -o dhcpcd -g dhcpcd $PKG/var/lib/dhcpcd
install -D -m 0755 $SRC/rc.dhcpcd $PKG/etc/rc.d/dhcpcd
2021-10-26 13:00:45 +02:00
chmod -R u+w $PKG
2006-02-23 16:26:10 +01:00
}