[91578] trunk/dports/x11/xinit/Portfile

jeremyhu at macports.org jeremyhu at macports.org
Thu Apr 5 21:32:01 PDT 2012


Revision: 91578
          https://trac.macports.org/changeset/91578
Author:   jeremyhu at macports.org
Date:     2012-04-05 21:32:00 -0700 (Thu, 05 Apr 2012)
Log Message:
-----------
xinit: activate the privileged_startx LaunchDaemon, so users don't need to do it manually (or reboot) to get X11 working

Modified Paths:
--------------
    trunk/dports/x11/xinit/Portfile

Modified: trunk/dports/x11/xinit/Portfile
===================================================================
--- trunk/dports/x11/xinit/Portfile	2012-04-06 01:44:00 UTC (rev 91577)
+++ trunk/dports/x11/xinit/Portfile	2012-04-06 04:32:00 UTC (rev 91578)
@@ -4,9 +4,11 @@
 
 name                xinit
 version             1.3.2
+revision            1
 categories          x11
 platforms           darwin
 maintainers         jeremyhu openmaintainer
+license             MIT
 description         X11 startup script processor
 long_description    xinit is responsible for configuring the initial environment \
 		    when X11 starts up.
@@ -40,6 +42,8 @@
 configure.args-append   RAWCPP=${configure.cpp}
 
 post-destroot {
+	# OS X 10.6.3 was the first version whose native X11 allowed the modern socket naming
+	# for better X11 server coexistence, so we require it for installing the LaunchAgent
 	if {${os.platform} == "darwin" && [vercmp ${os.version} 10.3.0] < 0} {
 		file delete -force ${destroot}/Library/LaunchAgents/org.macports.startx.plist
 	}
@@ -53,4 +57,8 @@
 		${destroot}${prefix}/bin/font_cache
 }
 
+post-activate {
+	system "launchctl load -w /Library/LaunchDaemons/org.macports.privileged_startx.plist"
+}
+
 install.asroot      yes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120405/d081ccb6/attachment.html>


More information about the macports-changes mailing list