Dpkg version 1.10.28 - How to Download and Install on Mac OS X
Sunday the 22nd of November, 2009

    version 1.10.28

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


      The dpkg Portfile 57375 2009-09-10 08:16:41Z ryandesign macports.org $

      PortSystem 1.0
      Name: dpkg
      Version: 1.10.28
      Revision: 1
      Platform: darwin freebsd
      Category: sysutils archivers
      Maintainers: landonf
      Description: Debian package maintenance system
      Homepage: http://www.debian.org/

      Master Sites: http://ftp.debian.org/debian/pool/main/d/dpkg/
      Checksums: md5 912ece8f3c39192503ff2bcb4c74182e

      # Use MacPorts versions explicitly
      depends_lib port:gettext port:libiconv bin:perl:perl5


      distname ${name}_${version}
      worksrcdir ${name}-${version}

      Patch Files: patch-config.h.in patch-configure patch-configure.in patch-lib_utils.c patch-lib_tarfn.c patch-main_remove.c patch-utils_Makefile.in patch-main_archives.c patch-archtable patch-include_parsedump.h

      configure.args --without-sgml-doc --with-libintl-prefix=${prefix} --with-libiconv-prefix=${prefix} --with-admindir=${prefix}/var/db/dpkg --mandir=${prefix}/share/man

      build.type gnu

      set vardpkg ${destroot}${prefix}/var/db/dpkg
      destroot.keepdirs ${vardpkg} ${vardpkg}/updates ${vardpkg}/info

      post-patch {
      set scripts ${worksrcpath}/scripts
      reinplace s|/etc/dpkg/|${prefix}/etc/dpkg/| ${scripts}/dpkg-shlibdeps.pl ${scripts}/dpkg-source.1

      reinplace s|/etc/|${prefix}/etc/| ${scripts}/update-alternatives.8

      reinplace s|/etc/alternatives|${prefix}/etc/alternatives|g ${scripts}/update-alternatives.pl
      }

      pre-destroot {
      file mkdir ${destroot}${prefix}/share/doc/dpkg
      }

      post-destroot {
      file mkdir ${vardpkg}
      file mkdir ${vardpkg}/updates
      file mkdir ${vardpkg}/info
      system "touch ${vardpkg}/available ${vardpkg}/status"
      }

      platform darwin {
      depends_build-append bin:gnumake:gmake
      patchfiles-append patch-utils_start-stop-daemon.c bsd/patch-main_help.c
      }

      platform freebsd {
      depends_build-append bin:gmake:gmake
      patchfiles-append patch-utils_start-stop-daemon.c bsd/patch-main_help.c
      }

      livecheck.type regex
      livecheck.url http://ftp.debian.org/debian/pool/main/d/dpkg/
      livecheck.regex "${name}_(\\d+\\.\\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/dpkg
      % sudo port install dpkg
      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 dpkg
      ---> Verifying checksum for dpkg
      ---> Extracting dpkg
      ---> Configuring dpkg
      ---> Building dpkg with target all
      ---> Staging dpkg into destroot
      ---> Installing dpkg
    - 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 dpkg with these commands:
      %  man dpkg
      % apropos dpkg
      % which dpkg
      % locate dpkg

     Where to find more information:

    Darwin Ports



    Lightbox this page.