[145418] trunk/dports/devel/buildbot-slave

ctreleaven at macports.org ctreleaven at macports.org
Thu Feb 4 09:55:14 PST 2016


Revision: 145418
          https://trac.macports.org/changeset/145418
Author:   ctreleaven at macports.org
Date:     2016-02-04 09:55:14 -0800 (Thu, 04 Feb 2016)
Log Message:
-----------
buildbot-slave: add template for launchd plist and notes

Modified Paths:
--------------
    trunk/dports/devel/buildbot-slave/Portfile

Added Paths:
-----------
    trunk/dports/devel/buildbot-slave/files/
    trunk/dports/devel/buildbot-slave/files/org.macports.buildslave.template.plist

Modified: trunk/dports/devel/buildbot-slave/Portfile
===================================================================
--- trunk/dports/devel/buildbot-slave/Portfile	2016-02-04 17:31:58 UTC (rev 145417)
+++ trunk/dports/devel/buildbot-slave/Portfile	2016-02-04 17:55:14 UTC (rev 145418)
@@ -6,6 +6,7 @@
 
 name                    buildbot-slave
 version                 0.8.12
+revision                1
 categories              devel python
 platforms               darwin
 supported_archs         noarch
@@ -33,14 +34,28 @@
 
 build.env               NO_INSTALL_REQS=1
 
+set sharedir            ${prefix}/share/${subport}
 set docdir              ${prefix}/share/doc/${subport}
+set plistfile           org.macports.buildslave.plist.template
 
+post-extract {
+    file mkdir ${worksrcpath}/macports
+    copy ${filespath}/${plistfile} ${worksrcpath}/macports/${plistfile}
+}
+
+post-patch {
+    reinplace -locale C "s|@PREFIX@|${prefix}|g" ${worksrcpath}/macports/${plistfile}
+}
+
 post-destroot {
     xinstall -d ${destroot}${docdir}
     xinstall -m 644 -W ${worksrcpath} COPYING NEWS README UPGRADING \
         ${destroot}${docdir}
     xinstall -m 644 ${worksrcpath}/docs/buildslave.1 \
         ${destroot}${prefix}/share/man/man1
+    xinstall -d ${destroot}${sharedir}
+    xinstall -m 755 ${worksrcpath}/macports/${plistfile} \
+        ${destroot}${sharedir}
 }
 
 # note some tests need py-mock
@@ -49,3 +64,13 @@
 test.env                PYTHONPATH=.
 test.cmd                ${prefix}/bin/trial-${python.branch}
 test.target             buildslave.test
+
+notes "
+
+An example launchd plist file is available in ${sharedir}.  After you have
+created your build slave, edit the UserName and WorkingDirectory fields to
+appropriate values. As the root user, copy it to /Library/LaunchDaemons and
+instruct launchd to run it with:
+sudo launchctl load -w /Library/LaunchDaemons/your.plist.name
+
+"

Added: trunk/dports/devel/buildbot-slave/files/org.macports.buildslave.template.plist
===================================================================
(Binary files differ)


Property changes on: trunk/dports/devel/buildbot-slave/files/org.macports.buildslave.template.plist
___________________________________________________________________
Added: svn:mime-type
   + application/xml
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160204/a0cd30a8/attachment.html>


More information about the macports-changes mailing list