diff options
Diffstat (limited to 'crypto/cyrus-sasl/BUILD')
-rwxr-xr-x | crypto/cyrus-sasl/BUILD | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/crypto/cyrus-sasl/BUILD b/crypto/cyrus-sasl/BUILD new file mode 100755 index 0000000000..8b974482b5 --- /dev/null +++ b/crypto/cyrus-sasl/BUILD @@ -0,0 +1,30 @@ +if [[ "$CS_MECH" =~ 'saslauthd' ]]; then + OPTS="$OPTS --with-saslauthd=/var/run/saslauthd" +fi && + +if [[ "$CS_DB" == none ]]; then + OPTS="$OPTS --with-dblib=none" +fi && + +OPTS="$OPTS \ + $CS_PLAIN \ + $CS_LOGIN \ + $CS_CRAM \ + $CS_DIGEST \ + $CS_OTP \ + $CS_SRP \ + $CS_ANON \ + $CS_NTLM \ + $CS_APOP \ + --disable-sample \ +" + +sedit 's|extern sasl_global_callbacks_t global_callbacks;||g' lib/saslint.h && +sedit 's|^\(sasl_global_callbacks_t\s\+global_callbacks;\)|static \1|g' lib/server.c && +default_build && + +if [[ "$CS_MECH" =~ 'saslauthd' ]]; then + pushd saslauthd && + make testsaslauthd && + popd +fi |