# Contributor: Michael Mason # Contributor: Sören Tempel # Maintainer: Natanael Copa pkgname=dhcpcd pkgver=7.0.4 pkgrel=0 pkgdesc="RFC2131 compliant DHCP client" url="https://roy.marples.name/projects/dhcpcd/" arch="all" license="BSD-2-Clause" makedepends="linux-headers bsd-compat-headers dbus-dev" install="$pkgname.post-upgrade" subpackages="$pkgname-doc $pkgname-openrc" source="http://roy.marples.name/downloads/dhcpcd/$pkgname-$pkgver.tar.xz busybox-logger.patch fix-chrony-conf-location.patch dhcpcd.initd " build() { cd "$builddir" CFLAGS="$CFLAGS -D_GNU_SOURCE -DHAVE_PRINTF_M" ./configure \ --build=$CBUILD \ --host=$CHOST \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var \ --libexecdir=/usr/lib/$pkgname \ --dbdir=/var/lib/$pkgname \ --rundir=/run \ --enable-ipv6 \ --without-dev \ --without-udev make } check() { cd "$builddir" make test } package() { cd "$builddir" make DESTDIR="$pkgdir" install install -Dm755 "$srcdir"/dhcpcd.initd \ "$pkgdir"/etc/init.d/dhcpcd } sha512sums="32382b17a00e6ff7a80868a35424d1cc25410f012048ef099a90fbcb15a43ef6e73d2e65094ac90ccb18ecd92c6fc2c7e2116e19669ad0084ee39182b5cbd7db dhcpcd-7.0.4.tar.xz 692b2c8c75166fabd512a7cc69c650f9391e0f682ce9cbe1771bfa44e82dcf09e322c46493c45ca75000f479d3cddde306754ba31d28a798a15e2b79a56045f0 busybox-logger.patch 1c19eed0f7a008ee96ea392beb327169ff8c83fc27fed20f65f05c9125f60629ebe3474c5e6a7cf4aeeea448fde4264c9b84916efacd67d47ab908c47b1fc3a5 fix-chrony-conf-location.patch e777432c2efc84285b41e63a4687f3bd543f6864218d037529ab78b5ad934de154f28f478bd9facb56628f2953aad8a932bc2eb8b1dfffa0ce2278ffcfc4d880 dhcpcd.initd"