# Contributor: Michael Mason # Maintainer: Natanael Copa pkgname=dhcpcd pkgver=6.6.7 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="654cc690d1d490d139946845ea4fbbed dhcpcd-6.6.7.tar.bz2 ee37c1f2b73055e6cf127fc8e581af87 busybox-logger.patch ecbd807cf3f87d7c5b6095bf63f26894 dhcpcd.initd" sha256sums="43f93a0a536b93e26e4c7733582df7595d73aff9acfef298323e59dd8db8cdab dhcpcd-6.6.7.tar.bz2 a590961c9e53829a9d33ae458fc4c4b68880f5b2b972c3a78c60a947b8c56fb5 busybox-logger.patch 72b42c9939fda3fb56666813513029ed36194c1708bddce06bcb3e131e547492 dhcpcd.initd" sha512sums="793e937ace790669f1e55d1974f11cfd4f4300f5ede2b31b8ac880ab316f47317a8256f40f87228d415653090873158a67a8ecd7eeefd9791475f1dcfadd01b6 dhcpcd-6.6.7.tar.bz2 35960cc9197750890d1a8540eb920e6c0544295993044718aa5309303e29eb2c7622eee74f742861cf446d88c7b80b5ea104f3f6bcc3e9daa5be59237a962971 busybox-logger.patch 0a188b67f0641a480ac6d3cf6a634dddc4b72b1b9b47df33b05fba5d802693dd88e0cece0bfe9b641009c03022c620595b1ce35cd53d5024ee87f4c81e9acf63 dhcpcd.initd"