# $Id$ PNAME="dhcpcd" PVER="5.1.5" PBUILD="r1" PCATEGORIE="net-misc" STATE="unstable" DESCRIPTION="dhcpcd is an implementation of the DHCP client specified in RFC2131." HOMEPAGE="http://roy.marples.name/dhcpcd" DEPEND=">= virtual/glibc" SRCFILE="${PNAME}-${PVER}.tar.bz2" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude mtools SRC_URI=( http://roy.marples.name/downloads/${PNAME}/${SRCFILE} mirror://${PNAME}/${SRCFILE} ) UP2DATE="updatecmd ${HOMEPAGE}/wiki/DhcpcdDownload | grep 'Stable release' | sed 's/.* \(.*\)/\1/'" src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # disable zeroconf support # we don't want get an automatic ip, only if really requested cat >> dhcpcd.conf << EOF # disabled zeroconf support - we don't want to get an APIPA-address automatically noipv4ll EOF } src_compile() { cd ${SRCDIR} mconfigure \ --prefix= \ --libexecdir=/lib/dhcpcd \ --localstatedir=/var \ --dbdir=/var/lib/dhcpcd \ --with-hook=ntp.conf \ --with-hook=yp.conf \ --with-hook=dhcpcd-compat \ || die mmake || die } src_install() { cd ${SRCDIR} mmake DESTDIR=${BINDIR} install || die # create dhcpcd status dir mkeepdir /var/run/dhcpcd || die mkeepdir /var/lib/dhcpcd || die # create an empty ntp.conf to shutup warnings memptyfile /etc/ntp.conf || die minstalldocs ChangeLog || die }