Ticket #36749: patch-Portfile.diff

File patch-Portfile.diff, 981 bytes (added by mkae (Marko Käning), 12 years ago)

This fix worked in my case. But as I mentioned before I consider these two cases unnecessarily built-in in macports.

  • Portfile

     
    105105    if {![info exists startupitem.install]} {
    106106        set startupitem.install yes
    107107    }
    108     if { ${startupitem.install} != "no" } {
     108    if { ${startupitem.install} != "no" && ${startupitem_type} != "none" } {
    109109        xinstall -d -m 755 ${destroot}${startup_root}/Library/LaunchAgents
    110110        ln -s ${prefix}/Library/LaunchAgents/org.macports.kdecache.plist ${destroot}${startup_root}/Library/LaunchAgents
    111111    }
    112112}
    113113
    114114post-activate {
    115     if { ![variant_isset no_root] } {
    116         file attributes ${prefix}/Library/LaunchAgents/org.macports.kdecache.plist -owner root -group wheel 
     115    if { ![variant_isset no_root] && ${startupitem_type} != "none" && ${startupitem.install} != "no" } {
     116        file attributes ${prefix}/Library/LaunchAgents/org.macports.kdecache.plist -owner root -group wheel
    117117    }
    118118}
    119119