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

    dnsmasq  most recent diff


    version 2.51

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


      # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
      The dnsmasq Portfile 59401 2009-10-14 18:16:22Z snc macports.org $

      PortSystem 1.0

      Name: dnsmasq
      Version: 2.51
      Category: net
      license GPL
      Maintainers: snc openmaintainer
      Description: lightweight DNS forwarder and DHCP server
      Long Description: Dnsmasq is lightweight, easy to configure DNS forwarder and DHCP server. It is designed to provide DNS and, optionally, DHCP, to a small network. It can serve the names of local machines which are not in the global DNS. The DHCP server integrates with the DNS server and allows machines with DHCP-allocated addresses to appear in the DNS with names configured either in each host or in a central configuration file. Dnsmasq supports static and dynamic DHCP leases and BOOTP for network booting of diskless machines.
      Homepage: http://www.thekelleys.org.uk/dnsmasq/doc.html

      Platform: darwin
      depends_build port:nawk

      Master Sites: http://www.thekelleys.org.uk/dnsmasq/

      Checksums: md5 97465261a6de5258a3c3edfe51ca16a4 sha1 2f161b9bce87de6cfc18e2c84017753bdb0ef209 rmd160 ea15249d6f8a8e1bb62dc061899885c2791d6a28

      Patch Files: patch-src-config.h.diff patch-Makefile.diff
      post-patch {
      reinplace "s| PREFIX |${prefix}|g" ${worksrcpath}/src/config.h
      }

      use_configure no

      destroot.args PREFIX=${prefix}

      startupitem.create yes
      #startupitem.type launchd

      livecheck.type regex
      livecheck.url ${master_sites}
      livecheck.regex LATEST_IS_(\\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/dnsmasq
      % sudo port install dnsmasq
      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 dnsmasq
      ---> Verifying checksum for dnsmasq
      ---> Extracting dnsmasq
      ---> Configuring dnsmasq
      ---> Building dnsmasq with target all
      ---> Staging dnsmasq into destroot
      ---> Installing dnsmasq
    - 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 dnsmasq with these commands:
      %  man dnsmasq
      % apropos dnsmasq
      % which dnsmasq
      % locate dnsmasq

     Where to find more information:

    Darwin Ports



    Lightbox this page.