1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-09 06:51:44 +00:00

dhcpcd is an RFC2131 compliant DHCP client.

WWW: http://dhcpcd.berlios.de

PR:		ports/119173
Submitted by:	Roy Marples <roy (AT) marples.name>
This commit is contained in:
Lars Engels 2007-12-31 17:23:26 +00:00
parent 9d72d66aa6
commit c7e6df5974
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=204767
5 changed files with 67 additions and 0 deletions

View File

@ -108,6 +108,7 @@
SUBDIR += dgd-net
SUBDIR += dhcp-agent
SUBDIR += dhcp6
SUBDIR += dhcpcd
SUBDIR += dhcpdump
SUBDIR += dhcperf
SUBDIR += dhcping

24
net/dhcpcd/Makefile Normal file
View File

@ -0,0 +1,24 @@
# New ports collection makefile for: dhcpcd
# Date created: 30 December 2007
# Whom: Roy Marples <roy@marples.name>
#
# $FreeBSD$
PORTNAME= dhcpcd
PORTVERSION= 3.1.8
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_BERLIOS}
MASTER_SITE_SUBDIR= dhcpcd
MAINTAINER= roy@marples.name
COMMENT= DHCP client
PLIST_FILES= sbin/dhcpcd
MAN8= dhcpcd.8
USE_BZIP2= yes
USE_RC_SUBR= dhcpcd
MAKE_ARGS= INFODIR=/var/db
.include <bsd.port.mk>

3
net/dhcpcd/distinfo Normal file
View File

@ -0,0 +1,3 @@
MD5 (dhcpcd-3.1.8.tar.bz2) = 6332c695e28100acbb84730e7ff7f6e9
SHA256 (dhcpcd-3.1.8.tar.bz2) = c78eae99a63da25b9220995f62dbe735520e5044c199211c923503fd5981d2a1
SIZE (dhcpcd-3.1.8.tar.bz2) = 45423

View File

@ -0,0 +1,36 @@
#!/bin/sh
# PROVIDE: dhclient
# KEYWORD: nojail nostart
#
. /etc/rc.subr
. /etc/network.subr
name="dhcpcd"
ifn="$2"
command="/usr/local/sbin/dhcpcd"
command_args="$ifn"
pidfile="/var/run/dhcpcd-$ifn.pid"
start_precmd="dhcpcd_precmd"
dhcpcd_precmd()
{
# Override for $ifn specific flags (see rc.subr for $flags setting)
specific=`get_if_var $ifn dhcpcd_flags_IF`
if [ -z "$flags" -a -n "$specific" ]; then
rc_flags=$specific
fi
# dhcpcd may need local binaries
export PATH=${PATH}:/usr/local/sbin
}
load_rc_config $name
load_rc_config network
if ! dhcpif $ifn; then
return 1
fi
run_rc_command "$1"

3
net/dhcpcd/pkg-descr Normal file
View File

@ -0,0 +1,3 @@
dhcpcd is an RFC2131 compliant DHCP client.
WWW: http://dhcpcd.berlios.de