source: trunk/dports/mail/imap-uw/Portfile

Last change on this file was 146517, checked in by raimue@…, 17 months ago

Mass rev-bump dependents of port openssl due to ABI change

Disabling SSLv2 in r146162 changed the ABI of the library, leading to loading
errors for binaries with references to SSLv2 symbols.

https://lists.macosforge.org/pipermail/macports-dev/2016-March/032531.html

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 5.4 KB
Line 
1# -*- 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
2# $Id: Portfile 146517 2016-03-10 17:49:28Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                imap-uw
7version             2007f
8revision            1
9categories          mail
10license             Apache-2
11maintainers         nomaintainer
12description         University of Washington IMAP daemon
13long_description    IMAP (Internet Message Access Protocol) is a method \
14                    of accessing electronic messages kept on a (possibly \
15                    shared) mail server. This port provides the \
16                    University of Washington IMAP toolkit (IMAP \
17                    supporting software developed by the UW).
18homepage            http://www.washington.edu/imap/
19master_sites        ftp://ftp.cac.washington.edu/imap/ \
20                    ftp://ftp.cac.washington.edu/imap/old/
21platforms           darwin
22
23distname            imap-${version}
24extract.suffix      .tar.Z
25checksums           rmd160    14f40284e9e164c0ed7677f1e5d8e3309c7c58c1 \
26                    sha256  870e95f6bd19265832a88fd89b77c54c841c59022fd21e69254050c8b1005e3c
27
28depends_lib         path:lib/libssl.dylib:openssl port:gss
29
30use_configure       no
31use_parallel_build  no
32
33patchfiles          patch-Makefile.diff
34if {${os.platform} eq "darwin" && ${os.major} >= 10} {
35    patchfiles-append   patch-snowleopard.diff
36}
37post-patch {
38    reinplace s|SSLINCLUDE=\/usr|SSLINCLUDE=${prefix}|g ${worksrcpath}/Makefile
39    reinplace s|SSLLIB=\/usr|SSLLIB=${prefix}|g ${worksrcpath}/Makefile
40    reinplace s|GSSINCLUDE=\/usr|GSSINCLUDE=${prefix}|g ${worksrcpath}/Makefile
41    reinplace s|GSSLIB=\/usr|GSSLIB=${prefix}|g ${worksrcpath}/Makefile
42}
43
44build.target        osx
45# Enable IPv6 support
46build.args-append   IP6=6
47# Ensure we're UsingTheRightCompiler
48build.args-append   CC=${configure.cc}
49# Force SSL connections: no unecrypted plaintext authenication
50build.args          SSLTYPE=nopwd
51
52variant ssl_plain description {Allow unencrypted plaintext authentication} {
53    build.args-delete   SSLTYPE=nopwd
54    build.args-append   SSLTYPE=unix
55}
56
57# Variant to enable SSL with PAM support for Mac OS X
58variant ssl_pam description { Enable PAM support } {
59    build.target    oxp
60
61    post-destroot {
62        xinstall -m 0644 ${filespath}/README-MACOSX \
63            ${filespath}/etc-pam.d-imap \
64            ${filespath}/etc-xinetd.d-imap \
65            ${filespath}/etc-xinetd.d-imaps \
66            ${destroot}${prefix}/share/doc/${name}/
67        reinplace "s|__PREFIX|${prefix}|" \
68            ${filespath}/README-MACOSX \
69            ${destroot}${prefix}/share/doc/${name}/etc-xinetd.d-imap \
70            ${destroot}${prefix}/share/doc/${name}/etc-xinetd.d-imaps
71    }
72}
73
74# Variant to set the default for creating new mailboxes to "mbx" format
75variant mbx conflicts mix description { default new mailboxes to "mbx" format } {
76    build.args-append   CREATEPROTO=mbxproto
77}
78
79# Variant to set the default for creating new mailboxes to "mix" format
80variant mix conflicts mbx description { default new mailboxes to "mix" format } {
81    build.args-append   CREATEPROTO=mixproto
82}
83
84# Variant to set the default mail subdirectory name to "Mail"
85variant subdir description { set the contents of ~/.imap/MailboxDir.rc or else "Mail" as subdirectory name } {
86    patchfiles-append   patch-env_unix.c.diff
87}
88
89destroot {
90    # Warn user if not running as root
91    if {[geteuid] != 0} {
92        ui_msg "-----------------------------------------------------------"
93        ui_msg "Note that you are not running as root, so files installed"
94        ui_msg "by this port will not end up with proper ownership and"
95        ui_msg "will likely not work correctly."
96        ui_msg "-----------------------------------------------------------"
97    }
98    xinstall -m 0755 -d ${destroot}${prefix}/share/doc/${name}
99    xinstall -m 0755 ${worksrcpath}/imapd/imapd ${destroot}${prefix}/libexec
100    xinstall -m 0755 ${worksrcpath}/ipopd/ipop2d ${destroot}${prefix}/libexec
101    xinstall -m 0755 ${worksrcpath}/ipopd/ipop3d ${destroot}${prefix}/libexec
102    xinstall -m 0755 ${worksrcpath}/mailutil/mailutil ${destroot}${prefix}/bin
103    xinstall -m 0755 ${worksrcpath}/tmail/tmail ${destroot}${prefix}/bin
104    xinstall -m 0755 ${worksrcpath}/dmail/dmail ${destroot}${prefix}/bin
105    xinstall -m 0755 ${worksrcpath}/mtest/mtest ${destroot}${prefix}/bin/mboxtest
106    if {[geteuid] == 0} {
107        xinstall -g mail -m 2711 ${worksrcpath}/mlock/mlock ${destroot}${prefix}/libexec
108    } else {
109        xinstall -m 0711 ${worksrcpath}/mlock/mlock ${destroot}${prefix}/libexec
110    }
111    xinstall -m 0755 ${worksrcpath}/src/imapd/imapd.8 ${destroot}${prefix}/share/man/man8
112    xinstall -m 0755 ${worksrcpath}/src/ipopd/ipopd.8 ${destroot}${prefix}/share/man/man8
113    xinstall -m 0755 ${worksrcpath}/src/mailutil/mailutil.1 ${destroot}${prefix}/share/man/man1
114    xinstall -m 0755 ${worksrcpath}/src/tmail/tmail.1 ${destroot}${prefix}/share/man/man1
115    xinstall -m 0755 ${worksrcpath}/src/dmail/dmail.1 ${destroot}${prefix}/share/man/man1
116    xinstall -m 0644 ${worksrcpath}/docs/RELNOTES ${destroot}${prefix}/share/doc/${name}
117    xinstall -m 0644 ${worksrcpath}/docs/FAQ.html ${destroot}${prefix}/share/doc/${name}
118    xinstall -m 0644 {*}[glob ${worksrcpath}/docs/*.txt] ${destroot}${prefix}/share/doc/${name}
119}
120
121
122livecheck.type      regex
123livecheck.url       ${homepage}documentation/RELNOTES.html
124livecheck.regex     "imap-(\\d{4}.?) "
Note: See TracBrowser for help on using the repository browser.