[MacPorts] #15551: Patch updating dnsmasq to 2.42

MacPorts noreply at macports.org
Fri Jun 13 09:36:09 PDT 2008


#15551: Patch updating dnsmasq to 2.42
-------------------------------------+--------------------------------------
  Reporter:  davidgilman1 at gmail.com  |       Owner:  macports-tickets at lists.macosforge.org
      Type:  enhancement             |      Status:  new                                  
  Priority:  Normal                  |   Milestone:  Port Updates                         
 Component:  ports                   |     Version:  1.6.0                                
Resolution:                          |    Keywords:  dnsmasq                              
-------------------------------------+--------------------------------------
Changes (by jmr at macports.org):

 * cc: jmr at 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


More information about the macports-tickets mailing list