source: trunk/dports/net/dhcp/Portfile @ 122276

Last change on this file since 122276 was 122276, checked in by jmr@…, 5 years ago

dhcp: license

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.5 KB
1# -*- 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
2# $Id: Portfile 122276 2014-07-19 04:07:05Z $
4PortSystem          1.0
6name                dhcp
7version             4.1-ESV-R4
8categories          net
9license             ISC BSD SSLeay
10description         ISC dhcpd server
11long_description    \
12    ISC's Dynamic Host Configuration Protocol Distribution reference \
13    implementation of all aspects of the DHCP protocol, through a suite of \
14    DHCP tools: A DHCP server, client, and relay agent.  These tools all use a \
15    modular API which is designed to be sufficently general that can easily be \
16    made to work on POSIX- compliant operating systems and also non-POSIX \
17    systems like Windows NT and Mac OS.\ The DHCP server, client and relay \
18    agent are provided both as reference implementations of the protocol and \
19    as working, fully-features sample implementations.\ Both the client and \
20    the server provide functionality that, while not strictly required by the \
21    protocol, is very useful in practice.  The DHCP server also makes \
22    allowance for non-compliant clients which one might still like to support.
25platforms           darwin
26maintainers         nomaintainer
29checksums           sha256  13b3c08695f0a663fe1e1b6af5ce8a4e052b3f4a291e404b463f5d2762e6000d \
30                    rmd160  792eab5695ae0803dfaa57d74072dd990e361c31
32patchfiles          RFC3542.include.patch
34depends_lib         port:openssl
36startupitem.create  yes    dhcpd
38startupitem.executable \
39                    ${prefix}/sbin/dhcpd -f -cf ${prefix}/etc/dhcp/dhcpd.conf -lf ${prefix}/var/db/dhcpd/dhcpd.leases
40startupitem.netchange \
41                    yes
43destroot.keepdirs   ${destroot}${prefix}/var/db/dhcpd
44post-destroot {
45    set etc ${destroot}${prefix}/etc/dhcp
46    xinstall -m 755 -d ${etc}
47    xinstall -m 644 ${worksrcpath}/server/dhcpd.conf ${etc}/dhcpd.conf.sample
48    xinstall -m 644 ${worksrcpath}/client/dhclient.conf ${etc}/dhclient.conf.sample
49    file delete ${destroot}${prefix}/etc/dhcpd.conf
50    file delete ${destroot}${prefix}/etc/dhclient.conf
53notes "The dhcpd .conf and .leases files must be named and located as shown for dhcpd to find them:\n\
54    ${prefix}/etc/dhcp/dhcpd.conf (there is a sample file)\n\
55    ${prefix}/var/db/dhcpd/dhcpd.leases (use the touch command to create a blank one)\n"
Note: See TracBrowser for help on using the repository browser.