<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#333333">
On 1/21/19 10:44 , Joshua Root wrote:<br>
<blockquote
cite="mid:108bdf6b-aba7-f5f1-ace1-cbb5f439c39c@macports.org"
type="cite">
<blockquote type="cite">
<pre wrap="">startupitems name dbus-system \
location LaunchDaemons \
uniquename ${daemon_uniquename} \
plist ${daemon_uniquename}.plist
</pre>
</blockquote>
<pre wrap="">
Sure, that works. You don't have to use the 'startupitems' option unless
you have more than one startupitem. For a single one you could instead
set startupitem.name, startupitem.location, etc.
</pre>
</blockquote>
Ok, that's prob better. Thought it looked nice and clean(er) though.
:)<br>
<br>
<blockquote
cite="mid:108bdf6b-aba7-f5f1-ace1-cbb5f439c39c@macports.org"
type="cite">
<pre wrap="">This check in dbus is important:
if {${startupitem.install} && [geteuid] == 0} {
You have to put the plist somewhere different if startupitem.install is
false.
</pre>
</blockquote>
Aah, ok… Yes, of course. I thought perhaps that was a dbus spec
thing.<br>
<br>
- - -<br>
<br>
Speaking of 'puts'… I was thinking on another port where I used a
small patch to create a new file, like:<br>
<pre><pre>--- /dev/null
+++ file.ext
@@ -0,0 +1,8 @@
+
+
… etc
</pre></pre>
<br>
Feels like 'puts' is a better(/more proper) way of doing it, and
less files to deal with. If one need to create a new file must be
better to do in the Portfile, rather than sneak it in with a patch.
The diff felt a bit like cheating. :) Perhaps I should change that
to using the puts method instead?<br>
<br>
· Eric<br>
</body>
</html>