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

Last change on this file was 147067, checked in by devans@…, 18 months ago

cyrus-sasl2: update livecheck.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.8 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 147067 2016-03-25 05:26:25Z ryandesign@macports.org $
3
4PortSystem              1.0
5PortGroup               muniversal 1.0
6
7name                    cyrus-sasl2
8version                 2.1.26
9revision                6
10categories              security net
11platforms               darwin
12# license is BSD plus a fourth (almost redundant) acknowledgement clause
13license                 Permissive
14maintainers             nomaintainer
15
16description             SASL is an authentication library.
17
18long_description        SASL is the Simple Authentication and Security Layer, \
19                        a method for adding authentication support to \
20                        connection-based protocols. To use SASL, a protocol \
21                        includes a command for identifying and authenticating \
22                        a user to a server and for optionally negotiating \
23                        protection of subsequent protocol interactions. If \
24                        its use is negotiated, a security layer is inserted \
25                        between the protocol and the connection.
26
27merger_must_run_binaries    yes
28
29homepage                http://cyrusimap.org/
30master_sites            http://cyrusimap.org/releases/ \
31                        ftp://ftp.cyrusimap.org/cyrus-sasl/
32distname                cyrus-sasl-${version}
33
34checksums               rmd160  861a06d663cf3da37a198d0f971d99b249b5f4b8 \
35                        sha256  8fbc5136512b59bb793657f36fadda6359cae3b08f01fd16b3d406f1345b7bc3
36
37depends_lib             path:lib/libssl.dylib:openssl \
38                        port:zlib
39
40default_variants        +kerberos
41
42patchfiles              patch-libsasl2.pc.in.diff \
43                        patch-ltconfig_rpath_fallback.diff \
44                        patch-utils_Makefile.in.diff \
45                        patch-sasl.h-size_t.diff
46
47configure.args          --mandir=${prefix}/share/man \
48                        --with-openssl=${prefix} \
49                        --with-dbpath=${prefix}/etc/sasldb2 \
50                        --with-plugindir=${prefix}/lib/sasl2 \
51                        --with-saslauthd=${prefix}/var/state/saslauthd \
52                        --with-pwcheck=${prefix}/var/pwcheck \
53                        --disable-gssapi \
54                        --disable-macos-framework \
55                        --enable-srp \
56                        --enable-srp-setpass \
57                        --enable-login \
58                        --enable-ntlm \
59                        --with-rc4=openssl \
60                        ac_cv_prog_AWK=/usr/bin/awk
61
62use_parallel_build      no
63
64#universal_variant       no
65
66# This is a start towards universal... lib/Makefile.am and sasldb/Makefile.am need to be updated to not do blind ar-fu
67#post-extract {
68#    system "rm ${worksrcpath}/config/libtool.m4"
69#}
70
71#use_autoreconf          yes
72#autoreconf.args         -fvi
73#autoreconf.env          ACLOCAL="aclocal -I${worksrcpath}/cmulocal -I${worksrcpath}/config"
74
75# This is a horrible hackaround as replacing the ar-fu as mentioned above is non-trivial
76pre-build {
77    if {[variant_isset universal]} {
78        foreach arch ${universal_archs_to_use} {
79            reinplace -E "s|^CC=\\\"(\[^\\\"\]+)\\\"|CC=\"\\1 [muniversal_get_arch_flag ${arch}]\"|g" ${worksrcpath}-${arch}/libtool
80        }
81    } else {
82        reinplace -E "s|^CC=\\\"(\[^\\\"\]+)\\\"|CC=\"\\1 ${configure.cc_archflags}\"|g" ${worksrcpath}/libtool
83    }
84}
85
86destroot.keepdirs       ${destroot}${prefix}/var/state/saslauthd \
87                        ${destroot}${prefix}/var/pwcheck
88
89post-destroot {
90    xinstall -d \
91        ${destroot}${prefix}/share/doc \
92        ${destroot}${prefix}/var/state/saslauthd \
93        ${destroot}${prefix}/var/pwcheck
94   
95    file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${name}
96    delete {*}[glob ${destroot}${prefix}/share/doc/${name}/*Makefile*]
97}
98
99variant kerberos description "Enable Kerberos support" {
100    configure.args-append   --enable-keep-db-open
101   
102    if {${os.platform} eq "darwin"} {
103        depends_lib-append  port:kerberos5
104        configure.args-replace  --disable-gssapi --enable-gssapi=${prefix}
105        configure.args-append   --with-gss_impl=mit
106    }
107    if {${os.platform} eq "freebsd"} {
108        depends_lib-append  port:heimdal
109        configure.args-replace  --disable-gssapi --enable-gssapi=${prefix}
110        configure.args-append   --with-gss_impl=heimdal
111    }
112}
113
114variant sql description "Enable SQL support" {
115    depends_lib-append      port:sqlite3
116    configure.args-append   --enable-sql
117}
118
119# doesn't work, ticket #22093
120#variant static description "Build static library" {
121#    configure.args-append   --enable-static
122#}
123
124livecheck.type          regex
125livecheck.url           http://cyrusimap.org/releases/
126livecheck.regex         "cyrus-sasl-(\\d+(?:\\.\\d+)*)${extract.suffix}"
Note: See TracBrowser for help on using the repository browser.