Imap-uw version 2007e - How to Download and Install on Mac OS X
Sunday the 22nd of November, 2009

    imap-uw  most recent diff


    version 2007e

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


      # -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
      The imap-uw Portfile 58384 2009-09-28 02:01:46Z snc macports.org $

      PortSystem 1.0

      Name: imap-uw
      Version: 2007e
      Category: mail
      license Apache v2
      Maintainers: snc openmaintainer
      Description: University of Washington IMAP daemon
      Long Description: IMAP (Internet Message Access Protocol) is a method of accessing electronic messages kept on a (possibly shared) mail server. This port provides the University of Washington IMAP toolkit (IMAP supporting software developed by the UW).
      Homepage: http://www.washington.edu/imap/
      Master Sites: ftp://ftp.cac.washington.edu/imap/ ftp://ftp.cac.washington.edu/imap/old/
      Platform: darwin

      distname imap-${version}
      extract.suffix .tar.Z
      Checksums: md5 519d68a8650420ae33eb7085dd6a8150 sha1 24c63cad8d0e74aa76e4341fcfa54d24f23a8c70 rmd160 7d6af203419975f763d7ec17b6a4544c94490b50

      use_configure no
      use_parallel_build no

      build.target oxp
      # Enable IPv6 support
      build.args-append IP=6

      # Patches for Darwin 7.x/Mac OS X 10.3.x support
      platform darwin 7 {
      patchfiles patch-src-osdep-unix-Makefile.diff patch-src-osdep-unix-ckp_osx.c.diff
      build.target osx
      }

      # Default is to enable SSL support and plaintext authentication
      # permitted only in SSL/TLS sessions.

      # Variant to enable SSL support and plaintext authentication
      Variant: ssl_plain description { enable SSL support and plaintext authentication } {
      patchfiles patch-Makefile.diff
      build.args-append SSLTYPE=unix
      }

      # Variant to enable SSL with PAM support for Mac OS X
      Variant: ssl_pam description { enable SSL with PAM support } {
      depends_lib lib:libssl.0.9:openssl

      patchfiles patch-Makefile.diff

      if {${os.major} >= 10} {
      patchfiles-append patch-src-osdep-unix-ckp_pam.c.diff
      }

      build.target oxp
      build.args-append SSLTYPE=unix

      post-destroot {
      xinstall -m 0644 ${filespath}/README-MACOSX ${filespath}/etc-pam.d-imap ${filespath}/etc-xinetd.d-imap ${filespath}/etc-xinetd.d-imaps ${destroot}${prefix}/share/doc/${name}/
      reinplace "s|__PREFIX|${prefix}|" ${filespath}/README-MACOSX ${destroot}${prefix}/share/doc/${name}/etc-xinetd.d-imap ${destroot}${prefix}/share/doc/${name}/etc-xinetd.d-imaps

      ui_msg "-----------------------------------------------------------"
      ui_msg "For use of IMAP-UW using SSL and PAM on Mac OS X 10.3,"
      ui_msg "please see the following:"
      ui_msg "\t${prefix}/share/doc/${name}/README-MACOSX"
      ui_msg "for further installation and setup details."
      ui_msg "-----------------------------------------------------------"
      }
      }

      # Variant to disable plaintext authentication outside of SSL/TSL
      # i.e. prohibit unencrypted plaintext passwords
      Variant: nopwd description { prohibit unencrypted plaintext passwords } {
      build.args-delete SSLTYPE=unix
      build.args-append SSLTYPE=unix.nopwd
      }

      # Variant to set the default for creating new mailboxes to "mbx" format
      Variant: mbx description { default new mailboxes to "mbx" format } {
      build.args-append CREATEPROTO=mbxproto
      }

      # Variant to set the default mail subdirectory name to "Mail"
      Variant: subdir description { set "Mail" as subdirectory name } {
      patchfiles-append patch-env_unix.c.diff
      }

      destroot {
      # Warn user if not running as root
      if {$env(USER) != "root"} {
      ui_msg "-----------------------------------------------------------"
      ui_msg "Note that you are not running as root, so files installed"
      ui_msg "by this port will not end up with proper ownership and"
      ui_msg "will likely not work correctly."
      ui_msg "-----------------------------------------------------------"
      }
      xinstall -m 0755 -d ${destroot}${prefix}/libexec
      xinstall -m 0755 -d ${destroot}${prefix}/bin
      xinstall -m 0755 -d ${destroot}${prefix}/share/doc/${name}
      xinstall -m 0755 -d ${destroot}${prefix}/share/man/man8
      xinstall -m 0755 -d ${destroot}${prefix}/share/man/man1
      xinstall -m 0755 ${worksrcpath}/imapd/imapd ${destroot}${prefix}/libexec
      xinstall -m 0755 ${worksrcpath}/ipopd/ipop2d ${destroot}${prefix}/libexec
      xinstall -m 0755 ${worksrcpath}/ipopd/ipop3d ${destroot}${prefix}/libexec
      xinstall -m 0755 ${worksrcpath}/mailutil/mailutil ${destroot}${prefix}/bin
      xinstall -m 0755 ${worksrcpath}/tmail/tmail ${destroot}${prefix}/bin
      xinstall -m 0755 ${worksrcpath}/dmail/dmail ${destroot}${prefix}/bin
      xinstall -m 0755 ${worksrcpath}/mtest/mtest ${destroot}${prefix}/bin/mboxtest
      if {$env(USER) == "root"} {
      xinstall -g mail -m 2711 ${worksrcpath}/mlock/mlock ${destroot}${prefix}/libexec
      } else {
      xinstall -m 0711 ${worksrcpath}/mlock/mlock ${destroot}${prefix}/libexec
      }
      xinstall -m 0755 ${worksrcpath}/src/imapd/imapd.8 ${destroot}${prefix}/share/man/man8
      xinstall -m 0755 ${worksrcpath}/src/ipopd/ipopd.8 ${destroot}${prefix}/share/man/man8
      xinstall -m 0755 ${worksrcpath}/src/mailutil/mailutil.1 ${destroot}${prefix}/share/man/man1
      xinstall -m 0755 ${worksrcpath}/src/tmail/tmail.1 ${destroot}${prefix}/share/man/man1
      xinstall -m 0755 ${worksrcpath}/src/dmail/dmail.1 ${destroot}${prefix}/share/man/man1
      xinstall -m 0644 ${worksrcpath}/docs/RELNOTES ${destroot}${prefix}/share/doc/${name}
      xinstall -m 0644 ${worksrcpath}/docs/FAQ.html ${destroot}${prefix}/share/doc/${name}
      foreach file [glob ${worksrcpath}/docs/*.txt] {
      xinstall -m 0644 ${file} ${destroot}${prefix}/share/doc/${name}
      }
      }


      livecheck.type regex
      livecheck.url ${homepage}documentation/RELNOTES.html
      livecheck.regex "imap-(\\d{4}.?) "

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

     Where to find more information:

    Darwin Ports



    Lightbox this page.