# -*- 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
maintainers {snc @nerdling} openmaintainer
description lightweight DNS forwarder and DHCP server
long_description Dnsmasq is lightweight, easy to configure DNS \
forwarder and DHCP server. It is designed to provide \
DNS and, optionally, DHCP, to a small network. It can \
serve the names of local machines which are not in the \
global DNS. The DHCP server integrates with the DNS \
server and allows machines with DHCP-allocated \
addresses to appear in the DNS with names configured \
either in each host or in a central configuration \
file. Dnsmasq supports static and dynamic DHCP leases \
and BOOTP for network booting of diskless machines.
homepage http://www.thekelleys.org.uk/dnsmasq/doc.html
notes "A startup item has been generated that will aid in\
starting ${name} with launchd. You must specify the\
path to resolv.conf. For your protection, this script\
is disabled by default. Execute the following command\
to start it, and to cause it to launch at startup:\
\n\nsudo port load ${name}"
master_sites http://www.thekelleys.org.uk/dnsmasq/
checksums rmd160 5a26def1ae9a47a2debe08845dfc41d14f3bfa2e \
sha256 cdaba2785e92665cf090646cba6f94812760b9d7d8c8d0cfb07ac819377a63bb \
patchfiles patch-src-config.h.diff \
reinplace "s|#define SMALLDNAME 50|#define SMALLDNAME 255|g" ${worksrcpath}/src/config.h
reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/src/config.h
reinplace s|#resolv-file=|resolv-file=/etc/resolv.conf| \
${worksrcpath}/dnsmasq.conf.example
build.env-append "CC=${configure.cc} [get_canonical_archflags]"
destroot.env-append "CC=${configure.cc} [get_canonical_archflags]"
destroot.args PREFIX=${prefix}
destroot.keepdirs ${destroot}${prefix}/var/run/${name}
livecheck.url ${master_sites}
livecheck.regex LATEST_IS_(\\d\\.\\d+)
default_variants +dhcp +tftp +ipv6
variant dhcp description { Provide built-in DHCP server } {}