[92963] branches/mld-qt-481/dports/net/avahi/Portfile
pixilla at macports.org
pixilla at macports.org
Fri May 11 19:49:14 PDT 2012
Revision: 92963
https://trac.macports.org/changeset/92963
Author: pixilla at macports.org
Date: 2012-05-11 19:49:13 -0700 (Fri, 11 May 2012)
Log Message:
-----------
net/avahi:
- Move launchd plists into prefix and simlink them into /Library/LaunchDaemons
when startupitem.install != no.
- If Set startupitem.install yes if not set.
Modified Paths:
--------------
branches/mld-qt-481/dports/net/avahi/Portfile
Modified: branches/mld-qt-481/dports/net/avahi/Portfile
===================================================================
--- branches/mld-qt-481/dports/net/avahi/Portfile 2012-05-12 02:48:35 UTC (rev 92962)
+++ branches/mld-qt-481/dports/net/avahi/Portfile 2012-05-12 02:49:13 UTC (rev 92963)
@@ -68,6 +68,24 @@
# __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
+post-destroot {
+ xinstall -d -m 0755 ${destroot}${prefix}/etc/LaunchDaemons
+ eval move [glob ${destroot}/Library/LaunchDaemons/*] \
+ ${destroot}${prefix}/etc/LaunchDaemons/
+ # The startupitem.install keyword does not exist in MacPorts < 2.1.
+ if {![info exists startupitem.install]} {
+ set startupitem.install yes
+ }
+ if { ${startupitem.install} != "no" } {
+ xinstall -d -m 0755 ${destroot}/LaunchDaemons
+ ln -s ${prefix}/etc/LaunchDaemons/org.freedesktop.avahi-daemon.plist \
+ ${destroot}/Library/LaunchDaemons/
+ ln -s ${prefix}/etc/LaunchDaemons/org.freedesktop.avahi-dnsconfd.plist \
+ ${destroot}/Library/LaunchDaemons/
+
+ }
+}
+
pre-activate {
addgroup avahi
adduser avahi gid=[existsgroup avahi] realname=Avahi Service
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120511/ef092a9e/attachment.html>
More information about the macports-changes
mailing list