From bd815eaeedc1960e9fb6b6ac4a251279454d5738 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 30 Apr 2009 02:00:16 +0200 Subject: [PATCH] dhcpcd: update to 5.0.0. Provide a rc.d script. --HG-- extra : convert_revision : 7a0e0a0b2243d5b4d310b3c731fa94f3ec5e0d61 --- templates/dhcpcd/files/dhcpcd | 16 ++++++++++++++++ templates/dhcpcd/template | 12 +++++++++--- 2 files changed, 25 insertions(+), 3 deletions(-) create mode 100755 templates/dhcpcd/files/dhcpcd diff --git a/templates/dhcpcd/files/dhcpcd b/templates/dhcpcd/files/dhcpcd new file mode 100755 index 00000000000..68209fccf61 --- /dev/null +++ b/templates/dhcpcd/files/dhcpcd @@ -0,0 +1,16 @@ +#!/bin/sh +# +# PROVIDE: dhcpcd +# REQUIRE: network +# BEFORE: NETWORKING +# KEYWORD: shutdown + +$_rc_subr_loaded . /etc/rc.subr + +name=dhcpcd +rcvar=$name +command=/sbin/$name +pidfile=/var/run/${name}.pid + +load_rc_config $name +run_rc_command "$1" diff --git a/templates/dhcpcd/template b/templates/dhcpcd/template index 3fad41eaa2c..83ee857abde 100644 --- a/templates/dhcpcd/template +++ b/templates/dhcpcd/template @@ -1,11 +1,11 @@ # Template file for 'dhcpcd' pkgname=dhcpcd -version=4.0.13 -distfiles="http://roy.marples.name/downloads/$pkgname/$pkgname-$version.tar.bz2" +version=5.0.0 +distfiles="http://roy.marples.name/downloads/dhcpcd/dhcpcd-$version.tar.bz2" build_style=gnu_makefile short_desc="RFC2131 compliant DHCP client" maintainer="Juan RP " -checksum=8a55b9a0cc1cdfcbf670eb516d229e8f687f0086a610f8e071d700a837750c47 +checksum=dcd3e1e07b9ccbb7682562345cc2656c13a41892d44f4cd631c3541aab3ad407 long_desc=" dhcpcd is a RFC 2131 compliant DHCP client. It's also a RFC 3927 compliant IPv4LL (aka ZeroConf) client. @@ -24,3 +24,9 @@ pre_configure() sed -i 's/\/libexec/\/lib\/dhcpcd/' Makefile sed -i 's/\/libexec/\/lib\/dhcpcd/' dhcpcd-hooks/Makefile } + +post_install() +{ + # Install the rc.d script + install -D -m755 ${FILESDIR}/dhcpcd ${DESTDIR}/etc/rc.d/dhcpcd +}