<pre style='margin:0'>
Marcus Calhoun-Lopez (MarcusCalhoun-Lopez) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/98f5adea3a81ec27e411c089511c0988cea8551a">https://github.com/macports/macports-ports/commit/98f5adea3a81ec27e411c089511c0988cea8551a</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 98f5adea3a81ec27e411c089511c0988cea8551a
</span>Author: Marcus Calhoun-Lopez <mcalhoun@macports.org>
AuthorDate: Thu Oct 12 05:34:34 2017 -0700
<span style='display:block; white-space:pre;color:#404040;'> avahi: replace commands with a foreach loop
</span>---
net/avahi/Portfile | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/net/avahi/Portfile b/net/avahi/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 335a8d1..0f81621 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/net/avahi/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/net/avahi/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -87,6 +87,8 @@ configure.args --disable-autoipd \
</span> # __APPLE_USE_RFC_2292 should be removed once avhi is updated to support RFC 3542
configure.cppflags-append -L${prefix}/lib -D__APPLE_USE_RFC_2292
<span style='display:block; white-space:pre;background:#e0ffe0;'>+set launch_daemons {org.freedesktop.avahi-daemon.plist org.freedesktop.avahi-dnsconfd.plist}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> post-destroot {
xinstall -d -m 0755 ${destroot}${prefix}/etc/LaunchDaemons
move {*}[glob ${destroot}/Library/LaunchDaemons/*] \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -95,12 +97,10 @@ post-destroot {
</span> if {![info exists startupitem.install]} {
set startupitem.install yes
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>- if { ${startupitem.install} != "no" } {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- xinstall -d -m 0755 ${destroot}/LaunchDaemons
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ln -s ${prefix}/etc/LaunchDaemons/org.freedesktop.avahi-daemon.plist \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${destroot}/Library/LaunchDaemons/
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ln -s ${prefix}/etc/LaunchDaemons/org.freedesktop.avahi-dnsconfd.plist \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${destroot}/Library/LaunchDaemons/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${startupitem.install}} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach fl ${launch_daemons} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ln -s ${prefix}/etc/LaunchDaemons/${fl} ${destroot}/Library/LaunchDaemons/${fl}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span> }
}
</pre><pre style='margin:0'>
</pre>