[94004] trunk/dports/security/cyrus-sasl2/Portfile
ryandesign at macports.org
ryandesign at macports.org
Wed Jun 6 11:49:42 PDT 2012
Revision: 94004
https://trac.macports.org/changeset/94004
Author: ryandesign at macports.org
Date: 2012-06-06 11:49:42 -0700 (Wed, 06 Jun 2012)
Log Message:
-----------
cyrus-sasl2: fix confusing whitespace; add modeline
Modified Paths:
--------------
trunk/dports/security/cyrus-sasl2/Portfile
Modified: trunk/dports/security/cyrus-sasl2/Portfile
===================================================================
--- trunk/dports/security/cyrus-sasl2/Portfile 2012-06-06 18:45:56 UTC (rev 94003)
+++ trunk/dports/security/cyrus-sasl2/Portfile 2012-06-06 18:49:42 UTC (rev 94004)
@@ -1,69 +1,72 @@
+# -*- 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
# $Id$
-PortSystem 1.0
-PortGroup muniversal 1.0
+PortSystem 1.0
+PortGroup muniversal 1.0
-name cyrus-sasl2
-version 2.1.25
-categories security net
+name cyrus-sasl2
+version 2.1.25
+categories security net
+platforms darwin
# license is BSD plus a fourth (almost redundant) acknowledgement clause
-license Permissive
-maintainers jmpp landonf openmaintainer
-description SASL is an authentication library.
-long_description SASL is the Simple Authentication and Security Layer, \
- a method for adding authentication support to \
- connection-based protocols. To use SASL, a protocol \
- includes a command for identifying and authenticating \
- a user to a server and for optionally negotiating \
- protection of subsequent protocol interactions. If \
- its use is negotiated, a security layer is inserted \
- between the protocol and the connection.
-platforms darwin
-homepage http://asg.web.cmu.edu/sasl/
-master_sites http://ftp.andrew.cmu.edu/pub/cyrus-mail/ \
- ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/
-distname cyrus-sasl-${version}
+license Permissive
+maintainers jmpp landonf openmaintainer
-checksums rmd160 c9ed9093828f7f7bb1b35c8a690cadbcd44f3862 \
- sha256 418c16e6240a4f9b637cbe3d62937b9675627bad27c622191d47de8686fe24fe
+description SASL is an authentication library.
-depends_lib port:openssl \
- port:zlib
+long_description SASL is the Simple Authentication and Security Layer, \
+ a method for adding authentication support to \
+ connection-based protocols. To use SASL, a protocol \
+ includes a command for identifying and authenticating \
+ a user to a server and for optionally negotiating \
+ protection of subsequent protocol interactions. If \
+ its use is negotiated, a security layer is inserted \
+ between the protocol and the connection.
-default_variants +kerberos
+homepage http://asg.web.cmu.edu/sasl/
+master_sites http://ftp.andrew.cmu.edu/pub/cyrus-mail/ \
+ ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/
+distname cyrus-sasl-${version}
-patchfiles patch-config_ltconfig \
- patch-utils_Makefile.in.diff
+checksums rmd160 c9ed9093828f7f7bb1b35c8a690cadbcd44f3862 \
+ sha256 418c16e6240a4f9b637cbe3d62937b9675627bad27c622191d47de8686fe24fe
-configure.args \
- --mandir=${prefix}/share/man \
- --with-openssl=${prefix} \
- --with-dbpath=${prefix}/etc/sasldb2 \
- --with-plugindir=${prefix}/lib/sasl2 \
- --with-saslauthd=${prefix}/var/state/saslauthd \
- --with-pwcheck=${prefix}/var/pwcheck \
- --disable-macos-framework \
- --enable-srp \
- --enable-srp-setpass \
- --enable-login \
- --enable-ntlm \
- --with-rc4=openssl
+depends_lib port:openssl \
+ port:zlib
-use_parallel_build no
+default_variants +kerberos
-#universal_variant no
+patchfiles patch-config_ltconfig \
+ patch-utils_Makefile.in.diff
+configure.args --mandir=${prefix}/share/man \
+ --with-openssl=${prefix} \
+ --with-dbpath=${prefix}/etc/sasldb2 \
+ --with-plugindir=${prefix}/lib/sasl2 \
+ --with-saslauthd=${prefix}/var/state/saslauthd \
+ --with-pwcheck=${prefix}/var/pwcheck \
+ --disable-macos-framework \
+ --enable-srp \
+ --enable-srp-setpass \
+ --enable-login \
+ --enable-ntlm \
+ --with-rc4=openssl
+
+use_parallel_build no
+
+#universal_variant no
+
# This is a start towards universal... lib/Makefile.am and sasldb/Makefile.am need to be updated to not do blind ar-fu
#post-extract {
-# system "rm ${worksrcpath}/config/libtool.m4"
+# system "rm ${worksrcpath}/config/libtool.m4"
#}
-#use_autoreconf yes
-#autoreconf.args -fvi
-#autoreconf.env ACLOCAL="aclocal -I${worksrcpath}/cmulocal -I${worksrcpath}/config"
+#use_autoreconf yes
+#autoreconf.args -fvi
+#autoreconf.env ACLOCAL="aclocal -I${worksrcpath}/cmulocal -I${worksrcpath}/config"
# This is a horrible hackaround as replacing the ar-fu as mentioned above is non-trivial
-pre-build {
+pre-build {
if {[variant_isset universal]} {
foreach arch ${universal_archs_to_use} {
reinplace -E "s|^CC=\\\"(\[^\\\"\]+)\\\"|CC=\"\\1 [muniversal_get_arch_flag ${arch}]\"|g" ${worksrcpath}-${arch}/libtool
@@ -73,32 +76,31 @@
}
}
-destroot.keepdirs \
- ${destroot}${prefix}/var/state/saslauthd \
- ${destroot}${prefix}/var/pwcheck
+destroot.keepdirs ${destroot}${prefix}/var/state/saslauthd \
+ ${destroot}${prefix}/var/pwcheck
post-destroot {
xinstall -d \
${destroot}${prefix}/share/doc \
${destroot}${prefix}/var/state/saslauthd \
- ${destroot}${prefix}/var/pwcheck
-
+ ${destroot}${prefix}/var/pwcheck
+
file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${name}
}
variant kerberos description "Enable Kerberos support" {
configure.args-append --enable-keep-db-open
-
- if {${os.platform} == "darwin"} {
+
+ if {${os.platform} == "darwin"} {
depends_lib-append port:kerberos5
- configure.args-append --with-gss_impl=mit \
- --enable-gssapi=${prefix}
- }
- if {${os.platform} == "freebsd"} {
+ configure.args-append --with-gss_impl=mit \
+ --enable-gssapi=${prefix}
+ }
+ if {${os.platform} == "freebsd"} {
depends_lib-append port:heimdal
- configure.args-append --with-gss_impl=heimdal \
- --enable-gssapi=${prefix}/libexec/heimdal
- }
+ configure.args-append --with-gss_impl=heimdal \
+ --enable-gssapi=${prefix}/libexec/heimdal
+ }
}
variant sql description "Enable SQL support" {
@@ -107,8 +109,10 @@
}
# doesn't work, ticket #22093
-#variant static description "Build static library" { configure.args-append --enable-static }
+#variant static description "Build static library" {
+# configure.args-append --enable-static
+#}
-livecheck.type regex
-livecheck.url http://ftp.andrew.cmu.edu/pub/cyrus-mail/
-livecheck.regex {cyrus-sasl-(\d+(?:\.\d+)*)\.tar\.gz}
+livecheck.type regex
+livecheck.url http://ftp.andrew.cmu.edu/pub/cyrus-mail/
+livecheck.regex {cyrus-sasl-(\d+(?:\.\d+)*)\.tar\.gz}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120606/29f24aee/attachment.html>
More information about the macports-changes
mailing list