[Midnightbsd-cvs] mports: mports/net: add KAME project dhcp6 client

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Wed Sep 24 21:08:49 EDT 2008


Log Message:
-----------
add KAME project dhcp6 client

Modified Files:
--------------
    mports/net:
        Makefile (r1.88 -> r1.89)

Added Files:
-----------
    mports/net/dhcp6:
        Makefile (r1.1)
        distinfo (r1.1)
        pkg-descr (r1.1)
        pkg-plist (r1.1)
    mports/net/dhcp6/files:
        dhcp6c.sh.in (r1.1)
        dhcp6relay.sh.in (r1.1)
        dhcp6s.sh.in (r1.1)

-------------- next part --------------
Index: Makefile
===================================================================
RCS file: /home/cvs/mports/net/Makefile,v
retrieving revision 1.88
retrieving revision 1.89
diff -L net/Makefile -L net/Makefile -u -r1.88 -r1.89
--- net/Makefile
+++ net/Makefile
@@ -13,6 +13,7 @@
     SUBDIR += avahi-qt3
     SUBDIR += cvsup
     SUBDIR += cvsup-without-gui
+    SUBDIR += dhcp6
     SUBDIR += dhcpdump
     SUBDIR += fping
     SUBDIR += freeradius
--- /dev/null
+++ net/dhcp6/pkg-descr
@@ -0,0 +1,20 @@
+WIDE-DHCPv6 is an open-source implementation of Dynamic Host
+Configuration Protocol for IPv6 (DHCPv6), originally developed 
+by the KAME project.
+
+The implementation mainly conforms to the following standards:
+
+- RFC3315: Dynamic Host Configuration Protocol for IPv6 (DHCPv6)
+- RFC3319: DHCPv6 Options for Session Initiation Protocol (SIP) Servers
+- RFC3633: IPv6 Prefix Options for DHCP
+- RFC3646: DNS Configuration options for DHCPv6
+- RFC3898: Network Information Service (NIS) Configuration Options for DHCPv6
+- RFC4075: Simple Network Time Protocol (SNTP) Configuration Option for DHCPv6
+- RFC4242: Information Refresh Time Option for DHCPv6
+- RFC4280: DHCP Options for Broadcast and Multicast Control Servers
+
+Note that the current implementation does not support temporary
+IPv6 address allocation by DHCPv6, and there is no plan to 
+implement that feature at the moment.
+
+WWW: http://wide-dhcpv6.sourceforge.net/.
--- /dev/null
+++ net/dhcp6/pkg-plist
@@ -0,0 +1,15 @@
+ at unexec %D/etc/rc.d/dhcp6s.sh forcestop 2>/dev/null || true
+ at unexec %D/etc/rc.d/dhcp6relay.sh forcestop 2>/dev/null || true
+ at unexec %D/etc/rc.d/dhcp6c.sh forcestop 2>/dev/null || true
+ at unexec %D/etc/rc.d/dhcp6s forcestop 2>/dev/null || true
+ at unexec %D/etc/rc.d/dhcp6relay  forcestop 2>/dev/null || true
+ at unexec %D/etc/rc.d/dhcp6c forcestop 2>/dev/null || true
+etc/dhcp6s.conf.sample
+etc/dhcp6c.conf.sample
+sbin/dhcp6c
+sbin/dhcp6relay
+sbin/dhcp6s
+sbin/dhcp6ctl
+%%PORTDOCS%%%%DOCSDIR%%/COPYRIGHT
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
--- /dev/null
+++ net/dhcp6/Makefile
@@ -0,0 +1,38 @@
+# New ports collection makefile for:	dhcp6
+# Date created:		Sept 24, 2008
+# Whom:			laffer1
+#
+# $MidnightBSD: mports/net/dhcp6/Makefile,v 1.1 2008/09/25 01:08:46 laffer1 Exp $
+#
+
+PORTNAME=	dhcp6
+PORTVERSION=	20080615
+CATEGORIES=	net ipv6
+MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR=	wide-dhcpv6
+DISTNAME=	wide-dhcpv6-${PORTVERSION}
+
+FAKE_OPTS=	prefixhack
+
+MAINTAINER=	ports at MidnightBSD.org
+COMMENT=	KAME DHCP6 client, server, and relay
+LICENSE=	bsd3
+
+WRKSRC=		${WRKDIR}/${DISTNAME}
+GNU_CONFIGURE=	yes
+CONFIGURE_ARGS+=	--sysconfdir=${LOCALBASE}/etc --with-localdbdir=/var/db
+
+MAN5=		dhcp6c.conf.5 dhcp6s.conf.5
+MAN8=		dhcp6c.8 dhcp6s.8 dhcp6relay.8 dhcp6ctl.8
+
+USE_RC_SUBR=	dhcp6c.sh dhcp6relay.sh dhcp6s.sh
+
+post-install:
+.if !defined(NOPORTDOCS)
+	${MKDIR} ${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/README ${WRKSRC}/COPYRIGHT ${DOCSDIR}
+.endif
+	${INSTALL_DATA} ${WRKSRC}/dhcp6c.conf.sample ${PREFIX}/etc
+	${INSTALL_DATA} ${WRKSRC}/dhcp6s.conf.sample ${PREFIX}/etc
+
+.include <bsd.port.mk>
--- /dev/null
+++ net/dhcp6/distinfo
@@ -0,0 +1,3 @@
+MD5 (wide-dhcpv6-20080615.tar.gz) = 1011e165850fe40d3e332dad2bfd30b3
+SHA256 (wide-dhcpv6-20080615.tar.gz) = 55a66174a1edeabd90029b83cb3fff8e0b63718a556ce95b97d464a87fd1bd81
+SIZE (wide-dhcpv6-20080615.tar.gz) = 215354
--- /dev/null
+++ net/dhcp6/files/dhcp6relay.sh.in
@@ -0,0 +1,46 @@
+#!/bin/sh
+#
+# $FreeBSD: ports/net/dhcp6/files/dhcp6relay.sh.in,v 1.1 2006/06/24 05:57:26 suz Exp $
+#
+
+# PROVIDE: dhcp6relay
+# REQUIRE: DAEMON
+# BEFORE: LOGIN
+# KEYWORD: shutdown
+
+# Add the following lines to
+# /etc/rc.conf.d/dhcp6relay /etc/rc.conf.local or /etc/rc.conf
+# to enable this service:
+#
+# dhcp6relay_enable (bool):			Set to NO by default.
+#		Set it to YES to enable dhcp6relay.
+# dhcp6relay_interfaces (NIC list):		Not defined by default.
+#		Set it to the network interface(s) where dhcp6relay should work
+#		on.
+# dhcp6relay_flags (additional arguments):	Not defined by default.
+#
+
+. %%RC_SUBR%%
+
+name="dhcp6relay"
+rcvar=${name}_enable
+
+prefix=%%PREFIX%%
+command=${prefix}/sbin/${name}
+start_precmd="${name}_precmd"
+
+load_rc_config $name
+
+: ${dhcp6relay_enable="NO"}
+
+command_args="${dhcp6relay_flags} ${dhcp6relay_interfaces}"
+
+dhcp6relay_precmd()
+{
+	if [ -z ${dhcp6relay_interfaces} ]; then
+		warn "dhcp6relay_interfaces is not set."
+		return 1
+	fi
+}
+
+run_rc_command "$1"
--- /dev/null
+++ net/dhcp6/files/dhcp6c.sh.in
@@ -0,0 +1,53 @@
+#!/bin/sh
+#
+# $FreeBSD: ports/net/dhcp6/files/dhcp6c.sh.in,v 1.1 2006/06/24 05:57:26 suz Exp $
+#
+
+# PROVIDE: dhcp6c
+# REQUIRE: DAEMON
+# BEFORE: LOGIN
+# KEYWORD: shutdown
+
+# Add the following lines to
+# /etc/rc.conf.d/dhcp6c /etc/rc.conf.local or /etc/rc.conf
+# to enable this service:
+#
+# dhcp6c_enable (bool):			Set to NO by default.
+#		Set it to YES to enable dhcp6c.
+# dhcp6c_config (path):			Set to %%PREFIX%%/etc/dhcp6c.conf
+#		by default.
+# dhcp6c_pidfile (path):		Set to /var/run/dhcp6c.pid
+#		by default.
+# dhcp6c_interfaces (NIC list):		Not defined by default.
+#		Set it to the network interface(s) where dhcp6c should work on.
+# dhcp6c_flags (additional arguments):	Not defined by default.
+#
+
+. %%RC_SUBR%%
+
+name="dhcp6c"
+rcvar=${name}_enable
+
+prefix="%%PREFIX%%"
+command="${prefix}/sbin/${name}"
+start_precmd="${name}_precmd"
+
+load_rc_config $name
+
+: ${dhcp6c_enable="NO"}
+: ${dhcp6c_config="${prefix}/etc/${name}.conf"}
+: ${dhcp6c_pidfile="/var/run/${name}.pid"}
+
+required_files="${dhcp6c_config}"
+pidfile="${dhcp6c_pidfile}"
+command_args="-c ${dhcp6c_config} -p ${dhcp6c_pidfile} ${dhcp6c_flags} ${dhcp6c_interfaces}"
+
+dhcp6c_precmd()
+{
+	if [ -z ${dhcp6c_interfaces} ]; then
+		warn "dhcp6c_interfaces is not set."
+		return 1
+	fi
+}
+
+run_rc_command "$1"
--- /dev/null
+++ net/dhcp6/files/dhcp6s.sh.in
@@ -0,0 +1,49 @@
+#!/bin/sh
+#
+# $FreeBSD: ports/net/dhcp6/files/dhcp6s.sh.in,v 1.1 2006/06/24 05:57:26 suz Exp $
+#
+
+# PROVIDE: dhcp6s
+# REQUIRE: DAEMON
+# BEFORE: LOGIN
+# KEYWORD: shutdown
+
+# Add the following lines to
+# /etc/rc.conf.d/dhcp6s /etc/rc.conf.local or /etc/rc.conf
+# to enable this service:
+#
+# dhcp6s_enable (bool):			Set to NO by default.
+#		Set it to YES to enable dhcp6s.
+# dhcp6s_config (path):			Set to %%PREFIX%%/etc/dhcp6s.conf
+#		by default.
+# dhcp6s_interface (NIC):		Not defined by default.
+#		Set it to the network interface where dhcp6s should work on.
+# dhcp6s_flags (additional arguments):	Not defined by default.
+#
+
+. %%RC_SUBR%%
+
+name="dhcp6s"
+rcvar=${name}_enable
+
+prefix=%%PREFIX%%
+command=${prefix}/sbin/${name}
+start_precmd="${name}_precmd"
+
+load_rc_config $name
+
+: ${dhcp6s_enable="NO"}
+: ${dhcp6s_config="${prefix}/etc/${name}.conf"}
+
+required_files=${dhcp6s_config}
+command_args="-c ${dhcp6s_config} ${dhcp6s_flags} ${dhcp6s_interface}"
+
+dhcp6s_precmd()
+{
+	if [ -z ${dhcp6s_interface} ]; then
+		warn "dhcp6s_interface is not set."
+		return 1
+	fi
+}
+
+run_rc_command "$1"


More information about the Midnightbsd-cvs mailing list