From owner-svn-ports-head@freebsd.org Sun Jan 15 09:00:20 2017 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 51BFACB1A7D; Sun, 15 Jan 2017 09:00:20 +0000 (UTC) (envelope-from cperciva@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 29281100F; Sun, 15 Jan 2017 09:00:20 +0000 (UTC) (envelope-from cperciva@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v0F90JBp057355; Sun, 15 Jan 2017 09:00:19 GMT (envelope-from cperciva@FreeBSD.org) Received: (from cperciva@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v0F90IE1057350; Sun, 15 Jan 2017 09:00:18 GMT (envelope-from cperciva@FreeBSD.org) Message-Id: <201701150900.v0F90IE1057350@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: cperciva set sender to cperciva@FreeBSD.org using -f From: Colin Percival Date: Sun, 15 Jan 2017 09:00:18 +0000 (UTC) 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 X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Jan 2017 09:00:20 -0000 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 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).