Ticket #15551: patch-Portfile.3.diff

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

3rd revision of proposed portfile

  • 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        if {![file exists ${prefix}/etc/dnsmasq.conf]} {
     39                        file copy ${prefix}/etc/dnsmasq.conf.sample \
     40                                ${prefix}/etc/dnsmasq.conf
     41          }
     42}
     43
     44
     45startupitem.create      yes
     46startupitem.name        dnsmasq
     47startupitem.executable  ${prefix}/sbin/dnsmasq -k