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.
This commit is contained in:
Colin Percival 2019-10-02 21:31:35 +00:00
parent 127e345bd4
commit 7f351d8fcd
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=513630
5 changed files with 42 additions and 0 deletions

View file

@ -136,6 +136,7 @@
SUBDIR += dtcp
SUBDIR += dtcpclient
SUBDIR += dual-dhclient
SUBDIR += dual-dhclient-daemon
SUBDIR += easysoap
SUBDIR += echoping
SUBDIR += elixir-kafka_ex

View file

@ -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>

View file

@ -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

View file

@ -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.

View file

@ -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
}
]