Date: Sun, 30 Dec 2007 19:22:40 GMT From: Roy Marples <roy@marples.name> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/119173: [NEW PORT] net/dhcpcd Message-ID: <200712301922.lBUJMeqD007374@www.freebsd.org> Resent-Message-ID: <200712301930.lBUJU1E1032667@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 119173 >Category: ports >Synopsis: [NEW PORT] net/dhcpcd >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Dec 30 19:30:01 UTC 2007 >Closed-Date: >Last-Modified: >Originator: Roy Marples >Release: FreeBSD-7.0-RC1 >Organization: >Environment: FreeBSD uberlaptop 7.0-RC1 FreeBSD 7.0-RC1 #11: Sun Dec 30 17:17:23 GMT 2007 root@uberlaptop:/usr/obj/usr/src/sys/UBERKERNEL i386 >Description: dhcpcd - an RFC2131 compliant DHCP client This is the same DHCP client as used by many Linux distributions, such as Gentoo. Compared to dhclient it supports more DHCP options out of the box and doesn't require running any userland scripts to configure the interface. It also supports resolvconf, so many applications can write to /etc/resolv.conf sanely. Various knobs in /etc need to be changed by the user from dhclient to dhcpcd, such as the rc script to call in /etc/devd.conf. >How-To-Repeat: >Fix: Patch attached with submission follows: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # dhcpcd # dhcpcd/Makefile # dhcpcd/files # dhcpcd/files/dhcpcd.in # dhcpcd/pkg-descr # dhcpcd/distinfo # dhcpcd/pkg-plist # echo c - dhcpcd mkdir -p dhcpcd > /dev/null 2>&1 echo x - dhcpcd/Makefile sed 's/^X//' >dhcpcd/Makefile << 'END-of-dhcpcd/Makefile' X# New ports collection makefile for: dhcpcd X# Date created: 30 December 2007 X# Whom: Roy Marples <roy@marples.name> X# X# $FreeBSD: $ X XPORTNAME= dhcpcd XPORTVERSION= 3.1.8 XCATEGORIES= net XMASTER_SITES= ${MASTER_SITE_BERLIOS} XMASTER_SITE_SUBDIR= dhcpcd X XMAINTAINER= roy@marples.name XCOMMENT= DHCP client X XMAN8= dhcpcd.8 X XUSE_BZIP2= yes XUSE_RC_SUBR= dhcpcd X XMAKE_ARGS= INFODIR=/var/db X X.include <bsd.port.mk> END-of-dhcpcd/Makefile echo c - dhcpcd/files mkdir -p dhcpcd/files > /dev/null 2>&1 echo x - dhcpcd/files/dhcpcd.in sed 's/^X//' >dhcpcd/files/dhcpcd.in << 'END-of-dhcpcd/files/dhcpcd.in' X#!/bin/sh X X# PROVIDE: dhclient X# KEYWORD: nojail nostart X# X X. /etc/rc.subr X. /etc/network.subr X Xname="dhcpcd" Xifn="$2" Xcommand="/usr/local/sbin/dhcpcd" Xcommand_args="$ifn" Xpidfile="/var/run/dhcpcd-$ifn.pid" Xstart_precmd="dhcpcd_precmd" X Xdhcpcd_precmd() X{ X # Override for $ifn specific flags (see rc.subr for $flags setting) X specific=`get_if_var $ifn dhcpcd_flags_IF` X if [ -z "$flags" -a -n "$specific" ]; then X rc_flags=$specific X fi X X # dhcpcd may need local binaries X export PATH=${PATH}:/usr/local/sbin X} X Xload_rc_config $name Xload_rc_config network X Xif ! dhcpif $ifn; then X return 1 Xfi X Xrun_rc_command "$1" END-of-dhcpcd/files/dhcpcd.in echo x - dhcpcd/pkg-descr sed 's/^X//' >dhcpcd/pkg-descr << 'END-of-dhcpcd/pkg-descr' Xdhcpcd is an RFC2131 compliant DHCP client. X XWWW: http://dhcpcd.berlios.de END-of-dhcpcd/pkg-descr echo x - dhcpcd/distinfo sed 's/^X//' >dhcpcd/distinfo << 'END-of-dhcpcd/distinfo' XMD5 (dhcpcd-3.1.8.tar.bz2) = 11fde90e8132d25abb2497838199e1e5 XSHA256 (dhcpcd-3.1.8.tar.bz2) = 7a1589c434da8842b0f399362927d71d804162e3a1269d3eb779ff1cc0a4cc90 XSIZE (dhcpcd-3.1.8.tar.bz2) = 45417 END-of-dhcpcd/distinfo echo x - dhcpcd/pkg-plist sed 's/^X//' >dhcpcd/pkg-plist << 'END-of-dhcpcd/pkg-plist' Xsbin/dhcpcd END-of-dhcpcd/pkg-plist exit >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200712301922.lBUJMeqD007374>