Ticket #36749: Portfile-patch_wrt_startupitem.diff
File Portfile-patch_wrt_startupitem.diff, 1.6 KB (added by mkae (Marko Käning), 12 years ago) |
---|
-
Portfile
6 6 7 7 name kdelibs4 8 8 version 4.8.5 9 revision 1 9 10 categories kde kde4 10 11 maintainers sharky michaelld nicos 11 12 license GPL-2+ … … 102 103 ${destroot}${prefix}/Library/LaunchAgents/org.macports.kdecache.plist 103 104 104 105 xinstall -d -m 755 ${destroot}${startup_root}/Library/LaunchAgents 105 ln -s ${prefix}/Library/LaunchAgents/org.macports.kdecache.plist ${destroot}${startup_root}/Library/LaunchAgents106 106 } 107 107 108 108 post-activate { 109 # set user permissions for root install 109 110 if { ![variant_isset no_root] } { 110 file attributes ${prefix}/Library/LaunchAgents/org.macports.kdecache.plist -owner root -group wheel111 file attributes ${prefix}/Library/LaunchAgents/org.macports.kdecache.plist -owner root -group wheel 111 112 } 113 114 # delete leftover file, if any 115 if [file exists /Library/LaunchDaemons/org.macports.kdecache.plist] { 116 file delete -force /Library/LaunchDaemons/org.macports.kdecache.plist} 117 } 118 # The startupitem.install keyword does not exist in MacPorts < 2.1. 119 if {![info exists startupitem.install]} { 120 set startupitem.install yes 121 } 122 # If "startupitem.install" is set to "no" in macports.conf then do not link. 123 if {${startupitem.install} != "no"} { 124 ln -s ${destroot}${startup_root}/Library/LaunchAgents/org.macports.kdecache.plist /Library/LaunchDaemons 125 } 112 126 } 113 127 114 128 notes " ##########################################################################