avahi version 0.6.22 for Mac OS X 10.5 Leopard
Friday the 16th of May, 2008

    avahi  most recent diff


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



      # $Id: Portfile 33279 2008-01-22 15:44:51Z nox macports.org $

      PortSystem 1.0

      Name: avahi
      Version: 0.6.22
      Category: net devel
      Maintainers: nox
      Platform: darwin
      Description: A system which facilitates service discovery on a local network

      Long Description: Avahi is a system which facilitates service discovery on a local network. This means that you can plug your laptop or computer into a network and instantly be able to view other people who you can chat with, find printers to print to or find files being shared. This kind of technology is already found in Mac OS X (branded Rendezvous, Bonjour and sometimes Zeroconf) and is very convenient. Avahi is mainly based on Lennart Poettering's flexmdns mDNS implementation for Linux which has been discontinued in favour of Avahi.

      Homepage: http://avahi.org/
      master_sites ${homepage}download/

      checksums md5 c84b1a8a23126e188426728710414dc8 sha1 2863bae55a991facc93138ca4660d5b55c846bd1 rmd160 fad35f473a9109c8648e43b0f6f547c32b18e32f

      patchfiles patch-avahi-utils-Makefile.in-nls.diff

      post-patch {
      # This preprocessor macro causes a lot of things to be undefined inside netinet/in.h system header.
      reinplace "s/-D_XOPEN_SOURCE=500//" ${worksrcpath}/configure

      reinplace "s|/System|${destroot}|g" ${worksrcpath}/initscript/darwin/Makefile.in
      }

      depends_run port:pkgconfig port:intltool

      depends_lib port:libdaemon port:glib2 port:gtk2 port:libglade2 port:python25 port:dbus port:dbus-glib port:dbus-python25 port:expat port:gdbm port:py25-gdbm port:py25-gtk port:gettext port:libiconv

      configure.args --disable-autoipd --disable-qt3 --disable-qt4 --disable-mono --disable-monodoc --with-libiconv-prefix=${prefix} --with-libintl-prefix=${prefix} --with-distro=darwin --enable-compat-libdns_sd

      configure.cppflags-append -L${prefix}/lib
      configure.python ${prefix}/bin/python2.5

      test.run yes
      test.target check

      pre-test {
      if {![variant_isset test]} {
      error "test variant must be enabled to run the tests."
      }
      }

      pre-activate {
      addgroup avahi
      adduser avahi gid=[existsgroup avahi] realname=Avahi Service
      }

      post-activate {
      if {[file exists /System/Library/LaunchDaemons/org.freedesktop.avahi-dnsconfd.plist]} {
      ui_debug "Removing cruft from versions prior to 0.6.17_2..."
      delete /System/Library/LaunchDaemons/org.freedesktop.avahi-dnsconfd.plist /System/Library/LaunchDaemons/org.freedesktop.avahi-daemon.plist
      }
      }

      Variant: mono description {Enable Mono support} {
      depends_build-append port:monodoc

      depends_lib-append port:mono

      configure.args-delete --disable-mono --disable-monodoc

      post-patch {
      reinplace {s/\.so\.0/.0.dylib/} ${worksrcpath}/avahi-ui-sharp/avahi-ui-sharp.dll.config.in
      }

      post-build {
      # TODO This shouldn't be needed, we need to fix Mono dllmap library path.
      reinplace -E "s|(target=\")|\\1${prefix}/lib/|" ${worksrcpath}/avahi-sharp/avahi-sharp.dll.config
      ${worksrcpath}/avahi-ui-sharp/avahi-ui-sharp.dll.config
      }
      }

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

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

     Where to find more information:

    Darwin Ports



    image test