Ticket #15551: patch-Portfile.2.diff

File patch-Portfile.2.diff, 1.1 KB (added by davidgilman1+macports@…, 16 years ago)

v2 Portfile with post-activate

  • Portfile

    old new  
    33PortSystem 1.0
    44
    55name            dnsmasq
    6 version         2.32
     6version         2.42
    77categories      net
    88platforms       darwin
    99maintainers     nomaintainer
     
    1818                        either in each host or in a central configuration \
    1919                        file. Dnsmasq supports static and dynamic DHCP leases \
    2020                        and BOOTP for network booting of diskless machines.
    21 
    2221homepage        http://www.thekelleys.org.uk/dnsmasq/doc.html
    2322master_sites    http://www.thekelleys.org.uk/dnsmasq/
    24 checksums       sha1 f07c090922777f061fbe52aea464b1e43b3988d3
     23checksums       sha1 85c371ab8951715fbdab01e337e5649705f0b221
    2524patchfiles      patch-config.h.diff patch-Makefile.diff
    2625
    2726configure       {
     
    3433        build.args-append CC=/usr/bin/gcc-4.0
    3534}
    3635
     36post-activate {
     37    # Make sure initial conf files are present and setup correctly
     38    foreach f { dnsmasq.conf } {
     39        if {![file exists ${prefix}/etc/${f}]} {
     40            file copy ${prefix}/etc/${f}.example \
     41                ${prefix}/etc/${f}
     42        }
     43    }
     44}
     45
     46
     47startupitem.create      yes
     48startupitem.name        dnsmasq
     49startupitem.executable  ${prefix}/sbin/dnsmasq -k