Ignore:
Timestamp:
Nov 21, 2010, 1:44:21 AM (8 years ago)
Author:
snc@…
Message:

imap-uw:

  • fix license
  • drop maintainer
  • drop md5 checksum
  • add missing dependencies
  • patch Makefile to use MacPorts SSL/GSS
  • properly set IP6
  • default non-PAM, force encryption
  • drop 10.3 messages
  • drop +nopwd (is part of the default)

#23423

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/mail/imap-uw/Portfile

    r63090 r73666  
    77version             2007e
    88categories          mail
    9 license             Apache v2
    10 maintainers         snc openmaintainer
     9license             Apachev2
     10maintainers         nomaintainer
    1111description         University of Washington IMAP daemon
    1212long_description    IMAP (Internet Message Access Protocol) is a method \
     
    2222distname            imap-${version}
    2323extract.suffix      .tar.Z
    24 checksums           md5     519d68a8650420ae33eb7085dd6a8150 \
    25                     sha1    24c63cad8d0e74aa76e4341fcfa54d24f23a8c70 \
     24checksums           sha1    24c63cad8d0e74aa76e4341fcfa54d24f23a8c70 \
    2625                    rmd160  7d6af203419975f763d7ec17b6a4544c94490b50
     26
     27depends_lib         port:openssl port:gss
    2728
    2829use_configure       no
    2930use_parallel_build  no
    3031
    31 build.target        oxp
    32 # Enable IPv6 support
    33 build.args-append   IP=6
    34 # Ensure we're UsingTheRightCompiler
    35 build.args-append   CC=${configure.cc}
    36 
     32patchfiles          patch-Makefile.diff
    3733if {"darwin" == ${os.platform} && ${os.major} >= 10} {
    3834    patchfiles-append   patch-snowleopard.diff
    3935}
     36post-patch {
     37    reinplace s|SSLINCLUDE=\/usr|SSLINCLUDE=${prefix}|g ${worksrcpath}/Makefile
     38    reinplace s|SSLLIB=\/usr|SSLLIB=${prefix}|g ${worksrcpath}/Makefile
     39    reinplace s|GSSINCLUDE=\/usr|GSSINCLUDE=${prefix}|g ${worksrcpath}/Makefile
     40    reinplace s|GSSLIB=\/usr|GSSLIB=${prefix}|g ${worksrcpath}/Makefile
     41}
    4042
    41 # Default is to enable SSL support and plaintext authentication
    42 # permitted only in SSL/TLS sessions.
     43build.target        osx
     44# Enable IPv6 support
     45build.args-append   IP6=6
     46# Ensure we're UsingTheRightCompiler
     47build.args-append   CC=${configure.cc}
     48# Force SSL connections: no unecrypted plaintext authenication
     49build.args          SSLTYPE=nopwd
    4350
    44 # Variant to enable SSL support and plaintext authentication
    45 variant ssl_plain description { enable SSL support and plaintext authentication } {
    46    patchfiles-append    patch-Makefile.diff
    47    build.args-append    SSLTYPE=unix
     51variant ssl_plain description {Allow unencrypted plaintext authentication} {
     52    build.args-delete   SSLTYPE=nopwd
     53    build.args-append   SSLTYPE=unix
    4854}
    4955
    5056# Variant to enable SSL with PAM support for Mac OS X
    51 variant ssl_pam description { enable SSL with PAM support } {
    52    depends_lib      lib:libssl.0.9:openssl
    53 
    54    patchfiles-append    patch-Makefile.diff
    55 
    56    build.target     oxp
    57    build.args-append    SSLTYPE=unix
     57variant ssl_pam description { Enable PAM support } {
     58    build.target    oxp
    5859
    5960    post-destroot {
     
    6768            ${destroot}${prefix}/share/doc/${name}/etc-xinetd.d-imap \
    6869            ${destroot}${prefix}/share/doc/${name}/etc-xinetd.d-imaps
    69        
    70         ui_msg "-----------------------------------------------------------"
    71         ui_msg "For use of IMAP-UW using SSL and PAM on Mac OS X 10.3,"
    72         ui_msg "please see the following:"
    73         ui_msg "\t${prefix}/share/doc/${name}/README-MACOSX"
    74         ui_msg "for further installation and setup details."
    75         ui_msg "-----------------------------------------------------------"
    7670    }
    77 }
    78 
    79 # Variant to disable plaintext authentication outside of SSL/TSL
    80 # i.e. prohibit unencrypted plaintext passwords
    81 variant nopwd description { prohibit unencrypted plaintext passwords } {
    82     build.args-delete   SSLTYPE=unix
    83     build.args-append   SSLTYPE=unix.nopwd
    8471}
    8572
Note: See TracChangeset for help on using the changeset viewer.