#15551: Patch updating dnsmasq to 2.42 -------------------------------------+-------------------------------------- Reporter: davidgilman1@gmail.com | Owner: macports-tickets@lists.macosforge.org Type: enhancement | Status: new Priority: Normal | Milestone: Port Updates Component: ports | Version: 1.6.0 Resolution: | Keywords: dnsmasq -------------------------------------+-------------------------------------- Changes (by jmr@macports.org): * cc: jmr@macports.org (added) Comment: The config.h patch will need to be changed. MacPorts also works on platforms where `__APPLE__` is not defined, and files should still be installed into $prefix on them. In the portfile, you don't need a foreach loop for one file. This will do: {{{ post-activate { # Make sure initial conf file is present and setup correctly set f dnsmasq.conf if {![file exists ${prefix}/etc/${f}]} { file copy ${prefix}/etc/${f}.example \ ${prefix}/etc/${f} } } }}} I also notice you're installing it as dnsmasq.conf.sample in the makefile patch but referring to dnsmasq.conf.example in the portfile, so one will need to be changed. -- Ticket URL: <http://trac.macports.org/ticket/15551#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS