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

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

cyrus-sasl2: don't clobber patchfile that fixes #17328

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.3 KB
Line 
1# $Id: Portfile 69699 2010-07-13 17:50:31Z jmr@macports.org $
2
3PortSystem      1.0
4PortGroup muniversal 1.0
5
6name                    cyrus-sasl2
7version                 2.1.23
8revision                2
9categories              security net
10maintainers             jmpp landonf openmaintainer
11description             SASL is an authentication library.
12long_description        SASL is the Simple Authentication and Security Layer, \
13                        a method for adding authentication support to \
14                        connection-based protocols. To use SASL, a protocol \
15                        includes a command for identifying and authenticating \
16                        a user to a server and for optionally negotiating \
17                        protection of subsequent protocol interactions. If \
18                        its use is negotiated, a security layer is inserted \
19                        between the protocol and the connection.
20platforms               darwin
21homepage                http://asg.web.cmu.edu/sasl/
22master_sites            ftp://ftp.andrew.cmu.edu/pub/cyrus-mail
23distname                cyrus-sasl-${version}
24checksums               md5 2eb0e48106f0e9cd8001e654f267ecbc \
25                        sha1 5df33a6788d6cd8329b109eff777c6cfae1a21bd \
26                        rmd160 b2cd9734fa8b4bad82663517f019f9b92d9d3519
27
28depends_lib             port:openssl \
29                                port:zlib
30
31default_variants        +kerberos
32
33patchfiles              patch-config_ltconfig \
34                patch-utils_Makefile.in.diff
35
36configure.args \
37                --mandir=${prefix}/share/man \
38                --with-openssl=${prefix} \
39                --with-dbpath=${prefix}/etc/sasldb2 \
40                --with-plugindir=${prefix}/lib/sasl2 \
41                --with-saslauthd=${prefix}/var/state/saslauthd \
42                --with-pwcheck=${prefix}/var/pwcheck \
43                --disable-macos-framework \
44                --enable-srp \
45                --enable-srp-setpass \
46                --enable-login \
47                --enable-ntlm \
48                --with-rc4=openssl
49
50use_parallel_build  yes
51
52#universal_variant no
53
54# This is a start towards universal... lib/Makefile.am and sasldb/Makefile.am need to be updated to not do blind ar-fu
55#post-extract {
56#       system "rm ${worksrcpath}/config/libtool.m4"
57#}
58
59#use_autoreconf yes
60#autoreconf.args -fvi
61#autoreconf.env ACLOCAL="aclocal -I${worksrcpath}/cmulocal -I${worksrcpath}/config"
62
63# This is a horrible hackaround as replacing the ar-fu as mentioned above is non-trivial
64pre-build {   
65    if {[variant_isset universal]} {
66        foreach arch ${universal_archs_to_use} {
67            reinplace -E "s|^CC=\\\"(\[^\\\"\]+)\\\"|CC=\"\\1 [muniversal_get_arch_flag ${arch}]\"|g" ${worksrcpath}-${arch}/libtool
68        }
69    } else {
70        reinplace -E "s|^CC=\\\"(\[^\\\"\]+)\\\"|CC=\"\\1 ${configure.cc_archflags}\"|g" ${worksrcpath}/libtool
71    }
72}
73
74destroot.keepdirs \
75    ${destroot}${prefix}/var/state/saslauthd \
76    ${destroot}${prefix}/var/pwcheck
77
78post-destroot {
79    xinstall -d \
80        ${destroot}${prefix}/share/doc \
81        ${destroot}${prefix}/var/state/saslauthd \
82            ${destroot}${prefix}/var/pwcheck
83
84    file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${name}
85}
86
87variant kerberos description "Enable Kerberos support" {
88    configure.args-append   --enable-gssapi \
89                            --enable-keep-db-open
90
91        if {${os.platform} == "darwin"} {
92                configure.args-append --with-gss_impl=mit
93        }
94        if {${os.platform} == "freebsd"} {
95                configure.args-append --with-gss_impl=heimdal
96        }
97}
98
99# TODO: Uhm... dependencies?
100variant sql description "Enable SQL support" { configure.args-append --enable-sql }
101
102variant static description "Build static library" { configure.args-append --enable-static }
103
104livecheck.type  regex
105livecheck.url   http://ftp.andrew.cmu.edu/pub/cyrus-mail/
106livecheck.regex {cyrus-sasl-(\d+(?:\.\d+)*)\.tar\.gz}
Note: See TracBrowser for help on using the repository browser.