Date: Sun, 15 Jan 2017 09:00:18 +0000 (UTC) From: Colin Percival <cperciva@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r431537 - in head/net: . dual-dhclient dual-dhclient/files Message-ID: <201701150900.v0F90IE1057350@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: cperciva Date: Sun Jan 15 09:00:18 2017 New Revision: 431537 URL: https://svnweb.freebsd.org/changeset/ports/431537 Log: Add "dual dhclient" script, which can be specified as dhclient_program in rc.conf in order to launch the base system dhclient for IPv4 and the ISC dhcp client for IPv6. I'm not sure if this will be useful to anyone else, but adding this trivial port will simplify the configuration of IPv6 on Amazon EC2 instances. I hope this port becomes redundant in the future due to the base system gaining support for IPv6 DHCP. Added: head/net/dual-dhclient/ head/net/dual-dhclient/Makefile (contents, props changed) head/net/dual-dhclient/files/ head/net/dual-dhclient/files/dual-dhclient (contents, props changed) head/net/dual-dhclient/pkg-descr (contents, props changed) head/net/dual-dhclient/pkg-message (contents, props changed) Modified: head/net/Makefile Modified: head/net/Makefile ============================================================================== --- head/net/Makefile Sun Jan 15 04:18:45 2017 (r431536) +++ head/net/Makefile Sun Jan 15 09:00:18 2017 (r431537) @@ -119,6 +119,7 @@ SUBDIR += dshell SUBDIR += dtcp SUBDIR += dtcpclient + SUBDIR += dual-dhclient SUBDIR += e169-stats SUBDIR += easysoap SUBDIR += echoping Added: head/net/dual-dhclient/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/dual-dhclient/Makefile Sun Jan 15 09:00:18 2017 (r431537) @@ -0,0 +1,25 @@ +# $FreeBSD$ + +PORTNAME= dual-dhclient +PORTVERSION= 1.0 +CATEGORIES= net +MASTER_SITES= # none +DISTFILES= # none +EXTRACT_ONLY= # none + +MAINTAINER= cperciva@FreeBSD.org +COMMENT= Spawns dhclients for a dual-stack network + +LICENSE= PD + +RUN_DEPENDS= ${LOCALBASE}/sbin/dhclient:net/isc-dhcp43-client + +NO_WRKSUBDIR= yes +NO_BUILD= yes + +PLIST_FILES= sbin/dual-dhclient + +do-install: + ${INSTALL_SCRIPT} ${FILESDIR}/dual-dhclient ${STAGEDIR}${PREFIX}/sbin + +.include <bsd.port.mk> Added: head/net/dual-dhclient/files/dual-dhclient ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/dual-dhclient/files/dual-dhclient Sun Jan 15 09:00:18 2017 (r431537) @@ -0,0 +1,8 @@ +#!/bin/sh + +# $FreeBSD$ + +# Public domain + +/sbin/dhclient "$@" +/usr/local/sbin/dhclient -6 -nw -cf /dev/null "$@" Added: head/net/dual-dhclient/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/dual-dhclient/pkg-descr Sun Jan 15 09:00:18 2017 (r431537) @@ -0,0 +1,3 @@ +This port provides a script which spawns both /sbin/dhclient and +/usr/local/sbin/dhclient -6; this simplifies the configuration needed to +run DHCP on both protocols of a dual-stack network. Added: head/net/dual-dhclient/pkg-message ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/dual-dhclient/pkg-message Sun Jan 15 09:00:18 2017 (r431537) @@ -0,0 +1,4 @@ +To enable dual-stack DHCP, set + dhclient_program="/usr/local/sbin/dual-dhclient" +in /etc/rc.conf (and make sure the appropriate ifconfig_* lines include +DHCP or SYNCDHCP).
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201701150900.v0F90IE1057350>