<pre style='margin:0'>
Landon Fuller (landonf) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/ba57791b42eed183c30744269de60a3e06e432a7">https://github.com/macports/macports-ports/commit/ba57791b42eed183c30744269de60a3e06e432a7</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new ba57791b42e rtags: register a launchd agent for rdm(1)
</span>ba57791b42e is described below
<span style='display:block; white-space:pre;color:#808000;'>commit ba57791b42eed183c30744269de60a3e06e432a7
</span>Author: Landon Fuller <landonf@macports.org>
AuthorDate: Thu Sep 3 17:14:13 2020 -0600
<span style='display:block; white-space:pre;color:#404040;'> rtags: register a launchd agent for rdm(1)
</span>---
devel/rtags/Portfile | 53 +++++++++++++++++++++++++++++++++++++++++-
devel/rtags/files/rdm.plist.in | 34 +++++++++++++++++++++++++++
2 files changed, 86 insertions(+), 1 deletion(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/rtags/Portfile b/devel/rtags/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index fce6ac508c2..eb17cf3cd81 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/rtags/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/rtags/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -5,7 +5,7 @@ PortGroup cmake 1.1
</span> PortGroup github 1.0
github.setup Andersbakken rtags 2.38 v
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 2
</span> github.tarball_from releases
categories devel
platforms darwin
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -26,6 +26,30 @@ set clang_version 9.0
</span> depends_lib-append port:clang-${clang_version} \
port:zlib
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# We provide our own launchd plist to allow the use of Sockets
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set rdm.launchd.socket ${prefix}/var/run/rdm.socket
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set rdm.launchd.plist_in ${filespath}/rdm.plist.in
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set rdm.launchd.plist ${workpath}/rdm.plist
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+startupitem.name ${name}.rdm
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+startupitem.create no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+startupitem.type launchd
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+startupitem.location LaunchAgents
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+startupitem.autostart no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+post-patch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ copy -- ${rdm.launchd.plist_in} ${rdm.launchd.plist}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach {rdm_key rdm_var} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ @PREFIX@ prefix
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ @LABEL@ startupitem.uniquename
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ @RDM_SOCKET_PATH@ rdm.launchd.socket
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|${rdm_key}|[set ${rdm_var}]|g" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${rdm.launchd.plist}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> # this is needed to find rtags custom path for cmake modules
configure.args-append \
-DCMAKE_MODULE_PATH=""
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -33,3 +57,30 @@ configure.args-append \
</span> configure.args-append \
-DCMAKE_DISABLE_FIND_PACKAGE_OpenSSL=1 \
-DLIBCLANG_LLVM_CONFIG_EXECUTABLE=${prefix}/bin/llvm-config-mp-${clang_version}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+post-destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Install our custom plist
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set launchd_dir "${prefix}/etc/${startupitem.location}/${startupitem.uniquename}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 755 -d ${destroot}/${launchd_dir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 644 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${rdm.launchd.plist} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}/${launchd_dir}/${startupitem.plist}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[getuid] == 0 && ${startupitem.install} != "no"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file mkdir "${destroot}/Library/${startupitem.location}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ln -sf "${launchd_dir}/${startupitem.plist}" "${destroot}/Library/${startupitem.location}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ln -sf ${launchd_dir}/${startupitem.plist} ${destroot}${prefix}/etc/${startupitem.location}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+notes "
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ The optional included startup item registers a per-user rdm socket
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ via launchd at ${rdm.launchd.socket}.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ To verify that rdm(1) is accessible after loading the startup item,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ run:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ rc --socket-file ${rdm.launchd.socket} --status
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+"
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/rtags/files/rdm.plist.in b/devel/rtags/files/rdm.plist.in
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..7ff395d4e43
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/rtags/files/rdm.plist.in
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,34 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+<?xml version='1.0' encoding='UTF-8'?>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+"http://www.apple.com/DTDs/PropertyList-1.0.dtd" >
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+<plist version='1.0'>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <dict>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <key>Label</key>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <string>@LABEL@</string>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <key>ProgramArguments</key>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <array>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <string>@PREFIX@/bin/rdm</string>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <string>-v</string>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <string>--launchd</string>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <string>--socket-file</string>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <string>@RDM_SOCKET_PATH@</string>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <string>--inactivity-timeout</string>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <string>300</string>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ </array>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <key>Disabled</key>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <true/>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <key>Sockets</key>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <dict>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <key>Listener</key>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <dict>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <key>SockPathName</key>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <string>@RDM_SOCKET_PATH@</string>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <key>SockPathMode</key>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <integer>438</integer> <!-- 0666 -->
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ </dict>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ </dict>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ </dict>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+</plist>
</span></pre><pre style='margin:0'>
</pre>