Daemontools version 0.76 - How to Download and Install on Mac OS X
Saturday the 7th of November, 2009

    daemontools  most recent diff


    version 0.76

      View the most recent changes for the daemontools port at: daemontools.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for daemontools.
      The raw portfile for daemontools 0.76 is located here:
      http://daemontools.darwinports.com/dports/sysutils/daemontools/Portfile
      Find related portfiles with the unique DarwinPorts.com search feature.
      Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/daemontools


      The daemontools Portfile 46709 2009-02-11 00:47:41Z blb macports.org $

      PortSystem 1.0
      Name: daemontools
      Version: 0.76
      Revision: 2
      Category: sysutils
      Platform: darwin
      Maintainers: blb openmaintainer
      Description: collection of tools for managing UNIX services
      Long Description: daemontools is an extensive collection of tools for managing UNIX services. It includes tools for starting, restarting, stopping, monitoring and logging any services that you might wish to run.

      Homepage: http://cr.yp.to/daemontools.html
      Master Sites: http://cr.yp.to/daemontools/ http://smarden.org/pape/djb/manpages/:man
      distfiles-append ${distname}-man.tar.gz:man
      Checksums: ${distname}.tar.gz md5 1871af2453d6e464034968a0fbcb2bfc ${distname}-man.tar.gz md5 2d3858a48f293c87202f76cd883438ee

      worksrcdir admin/${worksrcdir}

      use_configure no

      build.cmd package/compile
      build.target

      pre-build {
      system "cd ${workpath}/${worksrcdir} && echo x >>src/trypoll.c"
      }
      post-build {
      system "cd ${workpath}/daemontools-man && gzip *.8"
      }

      destroot {
      xinstall -m 755 -W ${worksrcpath}/command envdir envuidgid fghack multilog pgrphack readproctitle setlock setuidgid softlimit supervise svc svok svscan svscanboot svstat tai64n tai64nlocal ${destroot}${prefix}/sbin
      xinstall -m 755 -W ${filespath} svscan-pathwrapper ${destroot}${prefix}/sbin
      reinplace "s| PREFIX |${prefix}|g" ${destroot}${prefix}/sbin/svscan-pathwrapper
      xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
      xinstall -m 644 -W ${worksrcpath}/src CHANGES TODO ${destroot}${prefix}/share/doc/${name}

      xinstall -m 755 -d ${destroot}${prefix}/share/man/man8
      eval xinstall -m 644 [glob ${workpath}/daemontools-man/*.8.gz] ${destroot}${prefix}/share/man/man8
      xinstall -m 644 ${workpath}/daemontools-man/README ${destroot}${prefix}/share/doc/${name}/README_MANPAGES
      xinstall -m 755 -d ${destroot}${prefix}/var/svscan/service
      }

      destroot.keepdirs ${destroot}${prefix}/var/svscan/service

      post-activate {
      ui_msg "Note, to use svscan, a startupitem has been created, but you"
      ui_msg "must use ${prefix}/var/svscan/service for it instead of just"
      ui_msg "/service"
      }

      startupitem.create yes
      startupitem.name svscan
      startupitem.executable ${prefix}/sbin/svscan-pathwrapper ${prefix}/var/svscan/service


    If you haven't already installed Darwin Ports, you can find easy instructions for doing so at the main Darwin Ports page.

    Once Darwin Ports has been installed, in a terminal window and while online, type the following and hit return:


      %  cd /opt/local/bin/portslocation/dports/daemontools
      % sudo port install daemontools
      Password:
    You will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to:

      ---> Fetching daemontools
      ---> Verifying checksum for daemontools
      ---> Extracting daemontools
      ---> Configuring daemontools
      ---> Building daemontools with target all
      ---> Staging daemontools into destroot
      ---> Installing daemontools
    - Make sure that you do not close the terminal window while Darwin Ports is working. Once the software has been installed, you can find further information about using daemontools with these commands:
      %  man daemontools
      % apropos daemontools
      % which daemontools
      % locate daemontools

     Where to find more information:

    Darwin Ports



    Lightbox this page.