Ticket #49989: nedi.diff

File nedi.diff, 893 bytes (added by ryandesign (Ryan Carsten Schmidt), 9 years ago)

proposed patch

  • Portfile

     
    66
    77name                nedi
    88version             1.0.9
    9 revision            1
     9revision            2
    1010license             GPL-3
    1111categories          net
    1212maintainers         nomaintainer
     
    116116        ${destroot}/Library/LaunchDaemons
    117117}
    118118
     119pre-activate {
     120    # nedi < 1.0.9 installed this file directly, bypassing the destroot.
     121    # Remove it if found to prevent activation failure.
     122    set f /Library/LaunchDaemons/org.macports.nedisyslog.plist
     123    if {[file exists ${f}] && [registry_file_registered ${f}] == "0"} {
     124        if {[catch {delete ${f}}]} {
     125            ui_warn "Cannot delete ${f}; please remove it manually"
     126        }
     127    }
     128}
     129
    119130notes \
    120131  "**** To complete the NeDi OS X installation ****
    121132