Dbus version 1.2.4 - How to Download and Install on Mac OS X
Saturday the 4th of July, 2009

    version 1.2.4

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


      # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
      The dbus Portfile 41334 2008-10-31 04:44:22Z jmr macports.org $

      PortSystem 1.0

      Name: dbus
      Version: 1.2.4
      Revision: 2
      Maintainers: nomaintainer
      Category: devel
      Platform: darwin
      Description: A message bus system, a simple way for applications to talk to one another.

      Long Description: ${description}

      Homepage: http://www.freedesktop.org/Software/dbus
      Master Sites: http://dbus.freedesktop.org/releases/dbus

      Checksums: md5 2e643910a09f44b000a0d76038637999 sha1 913d796b79802b6ee6ca2b0ef59c670f3fd79774 rmd160 0441eb8b668ed70250e484b02fe6a83c05c9a088

      Patch Files: patch-dbus-launch-x11.c.diff

      depends_build port:pkgconfig

      depends_lib port:expat lib:libX11:XFree86

      configure.args --disable-doxygen-docs --disable-xml-docs --with-x --x-includes=${x11prefix}/include --x-libraries=${x11prefix}/lib

      configure.cflags-append -no-cpp-precomp

      use_parallel_build yes

      test.run yes
      test.target check

      pre-test {
      if {![variant_isset test]} {
      ui_error "test variant must be activated to enable test support."
      error "Please enable test variant."
      }
      }

      post-destroot {
      foreach dir ${destroot.keepdirs} {
      file mkdir $dir
      }
      }

      destroot.keepdirs ${destroot}${prefix}/share/dbus-1/services ${destroot}${prefix}/var/run/dbus ${destroot}${prefix}/var/lib/dbus ${destroot}${prefix}/etc/dbus-1/system.d ${destroot}${prefix}/etc/dbus-1/session.d

      startupitem.create yes
      startupitem.name dbus
      startupitem.init XDG_DATA_DIRS=${prefix}/share
      startupitem.start "${prefix}/bin/dbus-daemon --system"
      startupitem.stop "kill `cat ${prefix}/var/run/dbus/pid`"
      startupitem.restart "kill `cat ${prefix}/var/run/dbus/pid` ; ${prefix}/bin/dbus-daemon --system"

      pre-activate {
      addgroup messagebus
      adduser messagebus gid=[existsgroup messagebus] realname=Message\ Bus
      }

      post-activate {
      file attributes ${prefix}/var/run/dbus -group messagebus -owner messagebus
      file attributes ${prefix}/libexec/dbus-daemon-launch-helper -group messagebus
      system "dbus-uuidgen --ensure"
      }

      Variant: test description {enable tests} {
      configure.args-append --enable-tests
      }

      Variant: no_x11 description {disable X11 support} {
      configure.args-delete --with-x
      configure.args-append --without-x
      depends_lib-delete lib:libX11:XFree86
      }

      livecheck.check regex
      livecheck.regex {D-Bus (\d+(?:\.\d+)*)}

    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/dbus
      % sudo port install dbus
      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 dbus
      ---> Verifying checksum for dbus
      ---> Extracting dbus
      ---> Configuring dbus
      ---> Building dbus with target all
      ---> Staging dbus into destroot
      ---> Installing dbus
    - 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 dbus with these commands:
      %  man dbus
      % apropos dbus
      % which dbus
      % locate dbus

     Where to find more information:

    Darwin Ports



    Lightbox this page.