source: trunk/dports/net/dhcp/Portfile

Last change on this file was 146517, checked in by raimue@…, 21 months ago

Mass rev-bump dependents of port openssl due to ABI change

Disabling SSLv2 in r146162 changed the ABI of the library, leading to loading
errors for binaries with references to SSLv2 symbols.

https://lists.macosforge.org/pipermail/macports-dev/2016-March/032531.html

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