svn commit: r403095 - in head/net: . dhcpd dhcpd/files
Kurt Jaeger
pi at FreeBSD.org
Sun Dec 6 09:50:50 UTC 2015
Author: pi
Date: Sun Dec 6 09:50:48 2015
New Revision: 403095
URL: https://svnweb.freebsd.org/changeset/ports/403095
Log:
New port: net/dhcpd
This is the FreeBSD port of the OpenBSD dhcpd.
The Dynamic Host Configuration Protocol (DHCP) is a standardized
network protocol used on Internet Protocol (IP) networks for dynamically
distributing network configuration parameters, such as IP addresses for
interfaces and services.
WWW: https://github.com/koue/dhcpd
PR: 197361
Submitted by: Nikola Kolev <koue at chaosophia.net>
Added:
head/net/dhcpd/
head/net/dhcpd/Makefile (contents, props changed)
head/net/dhcpd/distinfo (contents, props changed)
head/net/dhcpd/files/
head/net/dhcpd/files/dhcpd.in (contents, props changed)
head/net/dhcpd/pkg-descr (contents, props changed)
head/net/dhcpd/pkg-plist (contents, props changed)
Modified:
head/net/Makefile
Modified: head/net/Makefile
==============================================================================
--- head/net/Makefile Sun Dec 6 09:43:55 2015 (r403094)
+++ head/net/Makefile Sun Dec 6 09:50:48 2015 (r403095)
@@ -95,6 +95,7 @@
SUBDIR += dgd-lpmud
SUBDIR += dhcp6
SUBDIR += dhcpcd
+ SUBDIR += dhcpd
SUBDIR += dhcpd-pools
SUBDIR += dhcpdump
SUBDIR += dhcperf
Added: head/net/dhcpd/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/net/dhcpd/Makefile Sun Dec 6 09:50:48 2015 (r403095)
@@ -0,0 +1,35 @@
+# $FreeBSD$
+
+PORTNAME= dhcpd
+PORTVERSION= 5.8.20151202
+CATEGORIES= net
+
+MAINTAINER= koue at chaosophia.net
+COMMENT= OpenBSD dhcp daemon
+
+LICENSE= BSD3CLAUSE
+
+WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/src/usr.sbin/${PORTNAME}
+
+USE_GITHUB= yes
+GH_ACCOUNT= koue
+
+CONFLICTS= isc-dhcp4[1-3]-server*
+
+USE_OPENSSL= yes
+USE_RC_SUBR= dhcpd
+
+CFLAGS+= -Wall
+
+MAKE_ARGS+= BINDIR=${PREFIX}/sbin MANDIR=${PREFIX}/man/man
+
+USERS= dhcpd
+GROUPS= dhcpd
+
+.include <bsd.port.pre.mk>
+
+post-install:
+ ${INSTALL_DATA} ${WRKSRC}/dhcpd.conf \
+ ${STAGEDIR}${PREFIX}/etc/dhcpd.conf.sample
+
+.include <bsd.port.post.mk>
Added: head/net/dhcpd/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/net/dhcpd/distinfo Sun Dec 6 09:50:48 2015 (r403095)
@@ -0,0 +1,2 @@
+SHA256 (koue-dhcpd-5.8.20151202_GH0.tar.gz) = 662889ea3b4654b75ed298a32b9c7dd3e2bf5f82320b84397ed330c4c75d36bc
+SIZE (koue-dhcpd-5.8.20151202_GH0.tar.gz) = 105960
Added: head/net/dhcpd/files/dhcpd.in
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/net/dhcpd/files/dhcpd.in Sun Dec 6 09:50:48 2015 (r403095)
@@ -0,0 +1,25 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+# PROVIDE: dhcpd
+# REQUIRE: DAEMON
+# BEFORE: LOGIN
+# KEYWORD: shutdown
+
+# Add the following lines to /etc/rc.conf to enable dhcpd:
+# dhcpd_enable="YES"
+# dhcpd_flags="<set as needed>"
+
+. /etc/rc.subr
+
+name=dhcpd
+rcvar=dhcpd_enable
+
+command="%%PREFIX%%/sbin/dhcpd"
+
+dhcpd_enable=${dhcpd_enable:-"NO"}
+dhcpd_flags=${dhcpd_flags:-"-c %%PREFIX%%/etc/dhcpd.conf"}
+
+load_rc_config $name
+run_rc_command "$1"
Added: head/net/dhcpd/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/net/dhcpd/pkg-descr Sun Dec 6 09:50:48 2015 (r403095)
@@ -0,0 +1,8 @@
+This is the FreeBSD port of the OpenBSD dhcpd.
+
+The Dynamic Host Configuration Protocol (DHCP) is a standardized
+network protocol used on Internet Protocol (IP) networks for dynamically
+distributing network configuration parameters, such as IP addresses for
+interfaces and services.
+
+WWW: https://github.com/koue/dhcpd
Added: head/net/dhcpd/pkg-plist
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/net/dhcpd/pkg-plist Sun Dec 6 09:50:48 2015 (r403095)
@@ -0,0 +1,6 @@
+ at sample etc/dhcpd.conf.sample
+man/man5/dhcp-options.5.gz
+man/man5/dhcpd.conf.5.gz
+man/man5/dhcpd.leases.5.gz
+man/man8/dhcpd.8.gz
+sbin/dhcpd
More information about the svn-ports-head
mailing list