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

Last change on this file since 69699 was 69699, checked in by jmr@…, 9 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
RevLine 
[20461]1# $Id: Portfile 69699 2010-07-13 17:50:31Z jmr@macports.org $
[12968]2
[10820]3PortSystem      1.0
[61539]4PortGroup muniversal 1.0
[10820]5
6name                    cyrus-sasl2
[52031]7version                 2.1.23
[69520]8revision                2
[10820]9categories              security net
[58883]10maintainers             jmpp landonf openmaintainer
[10820]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/
[29855]22master_sites            ftp://ftp.andrew.cmu.edu/pub/cyrus-mail
[10820]23distname                cyrus-sasl-${version}
[52031]24checksums               md5 2eb0e48106f0e9cd8001e654f267ecbc \
25                        sha1 5df33a6788d6cd8329b109eff777c6cfae1a21bd \
26                        rmd160 b2cd9734fa8b4bad82663517f019f9b92d9d3519
[10820]27
[13772]28depends_lib             port:openssl \
[42333]29                                port:zlib
[10820]30
31default_variants        +kerberos
32
[69699]33patchfiles              patch-config_ltconfig \
34                patch-utils_Makefile.in.diff
[52293]35
[42338]36configure.args \
[10820]37                --mandir=${prefix}/share/man \
[12882]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 \
[42338]43                --disable-macos-framework \
[12882]44                --enable-srp \
45                --enable-srp-setpass \
46                --enable-login \
[10820]47                --enable-ntlm \
[12882]48                --with-rc4=openssl
[10820]49
[42338]50use_parallel_build  yes
51
[61539]52#universal_variant no
[44915]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#}
[61539]58
[44915]59#use_autoreconf yes
60#autoreconf.args -fvi
61#autoreconf.env ACLOCAL="aclocal -I${worksrcpath}/cmulocal -I${worksrcpath}/config"
62
[61539]63# This is a horrible hackaround as replacing the ar-fu as mentioned above is non-trivial
64pre-build {   
[61672]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        }
[61674]69    } else {
70        reinplace -E "s|^CC=\\\"(\[^\\\"\]+)\\\"|CC=\"\\1 ${configure.cc_archflags}\"|g" ${worksrcpath}/libtool
[61539]71    }
72}
73
[42338]74destroot.keepdirs \
75    ${destroot}${prefix}/var/state/saslauthd \
76    ${destroot}${prefix}/var/pwcheck
77
[12882]78post-destroot {
[42338]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}
[12882]85}
86
[57749]87variant kerberos description "Enable Kerberos support" {
[42338]88    configure.args-append   --enable-gssapi \
89                            --enable-keep-db-open
90
[52668]91        if {${os.platform} == "darwin"} {
[42338]92                configure.args-append --with-gss_impl=mit
[27045]93        }
[52668]94        if {${os.platform} == "freebsd"} {
[42338]95                configure.args-append --with-gss_impl=heimdal
[27045]96        }
[10820]97}
98
[61539]99# TODO: Uhm... dependencies?
[42338]100variant sql description "Enable SQL support" { configure.args-append --enable-sql }
[12968]101
[42338]102variant static description "Build static library" { configure.args-append --enable-static }
[41676]103
[57375]104livecheck.type  regex
[41676]105livecheck.url   http://ftp.andrew.cmu.edu/pub/cyrus-mail/
[59458]106livecheck.regex {cyrus-sasl-(\d+(?:\.\d+)*)\.tar\.gz}
Note: See TracBrowser for help on using the repository browser.