most recent changes, diff for dnsmasq

Index: net/dnsmasq/Portfile
--- net/dnsmasq/Portfile (revision 37898)
+++ net/dnsmasq/Portfile (revision 37899)
@@ -3,7 +3,7 @@
PortSystem 1.0

name dnsmasq
-version 2.32
+version 2.42
categories net
platforms darwin
maintainers nomaintainer
@@ -18,10 +18,9 @@
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
master_sites http://www.thekelleys.org.uk/dnsmasq/
-checksums sha1 f07c090922777f061fbe52aea464b1e43b3988d3
+checksums sha1 85c371ab8951715fbdab01e337e5649705f0b221
patchfiles patch-config.h.diff patch-Makefile.diff

configure {
@@ -34,3 +33,15 @@
build.args-append CC=/usr/bin/gcc-4.0
}

+post-activate {
+ # Make sure initial conf files are present and setup correctly
+ if {![file exists ${prefix}/etc/dnsmasq.conf]} {
+ file copy ${prefix}/etc/dnsmasq.conf.sample \
+ ${prefix}/etc/dnsmasq.conf
+ }
+}
+
+
+startupitem.create yes
+startupitem.name dnsmasq
+startupitem.executable ${prefix}/sbin/dnsmasq -k