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

Last change on this file since 41676 was 41676, checked in by nox@…, 11 years ago

cyrus-sasl2: Fixed livecheck.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.7 KB
Line 
1# $Id: Portfile 41676 2008-11-09 03:11:25Z nox@macports.org $
2
3PortSystem      1.0
4
5name                    cyrus-sasl2
6version                 2.1.21
7categories              security net
8maintainers             jmpp landonf@macports.org
9description             SASL is an authentication library.
10long_description        SASL is the Simple Authentication and Security Layer, \
11                        a method for adding authentication support to \
12                        connection-based protocols. To use SASL, a protocol \
13                        includes a command for identifying and authenticating \
14                        a user to a server and for optionally negotiating \
15                        protection of subsequent protocol interactions. If \
16                        its use is negotiated, a security layer is inserted \
17                        between the protocol and the connection.
18platforms               darwin
19homepage                http://asg.web.cmu.edu/sasl/
20master_sites            ftp://ftp.andrew.cmu.edu/pub/cyrus-mail
21distname                cyrus-sasl-${version}
22checksums               md5 dde02db234dea892bee298390890502e \
23                        sha1 6449f730c963d29d43600a95373a6e2db52d6d66 \
24                        rmd160 93e0e1868453c5781602b5cce23e746b8823a26b
25
26depends_lib             port:openssl \
27                                lib:libz:zlib
28
29patchfiles              patch-Makefile.in \
30                        patch-include_Makefile.in \
31                        patch-lib_client.c \
32                        patch-lib_Makefile.in \
33                        patch-plugins-ntlm.c \
34                        patch-plugins-srp.c
35
36default_variants        +kerberos
37
38configure.args  --sysconfdir=${prefix}/etc \
39                --mandir=${prefix}/share/man \
40                --libexecdir=${prefix}/lib \
41                --includedir=${prefix}/include \
42                --with-openssl=${prefix} \
43                --with-dbpath=${prefix}/etc/sasldb2 \
44                --with-plugindir=${prefix}/lib/sasl2 \
45                --with-saslauthd=${prefix}/var/state/saslauthd \
46                --with-pwcheck=${prefix}/var/pwcheck \
47                --enable-checkapop \
48                --enable-cram \
49                --enable-digest \
50                --enable-otp \
51                --enable-srp \
52                --enable-srp-setpass \
53                --enable-plain \
54                --enable-anon \
55                --enable-login \
56                --enable-auth-sasldb \
57                --enable-ntlm \
58                --with-rc4=openssl
59
60post-configure {
61        # On darwin, -L/usr/lib pulls in Apple's own non-suitable sasl libraries
62        reinplace s|-L/usr/lib||g ${worksrcpath}/utils/Makefile
63}
64
65post-destroot {
66              xinstall -d -m 755 ${destroot}${prefix}/share/doc
67              file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${name}
68              xinstall -d -m 755 ${destroot}${prefix}/var/state/saslauthd
69              xinstall -d -m 755 ${destroot}${prefix}/var/pwcheck
70              destroot.keepdirs ${destroot}${prefix}/var/state/saslauthd \
71              ${destroot}${prefix}/var/pwcheck
72}
73
74platform darwin {}
75platform freebsd {}
76variant kerberos {
77        if {[variant_isset darwin]} {
78                configure.args-append --enable-gssapi --with-gss_impl=mit
79        }
80        if {[variant_isset freebsd]} {
81                configure.args-append --enable-gssapi --with-gss_impl=heimdal
82        }
83}
84
85variant sql     { configure.args-append --enable-sql }
86
87variant static  { configure.args-append --enable-static }
88
89livecheck.check regex
90livecheck.url   http://ftp.andrew.cmu.edu/pub/cyrus-mail/
91livecheck.regex {cyrus-sasl-(\d+(?:\.\d+)*)}
Note: See TracBrowser for help on using the repository browser.