port load/unload

Ryan Schmidt ryandesign at macports.org
Sat Sep 18 13:23:08 PDT 2010


On Sep 18, 2010, at 15:08, Jeremy Lavergne wrote:

>>> Do we "do the right thing" by not having them use 'sudo' for LaunchAgents on Snow Leopard?
>> 
>> MacPorts does not make any difference between LaunchDaemons and
>> LaunchAgents. The default for startupitem.location is LaunchDaemons and
>> I am not aware of any port changing this setting. There are dbus and
>> xinit installing LaunchAgents, but those use custom methods/messages.
>> 
>> It always prints 'sudo' in this message. I am not even sure if the
>> command 'port load' works without root privileges...
> 
> I think we can add something like:
> 
> if {${build.asroot} == "yes"} {
> ui_msg (no newline) "sudo "
> }
> ui_msg "port load ${name}"


Perhaps someone could first explain the purpose of the *.asroot options. I still don't understand it, or frankly any of the gsoc08-privileges stuff. All it's been for me is one big headache. To this day my non-root MacPorts installations don't work right thanks to this branch.

I've read http://trac.macports.org/wiki/gsoc08-privileges but I remain at a loss.





More information about the macports-dev mailing list