# Contributor: Michael Mason # Maintainer: Natanael Copa pkgname=dhcpcd pkgver=6.8.2 pkgrel=0 pkgdesc="RFC2131 compliant DHCP client" url="http://roy.marples.name/projects/dhcpcd/" arch="all" license="BSD-2" depends= makedepends="linux-headers" install= subpackages="$pkgname-doc" source="http://roy.marples.name/downloads/dhcpcd/$pkgname-$pkgver.tar.bz2 busybox-logger.patch dhcpcd.initd" prepare() { cd "$srcdir/$pkgname-$pkgver" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$srcdir/$pkgname-$pkgver" CFLAGS="$CFLAGS -D_GNU_SOURCE" ./configure \ --build=$CBUILD \ --host=$CHOST \ --libexecdir=/lib/dhcpcd \ --dbdir=/var/lib/dhcpcd \ || return 1 make } package() { cd "$srcdir"/$pkgname-$pkgver make DESTDIR="$pkgdir" install install -Dm755 "$srcdir"/dhcpcd.initd "$pkgdir"/etc/init.d/dhcpcd } md5sums="947f2964cf280edc27746c93b83128b0 dhcpcd-6.8.2.tar.bz2 231d2b03e7e93fa6cc7406889e9945e3 busybox-logger.patch 5cd5809d11b77b30f21df8418729d70b dhcpcd.initd" sha256sums="a72187fe1f31553264571720d47ebf919cf484f04c2fa974e57a10e16a505cb2 dhcpcd-6.8.2.tar.bz2 aec6c5d7a41551ca7cd3849a53621692ee0a1a6d259892beaf448eb1f2d4af01 busybox-logger.patch 6bb9b8b0075e45e63e898ed043f3c5951dc3e95c1fa62d22cc6e0616c792ecd1 dhcpcd.initd" sha512sums="cef488618c2bab398adb4b5021745ca9a8319067400604d087cb2c62142449adc40f25a14d90c87147c9412ffa1a85e6253374e98fea2de8024c94e3771e1c41 dhcpcd-6.8.2.tar.bz2 83dc7bfd36b6b416c931775bb35a0d2951ed04c421195c45bfed80a11a7adbed7c80ade1c1246847c2fb1bf15a7b6e83100f16605ee84f750440d7bc9f7f5ef3 busybox-logger.patch 6d3220155f2d9ed3e3a00afd378eeb70d435e19804201f8bb35498f1f7f3dfdaeaa2f4a01a18f5e96b457d9c173bc6a206b3e67ebf6d95da7e7b350dcd153fde dhcpcd.initd"