Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Oct 2019 21:31:35 +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: r513630 - in head/net: . dual-dhclient-daemon
Message-ID:  <201910022131.x92LVZFd041648@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cperciva
Date: Wed Oct  2 21:31:35 2019
New Revision: 513630
URL: https://svnweb.freebsd.org/changeset/ports/513630

Log:
  Add net/dual-dhclient-daemon port.
  
  This serves the same purpose as net/dual-dhclient, but does it
  better: While net/dual-dhclient is a trivial shell script which
  launches two dhclients, this is a daemon which
  (a) can be signalled by /etc/rc.d/dhclient stop, and
  (b) relays that signal to the two "child" dhclient daemons.
  
  This is deliberately not replacing the net/dual-dhclient port
  since in the unlikely event that something is broken I don't
  want to see pkg automatically upgrading people; but EC2 AMIs
  will be making use of this new port and I intend to remove the
  old dual-dhclient port at some point.

Added:
  head/net/dual-dhclient-daemon/
  head/net/dual-dhclient-daemon/Makefile   (contents, props changed)
  head/net/dual-dhclient-daemon/distinfo   (contents, props changed)
  head/net/dual-dhclient-daemon/pkg-descr   (contents, props changed)
  head/net/dual-dhclient-daemon/pkg-message   (contents, props changed)
Modified:
  head/net/Makefile

Modified: head/net/Makefile
==============================================================================
--- head/net/Makefile	Wed Oct  2 21:09:34 2019	(r513629)
+++ head/net/Makefile	Wed Oct  2 21:31:35 2019	(r513630)
@@ -136,6 +136,7 @@
     SUBDIR += dtcp
     SUBDIR += dtcpclient
     SUBDIR += dual-dhclient
+    SUBDIR += dual-dhclient-daemon
     SUBDIR += easysoap
     SUBDIR += echoping
     SUBDIR += elixir-kafka_ex

Added: head/net/dual-dhclient-daemon/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/dual-dhclient-daemon/Makefile	Wed Oct  2 21:31:35 2019	(r513630)
@@ -0,0 +1,25 @@
+# $FreeBSD$
+
+PORTNAME=	dual-dhclient-daemon
+PORTVERSION=	0.1
+CATEGORIES=	net
+
+MAINTAINER=	cperciva@FreeBSD.org
+COMMENT=	Spawns dhclients for a dual-stack network
+
+LICENSE=	PD
+
+RUN_DEPENDS=	${LOCALBASE}/sbin/dhclient:net/isc-dhcp44-client
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	cperciva
+GH_PROJECT=	dual-dhclient
+
+PLIST_FILES=	sbin/dual-dhclient
+
+CONFLICTS_INSTALL=	dual-dhclient
+
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/dual-dhclient ${STAGEDIR}${PREFIX}/sbin
+
+.include <bsd.port.mk>

Added: head/net/dual-dhclient-daemon/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/dual-dhclient-daemon/distinfo	Wed Oct  2 21:31:35 2019	(r513630)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1569319837
+SHA256 (cperciva-dual-dhclient-0.1_GH0.tar.gz) = 48a6a70086f2a3610ec1d2d7dee2b725fbc4e96ae0961fac1499b3c7953be581
+SIZE (cperciva-dual-dhclient-0.1_GH0.tar.gz) = 1648

Added: head/net/dual-dhclient-daemon/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/dual-dhclient-daemon/pkg-descr	Wed Oct  2 21:31:35 2019	(r513630)
@@ -0,0 +1,3 @@
+This port provides a daemon 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-daemon/pkg-message
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/dual-dhclient-daemon/pkg-message	Wed Oct  2 21:31:35 2019	(r513630)
@@ -0,0 +1,10 @@
+[
+{ type: install
+  message: <<EOM
+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).
+EOM
+}
+]



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201910022131.x92LVZFd041648>