Ignore:
Timestamp:
Mar 6, 2012, 5:42:15 PM (8 years ago)
Author:
snc@…
Message:

dnsmasq: update to 2.60

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/net/dnsmasq/Portfile

    r88085 r90473  
    55
    66name                dnsmasq
    7 version             2.59
    8 revision            2
     7version             2.60
    98categories          net
    109license             GPL
     
    3534use_lzma            yes
    3635
    37 checksums           rmd160  ca7b841d97e0ef7ab5a8c2c099ecb79de28633b3 \
    38                     sha256  3bba1f637d04145e756ffc31a5076961a0aaf4716d097fa0d4a9a24dc8869391
     36checksums           rmd160  fb898487a4bac06e725b4182b04e196e3c5c92e0 \
     37                    sha256  aa5ada47e71a1fc83050d7e8569f03bc060c6a506ecc27a30832ef888e6d4c92
    3938
    4039patchfiles          patch-src-config.h.diff \
    41                     patch-src-network.c.diff \
    42                     patch-Makefile.diff
     40                    patch-src-network.c.diff
    4341post-patch {
    4442    reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/src/config.h
     
    7775
    7876post-destroot {
    79     # copy configuration file if not previously created
    80     if {![file exists ${prefix}/etc/dnsmasq.conf]} {
    81         copy ${destroot}${prefix}/etc/dnsmasq.conf.sample \
    82             ${destroot}${prefix}/etc/dnsmasq.conf
    83     }
     77    copy ${worksrcpath}/dnsmasq.conf.example ${destroot}${prefix}/etc/dnsmasq.conf.example
    8478
    8579    # Create the directory that dnsmasq likes to store its pid in.
     
    128122    ln -sf "${itemdir}/${plistname}" "${destroot}/Library/${daemondest}"
    129123}
     124
     125post-activate {
     126    # copy configuration file if not previously created
     127    if {![file exists ${prefix}/etc/dnsmasq.conf]} {
     128        copy ${destroot}${prefix}/etc/dnsmasq.conf.example \
     129            ${destroot}${prefix}/etc/dnsmasq.conf
     130    }
     131}
Note: See TracChangeset for help on using the changeset viewer.