Ignore:
Timestamp:
Jul 11, 2009, 6:23:54 PM (10 years ago)
Author:
snc@…
Message:

whitespace changes

File:
1 edited

Legend:

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

    r53675 r53676  
    22# $Id$
    33
    4 PortSystem              1.0
     4PortSystem          1.0
    55
    6 name                    imap-uw
    7 version                 2007
    8 revision        2
    9 categories              mail
    10 maintainers             nomaintainer
    11 description             University of Washington IMAP daemon
    12 long_description        IMAP (Internet Message Access Protocol) is a method \
    13                         of accessing electronic messages kept on a (possibly \
    14                         shared) mail server. This port provides the \
    15                         University of Washington IMAP toolkit (IMAP \
    16                         supporting software developed by the UW).
    17 homepage                http://www.washington.edu/imap/
    18 master_sites            ftp://ftp.cac.washington.edu/imap/ \
    19                         ftp://ftp.cac.washington.edu/imap/old/
    20 platforms               darwin
     6name                imap-uw
     7version             2007
     8revision            2
     9categories          mail
     10maintainers         nomaintainer
     11description         University of Washington IMAP daemon
     12long_description    IMAP (Internet Message Access Protocol) is a method \
     13                    of accessing electronic messages kept on a (possibly \
     14                    shared) mail server. This port provides the \
     15                    University of Washington IMAP toolkit (IMAP \
     16                    supporting software developed by the UW).
     17homepage            http://www.washington.edu/imap/
     18master_sites        ftp://ftp.cac.washington.edu/imap/ \
     19                    ftp://ftp.cac.washington.edu/imap/old/
     20platforms           darwin
    2121
    22 distname                imap-${version}
    23 extract.suffix          .tar.Z
    24 checksums               md5 8162c341dd3a08d18b369a745cf83838 \
    25                                 sha1 638fa748bd3eb32191799bc20db0cc383f9fedbe \
    26                                 rmd160 7fe7f72c192e1d150b3c533261142459db600c3e
     22distname            imap-${version}
     23extract.suffix      .tar.Z
     24checksums           md5    8162c341dd3a08d18b369a745cf83838 \
     25                    sha1  638fa748bd3eb32191799bc20db0cc383f9fedbe \
     26                    rmd160 7fe7f72c192e1d150b3c533261142459db600c3e
    2727
    28 use_configure           no
     28use_configure       no
    2929
    30 build.target            oxp
     30build.target        oxp
    3131# Enable IPv6 support
    32 build.args-append       IP=6
     32build.args-append   IP=6
    3333
    3434# Patches for Darwin 7.x/Mac OS X 10.3.x support
    3535platform darwin 7 {
    36         patchfiles      patch-src-osdep-unix-Makefile \
    37                         patch-src-osdep-unix-ckp_osx.c
    38         build.target    osx
     36   patchfiles       patch-src-osdep-unix-Makefile \
     37                    patch-src-osdep-unix-ckp_osx.c
     38   build.target     osx
    3939}
    4040
     
    4444# Variant to enable SSL support and plaintext authentication
    4545variant ssl_plain {
    46         patchfiles      patch-Makefile.diff
    47         build.args-append       SSLTYPE=unix
     46   patchfiles       patch-Makefile.diff
     47   build.args-append    SSLTYPE=unix
    4848}
    4949
    5050# Variant to enable SSL with PAM support for Mac OS X
    5151variant ssl_pam {
    52         depends_lib     lib:libssl.0.9:openssl
     52   depends_lib      lib:libssl.0.9:openssl
    5353
    54         patchfiles      patch-Makefile.diff
    55         build.target    oxp
    56         build.args-append       SSLTYPE=unix
     54   patchfiles       patch-Makefile.diff
     55   build.target     oxp
     56   build.args-append    SSLTYPE=unix
    5757
    58         post-destroot { xinstall -m 0644 ${filespath}/README-MACOSX \
    59                         ${filespath}/etc-pam.d-imap \
    60                         ${filespath}/etc-xinetd.d-imap \
    61                         ${filespath}/etc-xinetd.d-imaps \
    62                         ${destroot}${prefix}/share/doc/${name}/
    63                         reinplace "s|__PREFIX|${prefix}|" \
    64                         ${filespath}/README-MACOSX \
    65                         ${destroot}${prefix}/share/doc/${name}/etc-xinetd.d-imap \
    66                         ${destroot}${prefix}/share/doc/${name}/etc-xinetd.d-imaps
    67                         ui_msg "-----------------------------------------------------------"
    68                         ui_msg "For use of IMAP-UW using SSL and PAM on Mac OS X 10.3,"
    69                         ui_msg "please see the following:"
    70                         ui_msg "\t${prefix}/share/doc/${name}/README-MACOSX"
    71                         ui_msg "for further installation and setup details."
    72                         ui_msg "-----------------------------------------------------------"
    73         }
     58    post-destroot {
     59        xinstall -m 0644 ${filespath}/README-MACOSX \
     60            ${filespath}/etc-pam.d-imap \
     61            ${filespath}/etc-xinetd.d-imap \
     62            ${filespath}/etc-xinetd.d-imaps \
     63            ${destroot}${prefix}/share/doc/${name}/
     64        reinplace "s|__PREFIX|${prefix}|" \
     65            ${filespath}/README-MACOSX \
     66            ${destroot}${prefix}/share/doc/${name}/etc-xinetd.d-imap \
     67            ${destroot}${prefix}/share/doc/${name}/etc-xinetd.d-imaps
     68       
     69        ui_msg "-----------------------------------------------------------"
     70        ui_msg "For use of IMAP-UW using SSL and PAM on Mac OS X 10.3,"
     71        ui_msg "please see the following:"
     72        ui_msg "\t${prefix}/share/doc/${name}/README-MACOSX"
     73        ui_msg "for further installation and setup details."
     74        ui_msg "-----------------------------------------------------------"
     75    }
    7476}
    7577
     
    7779# i.e. prohibit unencrypted plaintext passwords
    7880variant nopwd {
    79         build.args-delete       SSLTYPE=unix
    80         build.args-append       SSLTYPE=unix.nopwd
     81    build.args-delete   SSLTYPE=unix
     82    build.args-append   SSLTYPE=unix.nopwd
    8183}
    8284
    8385# Variant to set the default for creating new mailboxes to "mbx" format
    84 variant mbx     {
    85         build.args-append       CREATEPROTO=mbxproto
     86variant mbx   {
     87    build.args-append   CREATEPROTO=mbxproto
    8688}
    8789
    8890# Variant to set the default mail subdirectory name to "Mail"
    8991variant subdir {
    90         patchfiles-append       patch-env_unix.c.diff
     92    patchfiles-append   patch-env_unix.c.diff
    9193}
    9294
    9395destroot {
    94         # Warn user if not running as root
    95         if {$env(USER) != "root"} {
    96                 ui_msg "-----------------------------------------------------------"
    97                 ui_msg "Note that you are not running as root, so files installed"
    98                 ui_msg "by this port will not end up with proper ownership and"
    99                 ui_msg "will likely not work correctly."
    100                 ui_msg "-----------------------------------------------------------"
    101         }
    102         xinstall -m 0755 -d ${destroot}${prefix}/libexec
    103         xinstall -m 0755 -d ${destroot}${prefix}/bin
    104         xinstall -m 0755 -d ${destroot}${prefix}/share/doc/${name}
    105         xinstall -m 0755 -d ${destroot}${prefix}/share/man/man8
    106         xinstall -m 0755 -d ${destroot}${prefix}/share/man/man1
    107         xinstall -m 0755 ${worksrcpath}/imapd/imapd ${destroot}${prefix}/libexec
    108         xinstall -m 0755 ${worksrcpath}/ipopd/ipop2d ${destroot}${prefix}/libexec
    109         xinstall -m 0755 ${worksrcpath}/ipopd/ipop3d ${destroot}${prefix}/libexec
    110         xinstall -m 0755 ${worksrcpath}/mailutil/mailutil ${destroot}${prefix}/bin
    111         xinstall -m 0755 ${worksrcpath}/tmail/tmail ${destroot}${prefix}/bin
    112         xinstall -m 0755 ${worksrcpath}/dmail/dmail ${destroot}${prefix}/bin
    113         xinstall -m 0755 ${worksrcpath}/mtest/mtest ${destroot}${prefix}/bin/mboxtest
    114         if {$env(USER) == "root"} {
    115                 xinstall -g mail -m 2711 ${worksrcpath}/mlock/mlock ${destroot}${prefix}/libexec
    116         } else {
    117                 xinstall -m 0711 ${worksrcpath}/mlock/mlock ${destroot}${prefix}/libexec
    118         }
    119         xinstall -m 0755 ${worksrcpath}/src/imapd/imapd.8 ${destroot}${prefix}/share/man/man8
    120         xinstall -m 0755 ${worksrcpath}/src/ipopd/ipopd.8 ${destroot}${prefix}/share/man/man8
    121         xinstall -m 0755 ${worksrcpath}/src/mailutil/mailutil.1 ${destroot}${prefix}/share/man/man1
    122         xinstall -m 0755 ${worksrcpath}/src/tmail/tmail.1 ${destroot}${prefix}/share/man/man1
    123         xinstall -m 0755 ${worksrcpath}/src/dmail/dmail.1 ${destroot}${prefix}/share/man/man1
    124         xinstall -m 0644 ${worksrcpath}/docs/RELNOTES ${destroot}${prefix}/share/doc/${name}
    125         xinstall -m 0644 ${worksrcpath}/docs/FAQ.html ${destroot}${prefix}/share/doc/${name}
    126         foreach file [glob ${worksrcpath}/docs/*.txt] {
    127                 xinstall -m 0644 ${file} ${destroot}${prefix}/share/doc/${name}
    128         }
     96    # Warn user if not running as root
     97    if {$env(USER) != "root"} {
     98        ui_msg "-----------------------------------------------------------"
     99        ui_msg "Note that you are not running as root, so files installed"
     100        ui_msg "by this port will not end up with proper ownership and"
     101        ui_msg "will likely not work correctly."
     102        ui_msg "-----------------------------------------------------------"
     103    }
     104    xinstall -m 0755 -d ${destroot}${prefix}/libexec
     105    xinstall -m 0755 -d ${destroot}${prefix}/bin
     106    xinstall -m 0755 -d ${destroot}${prefix}/share/doc/${name}
     107    xinstall -m 0755 -d ${destroot}${prefix}/share/man/man8
     108    xinstall -m 0755 -d ${destroot}${prefix}/share/man/man1
     109    xinstall -m 0755 ${worksrcpath}/imapd/imapd ${destroot}${prefix}/libexec
     110    xinstall -m 0755 ${worksrcpath}/ipopd/ipop2d ${destroot}${prefix}/libexec
     111    xinstall -m 0755 ${worksrcpath}/ipopd/ipop3d ${destroot}${prefix}/libexec
     112    xinstall -m 0755 ${worksrcpath}/mailutil/mailutil ${destroot}${prefix}/bin
     113    xinstall -m 0755 ${worksrcpath}/tmail/tmail ${destroot}${prefix}/bin
     114    xinstall -m 0755 ${worksrcpath}/dmail/dmail ${destroot}${prefix}/bin
     115    xinstall -m 0755 ${worksrcpath}/mtest/mtest ${destroot}${prefix}/bin/mboxtest
     116    if {$env(USER) == "root"} {
     117        xinstall -g mail -m 2711 ${worksrcpath}/mlock/mlock ${destroot}${prefix}/libexec
     118    } else {
     119        xinstall -m 0711 ${worksrcpath}/mlock/mlock ${destroot}${prefix}/libexec
     120    }
     121    xinstall -m 0755 ${worksrcpath}/src/imapd/imapd.8 ${destroot}${prefix}/share/man/man8
     122    xinstall -m 0755 ${worksrcpath}/src/ipopd/ipopd.8 ${destroot}${prefix}/share/man/man8
     123    xinstall -m 0755 ${worksrcpath}/src/mailutil/mailutil.1 ${destroot}${prefix}/share/man/man1
     124    xinstall -m 0755 ${worksrcpath}/src/tmail/tmail.1 ${destroot}${prefix}/share/man/man1
     125    xinstall -m 0755 ${worksrcpath}/src/dmail/dmail.1 ${destroot}${prefix}/share/man/man1
     126    xinstall -m 0644 ${worksrcpath}/docs/RELNOTES ${destroot}${prefix}/share/doc/${name}
     127    xinstall -m 0644 ${worksrcpath}/docs/FAQ.html ${destroot}${prefix}/share/doc/${name}
     128    foreach file [glob ${worksrcpath}/docs/*.txt] {
     129        xinstall -m 0644 ${file} ${destroot}${prefix}/share/doc/${name}
     130    }
    129131}
    130132
Note: See TracChangeset for help on using the changeset viewer.