Ignore:
Timestamp:
Jun 6, 2012, 6:49:42 PM (7 years ago)
Author:
ryandesign@…
Message:

cyrus-sasl2: fix confusing whitespace; add modeline

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/security/cyrus-sasl2/Portfile

    r94003 r94004  
     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
    12# $Id$
    23
    3 PortSystem      1.0
    4 PortGroup muniversal 1.0
     4PortSystem              1.0
     5PortGroup               muniversal 1.0
    56
    6 name                    cyrus-sasl2
    7 version                 2.1.25
    8 categories              security net
     7name                    cyrus-sasl2
     8version                 2.1.25
     9categories              security net
     10platforms               darwin
    911# license is BSD plus a fourth (almost redundant) acknowledgement clause
    10 license                 Permissive
    11 maintainers             jmpp landonf openmaintainer
    12 description             SASL is an authentication library.
    13 long_description        SASL is the Simple Authentication and Security Layer, \
    14                         a method for adding authentication support to \
    15                         connection-based protocols. To use SASL, a protocol \
    16                         includes a command for identifying and authenticating \
    17                         a user to a server and for optionally negotiating \
    18                         protection of subsequent protocol interactions. If \
    19                         its use is negotiated, a security layer is inserted \
    20                         between the protocol and the connection.
    21 platforms               darwin
    22 homepage                http://asg.web.cmu.edu/sasl/
    23 master_sites            http://ftp.andrew.cmu.edu/pub/cyrus-mail/ \
    24                         ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/
    25 distname                cyrus-sasl-${version}
     12license                 Permissive
     13maintainers             jmpp landonf openmaintainer
    2614
    27 checksums               rmd160  c9ed9093828f7f7bb1b35c8a690cadbcd44f3862 \
    28                         sha256  418c16e6240a4f9b637cbe3d62937b9675627bad27c622191d47de8686fe24fe
     15description             SASL is an authentication library.
    2916
    30 depends_lib             port:openssl \
    31                                 port:zlib
     17long_description        SASL is the Simple Authentication and Security Layer, \
     18                        a method for adding authentication support to \
     19                        connection-based protocols. To use SASL, a protocol \
     20                        includes a command for identifying and authenticating \
     21                        a user to a server and for optionally negotiating \
     22                        protection of subsequent protocol interactions. If \
     23                        its use is negotiated, a security layer is inserted \
     24                        between the protocol and the connection.
    3225
    33 default_variants        +kerberos
     26homepage                http://asg.web.cmu.edu/sasl/
     27master_sites            http://ftp.andrew.cmu.edu/pub/cyrus-mail/ \
     28                        ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/
     29distname                cyrus-sasl-${version}
    3430
    35 patchfiles              patch-config_ltconfig \
    36                 patch-utils_Makefile.in.diff
     31checksums               rmd160  c9ed9093828f7f7bb1b35c8a690cadbcd44f3862 \
     32                        sha256  418c16e6240a4f9b637cbe3d62937b9675627bad27c622191d47de8686fe24fe
    3733
    38 configure.args \
    39                 --mandir=${prefix}/share/man \
    40                 --with-openssl=${prefix} \
    41                 --with-dbpath=${prefix}/etc/sasldb2 \
    42                 --with-plugindir=${prefix}/lib/sasl2 \
    43                 --with-saslauthd=${prefix}/var/state/saslauthd \
    44                 --with-pwcheck=${prefix}/var/pwcheck \
    45                 --disable-macos-framework \
    46                 --enable-srp \
    47                 --enable-srp-setpass \
    48                 --enable-login \
    49                 --enable-ntlm \
    50                 --with-rc4=openssl
     34depends_lib             port:openssl \
     35                        port:zlib
    5136
    52 use_parallel_build  no
     37default_variants        +kerberos
    5338
    54 #universal_variant no
     39patchfiles              patch-config_ltconfig \
     40                        patch-utils_Makefile.in.diff
     41
     42configure.args          --mandir=${prefix}/share/man \
     43                        --with-openssl=${prefix} \
     44                        --with-dbpath=${prefix}/etc/sasldb2 \
     45                        --with-plugindir=${prefix}/lib/sasl2 \
     46                        --with-saslauthd=${prefix}/var/state/saslauthd \
     47                        --with-pwcheck=${prefix}/var/pwcheck \
     48                        --disable-macos-framework \
     49                        --enable-srp \
     50                        --enable-srp-setpass \
     51                        --enable-login \
     52                        --enable-ntlm \
     53                        --with-rc4=openssl
     54
     55use_parallel_build      no
     56
     57#universal_variant       no
    5558
    5659# This is a start towards universal... lib/Makefile.am and sasldb/Makefile.am need to be updated to not do blind ar-fu
    5760#post-extract {
    58 #       system "rm ${worksrcpath}/config/libtool.m4"
     61#    system "rm ${worksrcpath}/config/libtool.m4"
    5962#}
    6063
    61 #use_autoreconf yes
    62 #autoreconf.args -fvi
    63 #autoreconf.env ACLOCAL="aclocal -I${worksrcpath}/cmulocal -I${worksrcpath}/config"
     64#use_autoreconf          yes
     65#autoreconf.args         -fvi
     66#autoreconf.env          ACLOCAL="aclocal -I${worksrcpath}/cmulocal -I${worksrcpath}/config"
    6467
    6568# This is a horrible hackaround as replacing the ar-fu as mentioned above is non-trivial
    66 pre-build {   
     69pre-build {
    6770    if {[variant_isset universal]} {
    6871        foreach arch ${universal_archs_to_use} {
     
    7477}
    7578
    76 destroot.keepdirs \
    77     ${destroot}${prefix}/var/state/saslauthd \
    78     ${destroot}${prefix}/var/pwcheck
     79destroot.keepdirs       ${destroot}${prefix}/var/state/saslauthd \
     80                        ${destroot}${prefix}/var/pwcheck
    7981
    8082post-destroot {
     
    8284        ${destroot}${prefix}/share/doc \
    8385        ${destroot}${prefix}/var/state/saslauthd \
    84             ${destroot}${prefix}/var/pwcheck
    85 
     86        ${destroot}${prefix}/var/pwcheck
     87   
    8688    file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${name}
    8789}
     
    8991variant kerberos description "Enable Kerberos support" {
    9092    configure.args-append   --enable-keep-db-open
    91 
    92         if {${os.platform} == "darwin"} {
     93   
     94    if {${os.platform} == "darwin"} {
    9395        depends_lib-append  port:kerberos5
    94                 configure.args-append --with-gss_impl=mit \
    95                         --enable-gssapi=${prefix}
    96         }
    97         if {${os.platform} == "freebsd"} {
     96        configure.args-append --with-gss_impl=mit \
     97            --enable-gssapi=${prefix}
     98    }
     99    if {${os.platform} == "freebsd"} {
    98100        depends_lib-append  port:heimdal
    99                 configure.args-append --with-gss_impl=heimdal \
    100                         --enable-gssapi=${prefix}/libexec/heimdal
    101         }
     101        configure.args-append --with-gss_impl=heimdal \
     102            --enable-gssapi=${prefix}/libexec/heimdal
     103    }
    102104}
    103105
     
    108110
    109111# doesn't work, ticket #22093
    110 #variant static description "Build static library" { configure.args-append --enable-static }
     112#variant static description "Build static library" {
     113#    configure.args-append   --enable-static
     114#}
    111115
    112 livecheck.type  regex
    113 livecheck.url   http://ftp.andrew.cmu.edu/pub/cyrus-mail/
    114 livecheck.regex {cyrus-sasl-(\d+(?:\.\d+)*)\.tar\.gz}
     116livecheck.type          regex
     117livecheck.url           http://ftp.andrew.cmu.edu/pub/cyrus-mail/
     118livecheck.regex         {cyrus-sasl-(\d+(?:\.\d+)*)\.tar\.gz}
Note: See TracChangeset for help on using the changeset viewer.