Skip to content
Permalink
Browse files

Updated to latest release 2004 and +devel variant release

2004a.DEV.SNAP-0405261606.  Added self to maintainer list.

Submitted by:   rshaw
Approved by:    mij

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@7523 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Robert Shaw
Robert Shaw committed Jun 16, 2004
1 parent 539cabc commit 0785416c21be406dfe23922664df1e72379adaa8
Showing with 130 additions and 65 deletions.
  1. +125 −64 mail/imap-uw/Portfile
  2. +5 −1 mail/imap-uw/files/README-MACOSX
@@ -1,72 +1,133 @@
# $Id: Portfile,v 1.18 2004/01/30 23:15:28 fenner Exp $
# $Id: Portfile,v 1.19 2004/06/16 02:49:56 rshaw Exp $
PortSystem 1.0

PortSystem 1.0
name imap-uw
version 2002e
revision 5
categories mail
maintainers mij@opendarwin.org
description University of Washington IMAP daemon
homepage http://www.washington.edu/imap/
platforms darwin

long_description $description

dist_subdir ${name}
name imap-uw
version 2004
categories mail
maintainers mij@opendarwin.org rshaw@opendarwin.org
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/ \
opendarwin
opendarwin
platforms darwin

distname imap-${version}
extract.suffix .tar.Z
distname imap-${version}
checksums md5 0d246d868f20d8c441d235b77c940676
checksums md5 ec3dafeeae320457a1d098157e9bf969

configure {}
use_configure no

build.target osx

platform darwin 7 { patchfiles patch-src-osdep-unix-Makefile \
patch-src-osdep-unix-ckp_osx.c }

variant ssl_plain { patchfiles patch-Makefile
build.args SSLTYPE=unix }

variant ssl_pam { version 2003.DEV.SNAP-0312072251
distname imap-${version}
checksums md5 cb1cee5c5970d76f0a1f59987318a9af
depends_lib lib:libssl.0.9:openssl
patchfiles patch-Makefile
build.target oxp
build.args SSLTYPE=unix
post-destroot { file mkdir ${destroot}${prefix}/share/doc/${name}
file copy ${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 "For setup of IMAP-UW using SSL and PAM on Mac OS X 10.3, please see\n${prefix}/share/doc/${name}/README-MACOSX for details." } }

variant mbx { build.args-append CREATEPROTO=mbxproto }

variant subdir { patchfiles-append patch-env_unix.c }

destroot { system "install -m 755 -d ${destroot}${prefix}/libexec"
system "install -m 755 -d ${destroot}${prefix}/bin"
system "install -m 755 -d ${destroot}${prefix}/share/man/man8"
system "install -m 755 -d ${destroot}${prefix}/share/man/man1"
system "install -m 755 ${worksrcpath}/imapd/imapd ${destroot}${prefix}/libexec"
system "install -m 755 ${worksrcpath}/ipopd/ipop3d ${destroot}${prefix}/libexec/ipop2d"
system "install -m 755 ${worksrcpath}/ipopd/ipop3d ${destroot}${prefix}/libexec/ipop3d"
system "install -m 755 ${worksrcpath}/mailutil/mailutil ${destroot}${prefix}/bin"
system "install -m 755 ${worksrcpath}/tmail/tmail ${destroot}${prefix}/bin"
system "install -m 755 ${worksrcpath}/dmail/dmail ${destroot}${prefix}/bin"
system "install -m 755 ${worksrcpath}/mtest/mtest ${destroot}${prefix}/bin/mboxtest"
system "install -g mail -m 2711 ${worksrcpath}/mlock/mlock ${destroot}${prefix}/libexec"
system "install -m 755 ${worksrcpath}/src/imapd/imapd.8c ${destroot}${prefix}/share/man/man8/imapd.8"
system "install -m 755 ${worksrcpath}/src/ipopd/ipopd.8c ${destroot}${prefix}/share/man/man8/ipopd.8"
system "install -m 755 ${worksrcpath}/src/mailutil/mailutil.1 ${destroot}${prefix}/share/man/man1"
system "install -m 755 ${worksrcpath}/src/tmail/tmail.1 ${destroot}${prefix}/share/man/man1"
system "install -m 755 ${worksrcpath}/src/dmail/dmail.1 ${destroot}${prefix}/share/man/man1" }
# Patches for Darwin 7.x/Mac OS X 10.3.x support
platform darwin 7 {
patchfiles patch-src-osdep-unix-Makefile \
patch-src-osdep-unix-ckp_osx.c
}

# 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 {
patchfiles patch-Makefile
build.args SSLTYPE=unix
}

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

patchfiles patch-Makefile
build.target oxp
build.args 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 enable IPv6 support (default is IPv4)
variant ipv6 {
build.args-append IP=6
}

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

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

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 "-----------------------------------------------------------"
}
cd ${worksrcpath}
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 imapd/imapd ${destroot}${prefix}/libexec
xinstall -m 0755 ipopd/ipop2d ${destroot}${prefix}/libexec
xinstall -m 0755 ipopd/ipop3d ${destroot}${prefix}/libexec
xinstall -m 0755 mailutil/mailutil ${destroot}${prefix}/bin
xinstall -m 0755 tmail/tmail ${destroot}${prefix}/bin
xinstall -m 0755 dmail/dmail ${destroot}${prefix}/bin
xinstall -m 0755 mtest/mtest ${destroot}${prefix}/bin/mboxtest
if {$env(USER) == "root"} {
xinstall -g mail -m 2711 mlock/mlock ${destroot}${prefix}/libexec
} else {
xinstall -m 0711 mlock/mlock ${destroot}${prefix}/libexec
}
if {[variant_isset devel]} {
xinstall -m 0755 src/imapd/imapd.8 ${destroot}${prefix}/share/man/man8
xinstall -m 0755 src/ipopd/ipopd.8 ${destroot}${prefix}/share/man/man8
} else {
xinstall -m 0755 src/imapd/imapd.8c ${destroot}${prefix}/share/man/man8/imapd.8
xinstall -m 0755 src/ipopd/ipopd.8c ${destroot}${prefix}/share/man/man8/ipopd.8
}
xinstall -m 0755 src/mailutil/mailutil.1 ${destroot}${prefix}/share/man/man1
xinstall -m 0755 src/tmail/tmail.1 ${destroot}${prefix}/share/man/man1
xinstall -m 0755 src/dmail/dmail.1 ${destroot}${prefix}/share/man/man1
xinstall -m 0644 docs/RELNOTES ${destroot}${prefix}/share/doc/${name}
xinstall -m 0644 docs/FAQ.html ${destroot}${prefix}/share/doc/${name}
foreach file [glob docs/*.txt] {
xinstall -m 0644 ${file} ${destroot}${prefix}/share/doc/${name}
}
}

variant devel {
version 2004a.DEV.SNAP-0405261606
distname imap-${version}
checksums md5 2aa85954a1c83ccebb97f2ee2992ec76
}

@@ -1,9 +1,13 @@
IMAP-UW Darwin/Mac OS X 10.3 README
Author: Robert Shaw <rshaw@opendarwin.org>

Tested with IMAP-UW version 2003.DEV.SNAP-0312072251 on Mac OS X 10.3.1
Tested with IMAP-UW version 2004 and version 2004a.DEV.SNAP-0405261606 (variant
+devel) on Mac OS X 10.3.4.

Built and installed using:
sudo port install imap-uw +ssl_pam +subdir
OR
sudo port install imap-uw +ssl_pam +subdir +devel

This file outlines the set of steps needed to enable use of IMAP-UW with
SSL using PAM on a Mac OS X (or Darwin) 10.3 system. Most of the

0 comments on commit 0785416

Please sign in to comment.
You can’t perform that action at this time.