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

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

cyrus-sasl2: update to 2.1.22 (#11386)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
1# $Id: Portfile 42333 2008-11-19 11:33:34Z jmr@macports.org $
2
3PortSystem      1.0
4
5name                    cyrus-sasl2
6version                 2.1.22
7categories              security net
8maintainers             jmpp landonf
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 45dde9d19193ae9dd388eb68b2027bc9 \
23                        sha1 d23454ab12054714ab97d229c86cb934ce63fbb1 \
24                        rmd160 086e20d01588cb86decad001244b72a37223354c
25
26depends_lib             port:openssl \
27                                port:zlib
28
29patchfiles              patch-Makefile.in \
30                        patch-include_Makefile.in \
31                        patch-lib_Makefile.in
32
33default_variants        +kerberos
34
35configure.args  --sysconfdir=${prefix}/etc \
36                --mandir=${prefix}/share/man \
37                --libexecdir=${prefix}/lib \
38                --includedir=${prefix}/include \
39                --with-openssl=${prefix} \
40                --with-dbpath=${prefix}/etc/sasldb2 \
41                --with-plugindir=${prefix}/lib/sasl2 \
42                --with-saslauthd=${prefix}/var/state/saslauthd \
43                --with-pwcheck=${prefix}/var/pwcheck \
44                --enable-checkapop \
45                --enable-cram \
46                --enable-digest \
47                --enable-otp \
48                --enable-srp \
49                --enable-srp-setpass \
50                --enable-plain \
51                --enable-anon \
52                --enable-login \
53                --enable-auth-sasldb \
54                --enable-ntlm \
55                --with-rc4=openssl
56
57post-configure {
58        # On darwin, -L/usr/lib pulls in Apple's own non-suitable sasl libraries
59        reinplace s|-L/usr/lib||g ${worksrcpath}/utils/Makefile
60}
61
62post-destroot {
63              xinstall -d -m 755 ${destroot}${prefix}/share/doc
64              file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${name}
65              xinstall -d -m 755 ${destroot}${prefix}/var/state/saslauthd
66              xinstall -d -m 755 ${destroot}${prefix}/var/pwcheck
67              destroot.keepdirs ${destroot}${prefix}/var/state/saslauthd \
68              ${destroot}${prefix}/var/pwcheck
69}
70
71platform darwin {}
72platform freebsd {}
73variant kerberos {
74        if {[variant_isset darwin]} {
75                configure.args-append --enable-gssapi --with-gss_impl=mit
76        }
77        if {[variant_isset freebsd]} {
78                configure.args-append --enable-gssapi --with-gss_impl=heimdal
79        }
80}
81
82variant sql     { configure.args-append --enable-sql }
83
84variant static  { configure.args-append --enable-static }
85
86livecheck.check regex
87livecheck.url   http://ftp.andrew.cmu.edu/pub/cyrus-mail/
88livecheck.regex {cyrus-sasl-(\d+(?:\.\d+)*)}
Note: See TracBrowser for help on using the repository browser.