[69632] trunk/dports/devel/dbus/Portfile
jmr at macports.org
jmr at macports.org
Sun Jul 11 09:32:13 PDT 2010
Revision: 69632
http://trac.macports.org/changeset/69632
Author: jmr at macports.org
Date: 2010-07-11 09:32:10 -0700 (Sun, 11 Jul 2010)
Log Message:
-----------
dbus: use notes
Modified Paths:
--------------
trunk/dports/devel/dbus/Portfile
Modified: trunk/dports/devel/dbus/Portfile
===================================================================
--- trunk/dports/devel/dbus/Portfile 2010-07-11 16:10:08 UTC (rev 69631)
+++ trunk/dports/devel/dbus/Portfile 2010-07-11 16:32:10 UTC (rev 69632)
@@ -153,28 +153,17 @@
}
}
+set sudo ""
+if {![variant_isset no_root]} {
+ set sudo "sudo "
+}
post-activate {
file attributes ${prefix}/var/run/dbus -group ${dbus_group} -owner ${dbus_user}
file attributes ${prefix}/libexec/dbus-daemon-launch-helper -group ${dbus_group}
- if { ![variant_isset no_startupitem] } {
- if { ! [variant_isset no_root] } {
- set sudo "sudo "
- file attributes /Library/LaunchAgents/org.freedesktop.dbus-session.plist -owner root -group wheel
- file attributes /Library/LaunchDaemons/[file tail ${plistFl}] -owner root -group wheel
- } else {
- set sudo ""
- }
-
- ui_msg "#################################################################################################"
- ui_msg "# Startup items have been generated that will aid in"
- ui_msg "# starting ${name} with launchd. They are disabled"
- ui_msg "# by default. Execute the following command to start them,"
- ui_msg "# and to cause it to launch at startup:"
- ui_msg "#"
- ui_msg "# ${sudo}launchctl load -w ${startup_root}/Library/LaunchDaemons/[file tail ${plistFl}]"
- ui_msg "# launchctl load -w ${startup_root}/Library/LaunchAgents/org.freedesktop.dbus-session.plist"
- ui_msg "##################################################################################################"
+ if { ![variant_isset no_startupitem] && ![variant_isset no_root] } {
+ file attributes /Library/LaunchAgents/org.freedesktop.dbus-session.plist -owner root -group wheel
+ file attributes /Library/LaunchDaemons/[file tail ${plistFl}] -owner root -group wheel
}
}
@@ -183,6 +172,17 @@
}
variant no_startupitem description {Do not install startup files.} {}
+if {![variant_isset no_startupitem]} {
+ notes "############################################################################
+# Startup items have been generated that will aid in
+# starting ${name} with launchd. They are disabled
+# by default. Execute the following command to start them,
+# and to cause them to launch at startup:
+#
+# ${sudo}launchctl load -w ${startup_root}/Library/LaunchDaemons/[file tail ${plistFl}]
+# launchctl load -w ${startup_root}/Library/LaunchAgents/org.freedesktop.dbus-session.plist
+############################################################################"
+}
variant no_root description {Run the DBUS daemon as MacPorts install user.} {
pre-fetch {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100711/88253e56/attachment.html>
More information about the macports-changes
mailing list