[42996] trunk/dports/x11/xinit
Jeremy Huddleston
jeremyhu at macports.org
Tue Dec 2 23:41:30 PST 2008
Thanks Ryan =)
On Dec 2, 2008, at 21:10, Ryan Schmidt wrote:
>> +post-destroot {
>> + system "mv ${destroot}/Library/LaunchAgents/org.x.startx.plist $
>> {destroot}/Library/LaunchAgents/org.macports.startx.plist"
>> + system "mv ${destroot}/Library/LaunchDaemons/
>> org.x.privileged_startx.plist ${destroot}/Library/LaunchDaemons/
>> org.macports.privileged_startx.plist"
>> +
>> + system "mkdir ${destroot}/${prefix}/lib/X11/xinit/xinitrc.d"
>> + system "cp ${filespath}/xinitrc.d/*.sh ${destroot}/${prefix}/lib/
>> X11/xinit/xinitrc.d"
>> + system "chmod 755 ${destroot}/${prefix}/lib/X11/xinit/xinitrc.d/
>> *.sh"
>> +}
>
> FYI it's preferable to use built-in tcl commands rather than
> starting a new shell using "system" where possible. So here's how
> that would look:
>
>
> post-destroot {
> move ${destroot}/Library/LaunchAgents/org.x.startx.plist $
> {destroot}/Library/LaunchAgents/org.macports.startx.plist
> move ${destroot}/Library/LaunchDaemons/
> org.x.privileged_startx.plist ${destroot}/Library/LaunchDaemons/
> org.macports.privileged_startx.plist
>
> xinstall -d ${destroot}${prefix}/lib/X11/xinit/xinitrc.d
> eval xinstall -m 755 [glob ${filespath}/xinitrc.d/*.sh] ${destroot}$
> {prefix}/lib/X11/xinit/xinitrc.d
> }
>
>
> I think this is right, but I've just typed it in here and haven't
> tested it. Also note you shouldn't put a slash before ${prefix}; $
> {prefix} begins with a slash already.
More information about the macports-dev
mailing list