[24402] trunk/dports/sysutils

source_changes at macosforge.org source_changes at macosforge.org
Mon Apr 23 20:20:46 PDT 2007


Revision: 24402
          http://trac.macosforge.org/projects/macports/changeset/24402
Author:   jann at macports.org
Date:     2007-04-23 20:20:46 -0700 (Mon, 23 Apr 2007)

Log Message:
-----------
New port runit

Added Paths:
-----------
    trunk/dports/sysutils/runit/
    trunk/dports/sysutils/runit/Portfile

Added: trunk/dports/sysutils/runit/Portfile
===================================================================
--- trunk/dports/sysutils/runit/Portfile	                        (rev 0)
+++ trunk/dports/sysutils/runit/Portfile	2007-04-24 03:20:46 UTC (rev 24402)
@@ -0,0 +1,58 @@
+# $Id$
+
+PortSystem 1.0
+
+name            runit
+version         1.7.2
+categories      sysutils
+platforms       darwin
+maintainers     macports at sanityinc.com
+description     collection of tools for managing UNIX services
+long_description    runit is a cross-platform Unix init scheme with service supervision, \
+                    fashioned after daemontools.  It includes tools for starting, \
+                    restarting, stopping, monitoring and logging any services \
+                    that you might wish to run.
+
+homepage        http://smarden.org/runit/
+master_sites    http://smarden.org/runit/
+checksums       ${distname}.tar.gz md5 35448e97188544914f298c88871ab984
+worksrcdir      admin/${worksrcdir}
+use_configure   no
+
+build.cmd       package/compile
+build.target
+
+pre-build       {
+    system "cd ${worksrcpath} && echo 'cc -Xlinker -x' >src/conf-ld"
+    reinplace "s| -static||g" ${worksrcpath}/src/Makefile
+    # Force use of select() rather than broken poll()
+    file copy -force ${worksrcpath}/src/iopause.h1 ${worksrcpath}/src/iopause.h2
+}
+post-build  {
+    system "cd ${workpath}/${worksrcdir}/man && gzip *.8"
+}
+
+startupitem.create      yes
+startupitem.name        ${name}
+startupitem.executable  sh -c "PATH=\"${prefix}/sbin:${prefix}/bin:\$PATH\" exec '${prefix}/sbin/runsvdir' '${prefix}/var/service' 'log: ...........................................................................................................................................................................................................................................................................................................................................................................................................'"
+
+destroot    {
+    xinstall -m 755 -s -W ${worksrcpath}/command runsv runsvdir sv svlogd utmpset chpst runsvchdir \
+        ${destroot}${prefix}/sbin
+    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
+    xinstall -m 644 -W ${worksrcpath}/doc benefits.html chpst.8.html dependencies.html \
+                 faq.html index.html install.html replaceinit.html runit-init.8.html runit.8.html \
+                 runlevels.html runscripts.html runsv.8.html runsvchdir.8.html runsvdir.8.html sv.8.html \
+                 svlogd.8.html upgrade.html usedietlibc.html useinit.html utmpset.8.html \
+        ${destroot}${prefix}/share/doc/${name}
+
+    xinstall -m 755 -d ${destroot}${prefix}/share/man/man8
+    xinstall -m 644 -W ${worksrcpath}/man chpst.8.gz runit-init.8.gz runit.8.gz runsv.8.gz \
+                 runsvchdir.8.gz runsvdir.8.gz sv.8.gz svlogd.8.gz utmpset.8.gz \
+        ${destroot}${prefix}/share/man/man8
+}
+
+post-install    {
+    ui_msg "\nCreate ${prefix}/var/service, then add service subdirectories as required; \
+                the startup item will then supervise these services by default."
+}


Property changes on: trunk/dports/sysutils/runit/Portfile
___________________________________________________________________
Name: svn:keywords
   + Id
Name: svn:eol-style
   + native

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070423/53245628/attachment.html


More information about the macports-changes mailing list