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

Last change on this file since 22478 was 22478, checked in by pipping@…, 13 years ago
  • Spring-cleaning @opendarwin.org addresses

see #11465
see http://www.mail-archive.com/macports-dev@lists.macosforge.org/msg00309.html

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.5 KB
Line 
1# $Id: Portfile 22478 2007-03-02 05:16:40Z pipping@macports.org $
2
3PortSystem      1.0
4
5name                    cyrus-sasl2
6version                 2.1.21
7categories              security net
8maintainers             jmpp@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            http://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
74variant kerberos darwin {
75        configure.args-append --enable-gssapi --with-gss_impl=mit
76}
77
78variant kerberos freebsd {
79        configure.args-append --enable-gssapi --with-gss_impl=heimdal
80}
81
82variant sql     { configure.args-append --enable-sql }
83
84variant static  { configure.args-append --enable-static }
Note: See TracBrowser for help on using the repository browser.