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

    dovecot  most recent diff


    version 1.1.16

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


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

      PortSystem 1.0

      Name: dovecot
      epoch 20060722
      Version: 1.1.16
      set branch [join [lrange [split ${version} .] 0 1] .]
      Category: mail
      Maintainers: jberry openmaintainer
      Platform: darwin

      Description: Secure, fast imap and pop3 server
      Long Description: Dovecot is an IMAP and POP3 server for Linux/UNIX-like systems, written with security primarily in mind. Although it's written in C, it uses several coding techniques to avoid most of the common pitfalls.

      Homepage: http://dovecot.org/

      Master Sites: ${homepage}releases/${branch}
      Checksums: md5 2e20c761416b16aa0fe9cac260ca0d2d sha1 3aa7f386559f244b3a9addad27c4845c554e545b rmd160 53122e86f217e33f24b52559fece5ace35689eb4

      depends_build port:pkgconfig
      depends_lib port:libiconv port:zlib port:openssl

      configure.args --sysconfdir=${prefix}/etc/dovecot --localstatedir=${prefix}/var --with-ssl=openssl --with-ssl-dir=${prefix}/etc/ssl

      configure.cppflags "-I${prefix}/include/openssl"

      post-configure {
      # madvise fails on darwin 7 and earlier, but is fixed on darwin 8
      if { ${os.platform} == "darwin" && [rpm-vercomp ${os.version} 8.0] < 0 } {
      reinplace "s|#define HAVE_MADVISE 1|/* #undef HAVE_MADVISE */|" ${worksrcpath}/config.h
      }
      }

      post-destroot {
      # Create the dovecot user and group
      addgroup dovecot
      set gid [existsgroup dovecot]
      adduser dovecot gid=${gid} realname=Dovecot
      }

      platform darwin 7 {
      # Avoid broken poll
      configure.args-append --with-ioloop=select
      }

      platform darwin 8 {
      configure.args-append --with-ioloop=kqueue
      }

      platform darwin 9 {
      configure.args-append --with-ioloop=kqueue
      }

      platform darwin 10 {
      configure.args-append --with-ioloop=kqueue
      }

      Variant: postgres {
      depends_lib-append port:postgresql80
      configure.args-append --with-pgsql
      configure.ldflags-append "-L${prefix}/lib/pgsql8"
      configure.cppflags-append "-I${prefix}/include/pgsql8"
      }

      Variant: rawlog { configure.args-append --with-rawlog }

      Variant: ldap { configure.args-append --with-ldap
      depends_lib-append port:openldap
      }

      startupitem.create yes
      startupitem.executable ${prefix}/sbin/dovecot
      startupitem.pidfile auto ${prefix}/var/run/dovecot/master.pid

      livecheck.type regex
      livecheck.url ${homepage}download.html
      livecheck.regex "${name}-(\\d+\\.\\d+(\\.\\d+)?).tar.gz"


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

     Where to find more information:

    Darwin Ports



    Lightbox this page.