source: trunk/dports/security/cyrus-sasl2/Portfile @ 94004

Last change on this file since 94004 was 94004, checked in by ryandesign@…, 7 years ago

cyrus-sasl2: fix confusing whitespace; add modeline

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.5 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 94004 2012-06-06 18:49:42Z ryandesign@macports.org $
3
4PortSystem              1.0
5PortGroup               muniversal 1.0
6
7name                    cyrus-sasl2
8version                 2.1.25
9categories              security net
10platforms               darwin
11# license is BSD plus a fourth (almost redundant) acknowledgement clause
12license                 Permissive
13maintainers             jmpp landonf openmaintainer
14
15description             SASL is an authentication library.
16
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.
25
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}
30
31checksums               rmd160  c9ed9093828f7f7bb1b35c8a690cadbcd44f3862 \
32                        sha256  418c16e6240a4f9b637cbe3d62937b9675627bad27c622191d47de8686fe24fe
33
34depends_lib             port:openssl \
35                        port:zlib
36
37default_variants        +kerberos
38
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
58
59# This is a start towards universal... lib/Makefile.am and sasldb/Makefile.am need to be updated to not do blind ar-fu
60#post-extract {
61#    system "rm ${worksrcpath}/config/libtool.m4"
62#}
63
64#use_autoreconf          yes
65#autoreconf.args         -fvi
66#autoreconf.env          ACLOCAL="aclocal -I${worksrcpath}/cmulocal -I${worksrcpath}/config"
67
68# This is a horrible hackaround as replacing the ar-fu as mentioned above is non-trivial
69pre-build {
70    if {[variant_isset universal]} {
71        foreach arch ${universal_archs_to_use} {
72            reinplace -E "s|^CC=\\\"(\[^\\\"\]+)\\\"|CC=\"\\1 [muniversal_get_arch_flag ${arch}]\"|g" ${worksrcpath}-${arch}/libtool
73        }
74    } else {
75        reinplace -E "s|^CC=\\\"(\[^\\\"\]+)\\\"|CC=\"\\1 ${configure.cc_archflags}\"|g" ${worksrcpath}/libtool
76    }
77}
78
79destroot.keepdirs       ${destroot}${prefix}/var/state/saslauthd \
80                        ${destroot}${prefix}/var/pwcheck
81
82post-destroot {
83    xinstall -d \
84        ${destroot}${prefix}/share/doc \
85        ${destroot}${prefix}/var/state/saslauthd \
86        ${destroot}${prefix}/var/pwcheck
87   
88    file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${name}
89}
90
91variant kerberos description "Enable Kerberos support" {
92    configure.args-append   --enable-keep-db-open
93   
94    if {${os.platform} == "darwin"} {
95        depends_lib-append  port:kerberos5
96        configure.args-append --with-gss_impl=mit \
97            --enable-gssapi=${prefix}
98    }
99    if {${os.platform} == "freebsd"} {
100        depends_lib-append  port:heimdal
101        configure.args-append --with-gss_impl=heimdal \
102            --enable-gssapi=${prefix}/libexec/heimdal
103    }
104}
105
106variant sql description "Enable SQL support" {
107    depends_lib-append      port:sqlite3
108    configure.args-append   --enable-sql
109}
110
111# doesn't work, ticket #22093
112#variant static description "Build static library" {
113#    configure.args-append   --enable-static
114#}
115
116livecheck.type          regex
117livecheck.url           http://ftp.andrew.cmu.edu/pub/cyrus-mail/
118livecheck.regex         {cyrus-sasl-(\d+(?:\.\d+)*)\.tar\.gz}
Note: See TracBrowser for help on using the repository browser.