# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
description ISC dhcpd server
ISC's Dynamic Host Configuration Protocol Distribution reference \
implementation of all aspects of the DHCP protocol, through a suite of \
DHCP tools: A DHCP server, client, and relay agent. These tools all use a \
modular API which is designed to be sufficently general that can easily be \
made to work on POSIX- compliant operating systems and also non-POSIX \
systems like Windows NT and Mac OS.\ The DHCP server, client and relay \
agent are provided both as reference implementations of the protocol and \
as working, fully-features sample implementations.\ Both the client and \
the server provide functionality that, while not strictly required by the \
protocol, is very useful in practice. The DHCP server also makes \
allowance for non-compliant clients which one might still like to support.
homepage http://www.isc.org/products/DHCP/
master_sites http://ftp.isc.org/isc/dhcp/${version}/
checksums rmd160 1121d3ae8c541ef3e3add788af3f52da2796c082 \
sha256 73b492041386149b23d7f5b0d1d893383eb9953f7cafbb5998c447b57f92b930
depends_lib path:lib/libssl.dylib:openssl
${prefix}/sbin/dhcpd -f -cf ${prefix}/etc/dhcp/dhcpd.conf -lf ${prefix}/var/db/dhcpd/dhcpd.leases
destroot.keepdirs ${destroot}${prefix}/var/db/dhcpd
set etc ${destroot}${prefix}/etc/dhcp
xinstall -m 755 -d ${etc}
move ${destroot}${prefix}/etc/dhcpd.conf.example ${etc}/dhcpd.conf.sample
move ${destroot}${prefix}/etc/dhclient.conf.example ${etc}/dhclient.conf.sample
notes "The dhcpd .conf and .leases files must be named and located as shown for dhcpd to find them:\n\
${prefix}/etc/dhcp/dhcpd.conf (there is a sample file)\n\
${prefix}/var/db/dhcpd/dhcpd.leases (use the touch command to create a blank one)\n"