summaryrefslogtreecommitdiff
path: root/security/cyrus-sasl
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2011-09-17 11:32:02 +0000
committerobache <obache@pkgsrc.org>2011-09-17 11:32:02 +0000
commit419d710a21382f14455af63ef22b2ec515324bfc (patch)
tree5a09354c70c466ab65422df27031e4e75f872cb0 /security/cyrus-sasl
parentd6dec0711240e53e8589ee4f8d3dde2ce78344f9 (diff)
downloadpkgsrc-419d710a21382f14455af63ef22b2ec515324bfc.tar.gz
Update cyrus-sasl to 2.1.25.
Take maintainership. New in 2.1.25 ------------- * Make sure that a failed authorization doesn't preclude further server-side SASL authentication attempts from working. * Fixed a crash caused by aborted SASL authentication and initiation of another one using the same SASL context. * (Windows) Fixed the random number generator to actually produce random output on each run. * Be protective against calling sasl_server_step once authentication has failed (multiple SASL plugins) * Fixed several bugs in the mech_avail callback handling in the server side code. * Added support for channel bindings * Added support for ordering SASL mechanisms by strength (on the client side), or using the "client_mech_list" option. * server_idle needs to obey server's SASL mechanism list from the server context. * Better server plugin API mismatch reporting * Build: - Updated config to the latest GNU snapshot - Fixed SASL's libtool MacOS/X 64-bit file magic * New SASL plugin: SCRAM * New SASL plugin: GS2 * DIGEST-MD5 plugin: - Allow DIGEST-MD5 plugin to be used for client-side and server-side HTTP Digest, including running over non-persistent connections (RFC 2617) - Use the same username for reauthentication cache lookup and update - Minimize the number of auxprop lookups in the server side DIGEST-MD5 plugin for the most common case when authentication and authorization identities are the same. - Updated digestmd5_server_mech_step2() to be more defensive against empty client input. - Fixed some memory leaks on failed plugin initialization. Prevent potential race condition when freeding plugin state. Set the freed reauthentication cache mutex to NULL, to make errors due to mutex access after free more obvious. - Test against broken UTF-8 based hashes if calculation using special ISO-8859-1 code fails. - Fixed an interop problem with some LDAP clients ignoring server advertised realm and providing their own. * GSSAPI plugin: - Fix to build GSSAPI with Heimdal - Properly set serveroutlen to 0 in one place. Don't send empty challenge once server context establishment is done, as this is in violation of the RFC 2222 and its successor. - Don't send maxbuf, if no security layer can be established. Added additional checks for buffer lengths. * LDAPDB plugin: - build fixes New in 2.1.24 ------------- * Order advertised server-side SASL mechanisms per the specified 'mech_list' option or by relative "strength" * Make sure that sasl_set_alloc() has no effect once sasl_client_init() or sasl_server_init() is called * Fixed sasl_set_mutex() to disallow changing mutex management functions once sasl_server_init()/sasl_client_init() is called (bug # 3083) * Removed unused mutexes in lib/client.c and lib/server.c (bug # 3141) * Added direct support for hashed password to auxprop API * Don't treat a constraint violation as an error to store an auxprop property * Extended libsasl (auxprop) to support user deletion * Extended SASL auxprop_lookup to return error code * Updated sasl_user_exists() so that it can handle passwordless accounts (e.g. disabled) * (Windows) Free handles of shared libraries on Windows that were loaded but are not SASL plugins (bug # 2089) * Prevent freeing of common state on a subsequent call to _sasl_common_init. Make sure that the last global callback always wins. * Implemented sasl_client_done()/sasl_server_done() * Added automatic hostname canonicalization inside libsasl * Made sasl_config_init() public * Strip trailing spaces from server config file option values (bug # 3139, bug # 3041) * Fixed potential buffer overflow in saslautd_verify_password(). * Fixed segfault in dlclose() on HPUX * Various bugfixes for 64bit platforms * Fixed bug # 2895 (passing LF to sasl_decode64) in sample/sample-client.c, sample/sample-server.c, utils/smtptest.c * pluginviewer: Code cleanup, improved human readable messages * Build: - (Windows) Updated makefiles to build with VC 8.0 (VC++ 2005) - (Windows) Added Windows64 build - Updated to use .plugin extension on MacOS - Changed 64bit HP-UX build to use .so for shared libraries * saslauthd: - Fixed bug counting double-quotes in username/password in auth_rimap.c. Also fixed bug zeroing password. - auth_krb.c: improved diagnostic in the k5support_verify_tgt() function. - auth_sasldb.c: pid_file_lock is created with a mask of 644 instead of 0644 - auth_shadow.c: Define _XOPEN_SOURCE before including unistd.h, so that crypt is correctly defined - auth_getpwent.c: Fixed Solaris build * SASLDB plugin: - Fixed spurious 'user not found' errors caused by an attempt to delete a non-existent property - Added direct support for hashed password to auxprop API - Sleepycat driver: Return SASL_NOUSER instead of SASL_FAIL when the database file doesn't exist - Ignore properties starting with '*' in the auxprop store function * SQL plugin: - Added support for SQLITE3 - Uninitialized variables can cause crash when the searched user is not found - Added direct support for hashed password - Ignore properties starting with '*' in the auxprop store function * LDAPDB plugin: - Added code to extend LDAPDB into a canon_user plugin in addition to its existing auxprop plugin functionality * PLAIN plugin: - Advertise SASL_SEC_PASS_CREDENTIALS feature * LOGIN plugin: - Advertise SASL_SEC_PASS_CREDENTIALS feature * DIGEST-MD5 plugin: - Fixed a memory leak in the DIGEST-MD5 security layer - Fixed memory leaks in client-side reauth and other places - More detailed error reporting. - Fixed parsing of challenges/responses with extra commas. - Allow for multiple qop options from the server and require a single qop option from the client. * GSSAPI plugin: - Check that params->serverFQDN is not NULL before using strlen on it - Make auxprop lookup calls optional * EXTERNAL plugin: - Make auxprop lookup calls optional * NTLM plugin: - allow a comma separated list of servernames in 'ntlm_server' option - Fixed crash in calculating NTv2 reponse * OTP plugin: - Don't use a stack variable for an OTP prompt (bug # 2822) - Downgrade the failure to store OTP secret to debug level * KERBEROS_V4 plugin: - Make auxprop lookup calls optional
Diffstat (limited to 'security/cyrus-sasl')
-rw-r--r--security/cyrus-sasl/MESSAGE4
-rw-r--r--security/cyrus-sasl/Makefile19
-rw-r--r--security/cyrus-sasl/Makefile.common42
-rw-r--r--security/cyrus-sasl/distinfo22
-rw-r--r--security/cyrus-sasl/patches/patch-aa25
-rw-r--r--security/cyrus-sasl/patches/patch-ab33
-rw-r--r--security/cyrus-sasl/patches/patch-ac18
-rw-r--r--security/cyrus-sasl/patches/patch-ad19
-rw-r--r--security/cyrus-sasl/patches/patch-ae16
-rw-r--r--security/cyrus-sasl/patches/patch-ag13
-rw-r--r--security/cyrus-sasl/patches/patch-ah13
-rw-r--r--security/cyrus-sasl/patches/patch-ai88
-rw-r--r--security/cyrus-sasl/patches/patch-ak13
-rw-r--r--security/cyrus-sasl/patches/patch-al13
-rw-r--r--security/cyrus-sasl/patches/patch-ap23
-rw-r--r--security/cyrus-sasl/patches/patch-aq54
-rw-r--r--security/cyrus-sasl/patches/patch-saslauthd_md5global.h40
-rw-r--r--security/cyrus-sasl/patches/patch-saslauthd_saslcache.c15
18 files changed, 98 insertions, 372 deletions
diff --git a/security/cyrus-sasl/MESSAGE b/security/cyrus-sasl/MESSAGE
index 9f145cac201..2f2ff4479f8 100644
--- a/security/cyrus-sasl/MESSAGE
+++ b/security/cyrus-sasl/MESSAGE
@@ -1,5 +1,5 @@
===========================================================================
-$NetBSD: MESSAGE,v 1.2 2006/04/18 17:41:30 jlam Exp $
+$NetBSD: MESSAGE,v 1.3 2011/09/17 11:32:02 obache Exp $
${PKGNAME} by default does *not* install any authentication plugin
modules. Until the necessary authentication plugin modules are
@@ -15,7 +15,7 @@ The search path for plugin modules can be customized by setting the
SASL_PATH variable to a colon-delimted list of directories in the shell
environment.
-To allow plaintext authentication without using the sasldb mechanism, the
+To allow plaintext authentication without using the auxprop mechanism, the
package security/cyrus-saslauthd should be installed.
===========================================================================
diff --git a/security/cyrus-sasl/Makefile b/security/cyrus-sasl/Makefile
index 8f569c9642e..52e60055d7b 100644
--- a/security/cyrus-sasl/Makefile
+++ b/security/cyrus-sasl/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.56 2008/08/12 10:16:54 obache Exp $
+# $NetBSD: Makefile,v 1.57 2011/09/17 11:32:02 obache Exp $
SVR4_PKGNAME= csasl
COMMENT= Simple Authentication and Security Layer
@@ -15,20 +15,28 @@ SASL_DBTYPE?= berkeley
BUILD_DEFS+= SASL_DBTYPE
.if ${SASL_DBTYPE} == "berkeley"
-USE_DB185= no
+BDB_ACCEPTED= db3 db4
. include "../../mk/bdb.buildlink3.mk"
-CONFIGURE_ENV+= BDB_TYPE=${BDB_TYPE:Q}
+CONFIGURE_ENV+= with_bdb=${BDB_TYPE}
.endif
CONFIGURE_ARGS+= --with-dblib=${SASL_DBTYPE:Q}
CONFIGURE_ARGS+= --with-dbpath=${PKG_SYSCONFDIR}/sasldb
+BUILD_DEFS+= VARBASE
+
# Support using Cyrus saslauthd (security/cyrus-saslauthd) for plaintext
# password authentication.
#
SASLSOCKETDIR?= ${VARBASE}/run/saslauthd
CONFIGURE_ARGS+= --with-saslauthd=${SASLSOCKETDIR:Q}
BUILD_DEFS+= SASLSOCKETDIR
+# let not to build & install saslauthd here.
+SUBST_CLASSES+= saslauthd
+SUBST_STAGE.saslauthd= pre-configure
+SUBST_FILES.saslauthd= Makefile.in
+SUBST_SED.saslauthd= -e 's|@SASLAUTHD_TRUE@|\#|g'
+SUBST_SED.saslauthd+= -e 's|@SASLAUTHD_FALSE@||g'
# Support using the Courier authdaemond (security/courier-authlib) for
# plaintext password authentication.
@@ -50,6 +58,9 @@ CONFIGURE_ARGS+= --with-devrandom=${SASL_ENTROPY_SOURCE:Q}
.endif
BUILD_DEFS+= SASL_ENTROPY_SOURCE
+# Let not to build sample codes.
+CONFIGURE_ARGS+= --disable-sample
+
# CYRUS_USER username of the Cyrus administrator
# CYRUS_GROUP group of the Cyrus administrator
#
@@ -69,7 +80,7 @@ MESSAGE_SUBST+= PLUGINDIR=${PLUGINDIR:Q}
post-install:
${INSTALL_DATA_DIR} ${DESTDIR}${DOCDIR}
cd ${WRKSRC}/doc; for file in *.fig *.html *.txt; do \
- ${INSTALL_DATA} $$file ${DESTDIR}${DOCDIR}; \
+ ${INSTALL_DATA} $${file} ${DESTDIR}${DOCDIR}; \
done
.include "../../mk/bsd.pkg.mk"
diff --git a/security/cyrus-sasl/Makefile.common b/security/cyrus-sasl/Makefile.common
index f6582a34597..8d49bb433bb 100644
--- a/security/cyrus-sasl/Makefile.common
+++ b/security/cyrus-sasl/Makefile.common
@@ -1,30 +1,28 @@
-# $NetBSD: Makefile.common,v 1.15 2010/02/19 20:16:40 heinz Exp $
+# $NetBSD: Makefile.common,v 1.16 2011/09/17 11:32:02 obache Exp $
#
-# This file is currently included by:
-#
-# security/cyrus-sasl/Makefile
-# security/cy2-anonymous/Makefile
-# security/cy2-crammd5/Makefile
-# security/cy2-digestmd5/Makefile
-# security/cy2-gssapi/Makefile
-# security/cy2-ldapdb/Makefile
-# security/cy2-login/Makefile
-# security/cy2-ntlm/Makefile
-# security/cy2-otp/Makefile
-# security/cy2-plain/Makefile
-# security/cy2-sql/Makefile
+# used by security/cyrus-sasl/Makefile
+# used by security/cy2-anonymous/Makefile
+# used by security/cy2-crammd5/Makefile
+# used by security/cy2-digestmd5/Makefile
+# used by security/cy2-gssapi/Makefile
+# used by security/cy2-ldapdb/Makefile
+# used by security/cy2-login/Makefile
+# used by security/cy2-ntlm/Makefile
+# used by security/cy2-otp/Makefile
+# used by security/cy2-plain/Makefile
+# used by security/cy2-scram/Makefile
+# used by security/cy2-sql/Makefile
+# used by security/cyrus-saslauthd/Makefile
#
# This Makefile fragment should be included _below_ any SASL_PLUGIN
# definition and _above_ any CONFIGURE_ARGS definitions.
-DISTNAME= cyrus-sasl-2.1.23
+DISTNAME= cyrus-sasl-2.1.25
CATEGORIES= security
-MASTER_SITES= ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/ \
- ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/OLD-VERSIONS/sasl/ \
- http://ftp.andrew.cmu.edu/pub/cyrus-mail/ \
- http://ftp.andrew.cmu.edu/pub/cyrus-mail/OLD-VERSIONS/sasl/
+MASTER_SITES= ftp://ftp.cyrusimap.org/cyrus-sasl/ \
+ ftp://ftp.cyrusimap.org/cyrus-sasl/OLD-VERSIONS/
-MAINTAINER= pkgsrc-users@NetBSD.org
+MAINTAINER= obache@NetBSD.org
HOMEPAGE= http://asg.web.cmu.edu/sasl/
LICENSE= original-bsd # CMU version
@@ -35,7 +33,7 @@ PATCHDIR= ${.CURDIR}/../cyrus-sasl/patches
.if defined(SASL_PLUGIN) && !empty(SASL_PLUGIN:M[yY][eE][sS])
BUILDLINK_ABI_DEPENDS.cyrus-sasl+= \
- cyrus-sasl>=${PKGVERSION:C/nb[0-9]*$//}
+ cyrus-sasl>=${PKGVERSION_NOREV}
. include "../../security/cyrus-sasl/buildlink3.mk"
CPPFLAGS+= -I${BUILDLINK_PREFIX.cyrus-sasl}/include/sasl
.endif
@@ -44,7 +42,6 @@ GNU_CONFIGURE= yes
USE_TOOLS+= gmake
USE_LIBTOOL= yes
-MAKE_ENV+= SHLIBTOOL=${SHLIBTOOL:Q}
DOCDIR= ${PREFIX}/share/doc/cyrus-sasl
PLUGINDIR= ${PREFIX}/lib/sasl2
@@ -56,6 +53,7 @@ CONFIGURE_ARGS+= --disable-java
CONFIGURE_ARGS+= --disable-anon # ANONYMOUS
CONFIGURE_ARGS+= --disable-checkapop # CHECKAPOP
CONFIGURE_ARGS+= --disable-cram # CRAM-MD5
+CONFIGURE_ARGS+= --disable-scram # SCRAM
CONFIGURE_ARGS+= --disable-digest # DIGEST-MD5
CONFIGURE_ARGS+= --disable-gssapi # GSSAPI
CONFIGURE_ARGS+= --disable-krb4 # KERBEROS_V4
diff --git a/security/cyrus-sasl/distinfo b/security/cyrus-sasl/distinfo
index 7947bf48192..6b14a85fbfa 100644
--- a/security/cyrus-sasl/distinfo
+++ b/security/cyrus-sasl/distinfo
@@ -1,17 +1,7 @@
-$NetBSD: distinfo,v 1.18 2009/05/14 23:00:46 obache Exp $
+$NetBSD: distinfo,v 1.19 2011/09/17 11:32:02 obache Exp $
-SHA1 (cyrus-sasl-2.1.23.tar.gz) = 5df33a6788d6cd8329b109eff777c6cfae1a21bd
-RMD160 (cyrus-sasl-2.1.23.tar.gz) = b2cd9734fa8b4bad82663517f019f9b92d9d3519
-Size (cyrus-sasl-2.1.23.tar.gz) = 1613642 bytes
-SHA1 (patch-aa) = a20fca0058a04d00debb78d8cc051ec8d8f57af2
-SHA1 (patch-ab) = f5cf383ec9e417101bcf133b819f7c28aa1b4588
-SHA1 (patch-ac) = 1b653bee1a1b98e8e197911cc193c2c9b6d9f736
-SHA1 (patch-ad) = 462eb7c9ff1c7138897d3778b3a50f2c4dbca51b
-SHA1 (patch-ae) = ac9403e8cdbebb8be04947c9ff8a7505002b3a36
-SHA1 (patch-ag) = 6a2713504078dad681dcc6f7ba296972d03d5b15
-SHA1 (patch-ah) = 595e58bd756e75bda5f25a19119f2fc7c27bc7d9
-SHA1 (patch-ai) = b3154f4dbebe2ee803cfd6535072ca9bb28c9c18
-SHA1 (patch-ak) = e76a0ac7559845ed374c63f0261df9817e383ac1
-SHA1 (patch-al) = 27eae3d4cc4f5413176344bf496e70c6da24a840
-SHA1 (patch-ap) = eb87cd283f99da69916a7eb251000f2d9254f17d
-SHA1 (patch-aq) = 0e9acd362df09c3bc673b4729cc438e19cfd9f40
+SHA1 (cyrus-sasl-2.1.25.tar.gz) = b6c34426012d9b5d448d5646cbecd818a5eeacbf
+RMD160 (cyrus-sasl-2.1.25.tar.gz) = c9ed9093828f7f7bb1b35c8a690cadbcd44f3862
+Size (cyrus-sasl-2.1.25.tar.gz) = 5209240 bytes
+SHA1 (patch-saslauthd_md5global.h) = fc200c6aee12bf58877c7a755c121441ebaa1bde
+SHA1 (patch-saslauthd_saslcache.c) = 725db77c5d56f58331255957a65d385267ddcaed
diff --git a/security/cyrus-sasl/patches/patch-aa b/security/cyrus-sasl/patches/patch-aa
deleted file mode 100644
index 01b231bd4c5..00000000000
--- a/security/cyrus-sasl/patches/patch-aa
+++ /dev/null
@@ -1,25 +0,0 @@
-$NetBSD: patch-aa,v 1.9 2006/10/04 12:07:53 obache Exp $
-
---- configure.in.orig 2006-05-18 15:06:13.000000000 -0400
-+++ configure.in
-@@ -44,12 +44,7 @@ dnl
- AC_INIT(lib/saslint.h)
- AC_PREREQ([2.54])
-
--dnl use ./config.cache as the default cache file.
--dnl we require a cache file to successfully configure our build.
--if test $cache_file = "/dev/null"; then
--cache_file="./config.cache"
- AC_CACHE_LOAD
--fi
-
- AC_CONFIG_AUX_DIR(config)
- AC_CANONICAL_HOST
-@@ -528,7 +523,6 @@ SASL_KERBEROS_V4_CHK
- SASL_GSSAPI_CHK
-
- if test "$gssapi" != "no"; then
-- AC_DEFINE(STATIC_GSSAPIV2,[],[Link GSSAPI Staticly])
- mutex_default="no"
- if test "$gss_impl" = "mit"; then
- mutex_default="yes"
diff --git a/security/cyrus-sasl/patches/patch-ab b/security/cyrus-sasl/patches/patch-ab
deleted file mode 100644
index a5278e249e6..00000000000
--- a/security/cyrus-sasl/patches/patch-ab
+++ /dev/null
@@ -1,33 +0,0 @@
-$NetBSD: patch-ab,v 1.7 2006/11/02 13:02:39 obache Exp $
-
---- aclocal.m4.orig 2006-05-18 15:30:08.000000000 -0400
-+++ aclocal.m4
-@@ -1691,12 +1691,12 @@ AC_DEFUN([CYRUS_BERKELEY_DB_CHK_LIB],
- fi
-
- saved_LIBS=$LIBS
-- for dbname in db-4.4 db4.4 db44 db-4.3 db4.3 db43 db-4.2 db4.2 db42 db-4.1 db4.1 db41 db-4.0 db4.0 db-4 db40 db4 db-3.3 db3.3 db33 db-3.2 db3.2 db32 db-3.1 db3.1 db31 db-3 db30 db3 db
-+ for dbname in ${BDB_TYPE} db-4.4 db4.4 db44 db-4.3 db4.3 db43 db-4.2 db4.2 db42 db-4.1 db4.1 db41 db-4.0 db4.0 db-4 db40 db4 db-3.3 db3.3 db33 db-3.2 db3.2 db32 db-3.1 db3.1 db31 db-3 db30 db3 db
- do
- LIBS="$saved_LIBS -l$dbname"
- AC_TRY_LINK([#include <db.h>],
- [db_create(NULL, NULL, 0);],
-- BDB_LIBADD="$BDB_LIBADD -l$dbname"; dblib="berkeley"; dbname=db,
-+ BDB_LIBADD="$BDB_LIBADD -l$dbname"; dblib="berkeley"; dbname=db; break,
- dblib="no")
- if test "$dblib" = "berkeley"; then break; fi
- done
-@@ -3016,8 +3016,11 @@ if test "$gssapi" != no; then
- AC_MSG_RESULT([with implementation ${gss_impl}])
- AC_CHECK_LIB(resolv,res_search,GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lresolv")
- SASL_MECHS="$SASL_MECHS libgssapiv2.la"
-- SASL_STATIC_OBJS="$SASL_STATIC_OBJS gssapi.o"
-- SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/gssapi.c"
-+ if test "$enable_static" = yes; then
-+ SASL_STATIC_OBJS="$SASL_STATIC_OBJS gssapi.o"
-+ SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/gssapi.c"
-+ AC_DEFINE(STATIC_GSSAPIV2, [], [Link GSSAPI Staticly])
-+ fi
-
- cmu_save_LIBS="$LIBS"
- LIBS="$LIBS $GSSAPIBASE_LIBS"
diff --git a/security/cyrus-sasl/patches/patch-ac b/security/cyrus-sasl/patches/patch-ac
deleted file mode 100644
index 9699b1d59ed..00000000000
--- a/security/cyrus-sasl/patches/patch-ac
+++ /dev/null
@@ -1,18 +0,0 @@
-$NetBSD: patch-ac,v 1.5 2006/10/04 12:07:53 obache Exp $
-
---- cmulocal/sasl2.m4.orig 2006-05-18 15:25:34.000000000 -0400
-+++ cmulocal/sasl2.m4
-@@ -252,8 +252,11 @@ if test "$gssapi" != no; then
- AC_MSG_RESULT([with implementation ${gss_impl}])
- AC_CHECK_LIB(resolv,res_search,GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lresolv")
- SASL_MECHS="$SASL_MECHS libgssapiv2.la"
-- SASL_STATIC_OBJS="$SASL_STATIC_OBJS gssapi.o"
-- SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/gssapi.c"
-+ if test "$enable_static" = yes; then
-+ SASL_STATIC_OBJS="$SASL_STATIC_OBJS gssapi.o"
-+ SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/gssapi.c"
-+ AC_DEFINE(STATIC_GSSAPIV2, [], [Link GSSAPI Staticly])
-+ fi
-
- cmu_save_LIBS="$LIBS"
- LIBS="$LIBS $GSSAPIBASE_LIBS"
diff --git a/security/cyrus-sasl/patches/patch-ad b/security/cyrus-sasl/patches/patch-ad
deleted file mode 100644
index 4a1b51f38ad..00000000000
--- a/security/cyrus-sasl/patches/patch-ad
+++ /dev/null
@@ -1,19 +0,0 @@
-$NetBSD: patch-ad,v 1.5 2006/11/02 13:02:39 obache Exp $
-
---- cmulocal/berkdb.m4.orig 2005-04-26 15:14:07.000000000 -0400
-+++ cmulocal/berkdb.m4
-@@ -213,12 +213,12 @@ AC_DEFUN([CYRUS_BERKELEY_DB_CHK_LIB],
- fi
-
- saved_LIBS=$LIBS
-- for dbname in db-4.4 db4.4 db44 db-4.3 db4.3 db43 db-4.2 db4.2 db42 db-4.1 db4.1 db41 db-4.0 db4.0 db-4 db40 db4 db-3.3 db3.3 db33 db-3.2 db3.2 db32 db-3.1 db3.1 db31 db-3 db30 db3 db
-+ for dbname in ${BDB_TYPE} db-4.4 db4.4 db44 db-4.3 db4.3 db43 db-4.2 db4.2 db42 db-4.1 db4.1 db41 db-4.0 db4.0 db-4 db40 db4 db-3.3 db3.3 db33 db-3.2 db3.2 db32 db-3.1 db3.1 db31 db-3 db30 db3 db
- do
- LIBS="$saved_LIBS -l$dbname"
- AC_TRY_LINK([#include <db.h>],
- [db_create(NULL, NULL, 0);],
-- BDB_LIBADD="$BDB_LIBADD -l$dbname"; dblib="berkeley"; dbname=db,
-+ BDB_LIBADD="$BDB_LIBADD -l$dbname"; dblib="berkeley"; dbname=db; break,
- dblib="no")
- if test "$dblib" = "berkeley"; then break; fi
- done
diff --git a/security/cyrus-sasl/patches/patch-ae b/security/cyrus-sasl/patches/patch-ae
deleted file mode 100644
index 6fd167613ed..00000000000
--- a/security/cyrus-sasl/patches/patch-ae
+++ /dev/null
@@ -1,16 +0,0 @@
-$NetBSD: patch-ae,v 1.4 2006/10/04 12:07:53 obache Exp $
-
---- sample/server.c.orig 2004-03-29 09:56:40.000000000 -0500
-+++ sample/server.c
-@@ -117,9 +117,9 @@ int *listensock(const char *port, const
- }
- #if defined(IPV6_V6ONLY) && !(defined(__FreeBSD__) && __FreeBSD__ < 3)
- if (r->ai_family == AF_INET6) {
-- if (setsockopt(*sock, IPPROTO_IPV6, IPV6_BINDV6ONLY,
-+ if (setsockopt(*sock, IPPROTO_IPV6, IPV6_V6ONLY,
- (void *) &on, sizeof(on)) < 0) {
-- perror("setsockopt (IPV6_BINDV6ONLY)");
-+ perror("setsockopt (IPV6_V6ONLY)");
- close(*sock);
- continue;
- }
diff --git a/security/cyrus-sasl/patches/patch-ag b/security/cyrus-sasl/patches/patch-ag
deleted file mode 100644
index 6753bf91623..00000000000
--- a/security/cyrus-sasl/patches/patch-ag
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-ag,v 1.5 2006/04/18 17:41:30 jlam Exp $
-
---- plugins/Makefile.in.orig 2005-05-15 01:58:39.000000000 -0400
-+++ plugins/Makefile.in
-@@ -126,7 +126,7 @@ JAVA_TRUE = @JAVA_TRUE@
- LDFLAGS = @LDFLAGS@
- LIBOBJS = @LIBOBJS@
- LIBS = @LIBS@
--LIBTOOL = @LIBTOOL@
-+LIBTOOL = $(SHLIBTOOL)
- LIB_CRYPT = @LIB_CRYPT@
- LIB_DES = @LIB_DES@
- LIB_DOOR = @LIB_DOOR@
diff --git a/security/cyrus-sasl/patches/patch-ah b/security/cyrus-sasl/patches/patch-ah
deleted file mode 100644
index 6b4ac300e80..00000000000
--- a/security/cyrus-sasl/patches/patch-ah
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-ah,v 1.6 2006/04/18 17:41:30 jlam Exp $
-
---- lib/Makefile.in.orig 2005-05-15 01:58:38.000000000 -0400
-+++ lib/Makefile.in
-@@ -122,7 +122,7 @@ JAVA_TRUE = @JAVA_TRUE@
- LDFLAGS = @LDFLAGS@
- LIBOBJS = @LIBOBJS@
- LIBS = @LIBS@
--LIBTOOL = @LIBTOOL@
-+LIBTOOL = $(SHLIBTOOL)
- LIB_CRYPT = @LIB_CRYPT@
- LIB_DES = @LIB_DES@
- LIB_DOOR = @LIB_DOOR@
diff --git a/security/cyrus-sasl/patches/patch-ai b/security/cyrus-sasl/patches/patch-ai
deleted file mode 100644
index 1c04d45b735..00000000000
--- a/security/cyrus-sasl/patches/patch-ai
+++ /dev/null
@@ -1,88 +0,0 @@
-$NetBSD: patch-ai,v 1.8 2009/05/14 23:00:46 obache Exp $
-
---- configure.orig 2009-05-07 14:24:25.000000000 +0000
-+++ configure
-@@ -1334,8 +1334,6 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
-
-
-
--if test $cache_file = "/dev/null"; then
--cache_file="./config.cache"
- if test -r "$cache_file"; then
- # Some versions of bash will fail to source /dev/null (special
- # files actually), so we avoid doing that.
-@@ -1353,8 +1351,6 @@ echo "$as_me: creating cache $cache_file
- >$cache_file
- fi
-
--fi
--
- ac_aux_dir=
- for ac_dir in config $srcdir/config; do
- if test -f $ac_dir/install-sh; then
-@@ -5147,7 +5143,7 @@ if test $ac_cv_header_db_h = yes; then
- fi
-
- saved_LIBS=$LIBS
-- for dbname in db-4.4 db4.4 db44 db-4.3 db4.3 db43 db-4.2 db4.2 db42 db-4.1 db4.1 db41 db-4.0 db4.0 db-4 db40 db4 db-3.3 db3.3 db33 db-3.2 db3.2 db32 db-3.1 db3.1 db31 db-3 db30 db3 db
-+ for dbname in ${BDB_TYPE} db-4.4 db4.4 db44 db-4.3 db4.3 db43 db-4.2 db4.2 db42 db-4.1 db4.1 db41 db-4.0 db4.0 db-4 db40 db4 db-3.3 db3.3 db33 db-3.2 db3.2 db32 db-3.1 db3.1 db31 db-3 db30 db3 db
- do
- LIBS="$saved_LIBS -l$dbname"
- cat >conftest.$ac_ext <<_ACEOF
-@@ -5178,7 +5174,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_l
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
-- BDB_LIBADD="$BDB_LIBADD -l$dbname"; dblib="berkeley"; dbname=db
-+ BDB_LIBADD="$BDB_LIBADD -l$dbname"; dblib="berkeley"; dbname=db; break
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
-@@ -5904,7 +5900,7 @@ if test $ac_cv_header_db_h = yes; then
- fi
-
- saved_LIBS=$LIBS
-- for dbname in db-4.4 db4.4 db44 db-4.3 db4.3 db43 db-4.2 db4.2 db42 db-4.1 db4.1 db41 db-4.0 db4.0 db-4 db40 db4 db-3.3 db3.3 db33 db-3.2 db3.2 db32 db-3.1 db3.1 db31 db-3 db30 db3 db
-+ for dbname in ${BDB_TYPE} db-4.4 db4.4 db44 db-4.3 db4.3 db43 db-4.2 db4.2 db42 db-4.1 db4.1 db41 db-4.0 db4.0 db-4 db40 db4 db-3.3 db3.3 db33 db-3.2 db3.2 db32 db-3.1 db3.1 db31 db-3 db30 db3 db
- do
- LIBS="$saved_LIBS -l$dbname"
- cat >conftest.$ac_ext <<_ACEOF
-@@ -5935,7 +5931,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_l
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
-- BDB_LIBADD="$BDB_LIBADD -l$dbname"; dblib="berkeley"; dbname=db
-+ BDB_LIBADD="$BDB_LIBADD -l$dbname"; dblib="berkeley"; dbname=db; break
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
-@@ -11326,8 +11322,15 @@ if test $ac_cv_lib_resolv_res_search = y
- fi
-
- SASL_MECHS="$SASL_MECHS libgssapiv2.la"
-- SASL_STATIC_OBJS="$SASL_STATIC_OBJS gssapi.o"
-- SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/gssapi.c"
-+ if test "$enable_static" = yes; then
-+ SASL_STATIC_OBJS="$SASL_STATIC_OBJS gssapi.o"
-+ SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/gssapi.c"
-+
-+cat >>confdefs.h <<\_ACEOF
-+#define STATIC_GSSAPIV2
-+_ACEOF
-+
-+ fi
-
- cmu_save_LIBS="$LIBS"
- LIBS="$LIBS $GSSAPIBASE_LIBS"
-@@ -11425,11 +11428,6 @@ fi
-
-
- if test "$gssapi" != "no"; then
--
--cat >>confdefs.h <<\_ACEOF
--#define STATIC_GSSAPIV2
--_ACEOF
--
- mutex_default="no"
- if test "$gss_impl" = "mit"; then
- mutex_default="yes"
diff --git a/security/cyrus-sasl/patches/patch-ak b/security/cyrus-sasl/patches/patch-ak
deleted file mode 100644
index a56cf5704c8..00000000000
--- a/security/cyrus-sasl/patches/patch-ak
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-ak,v 1.5 2006/10/04 12:07:53 obache Exp $
-
---- Makefile.am.orig 2006-05-19 10:29:48.000000000 -0400
-+++ Makefile.am
-@@ -69,7 +69,7 @@ else
- INSTALLOSX =
- endif
-
--SUBDIRS=include sasldb plugins lib utils doc man $(PWC) $(SAM) $(JAV) $(SAD)
-+SUBDIRS=include sasldb plugins lib utils doc man $(PWC) $(SAM) $(JAV)
- EXTRA_DIST=config cmulocal win32 mac dlcompat-20010505 NTMakefile INSTALL.TXT
-
- dist-hook:
diff --git a/security/cyrus-sasl/patches/patch-al b/security/cyrus-sasl/patches/patch-al
deleted file mode 100644
index 1c289d1d1d8..00000000000
--- a/security/cyrus-sasl/patches/patch-al
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-al,v 1.6 2009/05/14 23:00:46 obache Exp $
-
---- Makefile.in.orig 2009-05-07 14:24:44.000000000 +0000
-+++ Makefile.in
-@@ -243,7 +243,7 @@ AUTOMAKE_OPTIONS = 1.7
- @MACOSX_FALSE@INSTALLOSX =
- @MACOSX_TRUE@INSTALLOSX = install-exec-local-osx
-
--SUBDIRS = include sasldb plugins lib utils doc man $(PWC) $(SAM) $(JAV) $(SAD)
-+SUBDIRS = include sasldb plugins lib utils doc man $(PWC) $(SAM) $(JAV)
- EXTRA_DIST = config cmulocal win32 mac dlcompat-20010505 NTMakefile INSTALL.TXT
-
- framedir = /Library/Frameworks/SASL2.framework
diff --git a/security/cyrus-sasl/patches/patch-ap b/security/cyrus-sasl/patches/patch-ap
deleted file mode 100644
index f4f0d4beab0..00000000000
--- a/security/cyrus-sasl/patches/patch-ap
+++ /dev/null
@@ -1,23 +0,0 @@
-$NetBSD: patch-ap,v 1.4 2006/04/18 17:41:30 jlam Exp $
-
---- sasldb/Makefile.am.orig 2005-05-07 00:54:18.000000000 -0400
-+++ sasldb/Makefile.am
-@@ -51,18 +51,8 @@ extra_common_sources = db_none.c db_ndbm
- EXTRA_DIST = NTMakefile
-
- noinst_LTLIBRARIES = libsasldb.la
--noinst_LIBRARIES = libsasldb.a
-
- libsasldb_la_SOURCES = allockey.c sasldb.h
- EXTRA_libsasldb_la_SOURCES = $(extra_common_sources)
- libsasldb_la_DEPENDENCIES = $(SASL_DB_BACKEND)
- libsasldb_la_LIBADD = $(SASL_DB_BACKEND)
--
--# Prevent make dist stupidity
--libsasldb_a_SOURCES =
--EXTRA_libsasldb_a_SOURCES =
--
--libsasldb.a: libsasldb.la $(SASL_DB_BACKEND_STATIC)
-- $(AR) cru .libs/$@ $(SASL_DB_BACKEND_STATIC)
--
--
diff --git a/security/cyrus-sasl/patches/patch-aq b/security/cyrus-sasl/patches/patch-aq
deleted file mode 100644
index 463f90824f6..00000000000
--- a/security/cyrus-sasl/patches/patch-aq
+++ /dev/null
@@ -1,54 +0,0 @@
-$NetBSD: patch-aq,v 1.6 2009/05/14 23:00:46 obache Exp $
-
---- sasldb/Makefile.in.orig 2009-05-07 14:24:59.000000000 +0000
-+++ sasldb/Makefile.in
-@@ -241,16 +241,12 @@ extra_common_sources = db_none.c db_ndbm
- EXTRA_DIST = NTMakefile
-
- noinst_LTLIBRARIES = libsasldb.la
--noinst_LIBRARIES = libsasldb.a
-
- libsasldb_la_SOURCES = allockey.c sasldb.h
- EXTRA_libsasldb_la_SOURCES = $(extra_common_sources)
- libsasldb_la_DEPENDENCIES = $(SASL_DB_BACKEND)
- libsasldb_la_LIBADD = $(SASL_DB_BACKEND)
-
--# Prevent make dist stupidity
--libsasldb_a_SOURCES =
--EXTRA_libsasldb_a_SOURCES =
- subdir = sasldb
- ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
- mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs
-@@ -258,10 +254,6 @@ CONFIG_HEADER = $(top_builddir)/config.h
- CONFIG_CLEAN_FILES =
- LIBRARIES = $(noinst_LIBRARIES)
-
--libsasldb_a_AR = $(AR) cru
--libsasldb_a_LIBADD =
--am_libsasldb_a_OBJECTS =
--libsasldb_a_OBJECTS = $(am_libsasldb_a_OBJECTS)
- LTLIBRARIES = $(noinst_LTLIBRARIES)
-
- libsasldb_la_LDFLAGS =
-@@ -281,10 +273,9 @@ LTCOMPILE = $(LIBTOOL) --mode=compile $(
- CCLD = $(CC)
- LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
- $(AM_LDFLAGS) $(LDFLAGS) -o $@
--DIST_SOURCES = $(libsasldb_a_SOURCES) $(EXTRA_libsasldb_a_SOURCES) \
-- $(libsasldb_la_SOURCES) $(EXTRA_libsasldb_la_SOURCES)
-+DIST_SOURCES = $(libsasldb_la_SOURCES) $(EXTRA_libsasldb_la_SOURCES)
- DIST_COMMON = $(srcdir)/Makefile.in Makefile.am
--SOURCES = $(libsasldb_a_SOURCES) $(EXTRA_libsasldb_a_SOURCES) $(libsasldb_la_SOURCES) $(EXTRA_libsasldb_la_SOURCES)
-+SOURCES = $(libsasldb_la_SOURCES) $(EXTRA_libsasldb_la_SOURCES)
-
- all: all-am
-
-@@ -543,8 +534,6 @@ uninstall-am: uninstall-info-am
- uninstall-am uninstall-info-am
-
-
--libsasldb.a: libsasldb.la $(SASL_DB_BACKEND_STATIC)
-- $(AR) cru .libs/$@ $(SASL_DB_BACKEND_STATIC)
- # Tell versions [3.59,3.63) of GNU make to not export all variables.
- # Otherwise a system limit (for SysV at least) may be exceeded.
- .NOEXPORT:
diff --git a/security/cyrus-sasl/patches/patch-saslauthd_md5global.h b/security/cyrus-sasl/patches/patch-saslauthd_md5global.h
new file mode 100644
index 00000000000..efb6979fe09
--- /dev/null
+++ b/security/cyrus-sasl/patches/patch-saslauthd_md5global.h
@@ -0,0 +1,40 @@
+$NetBSD: patch-saslauthd_md5global.h,v 1.1 2011/09/17 11:32:02 obache Exp $
+
+* use standard types for certain bits types.
+
+--- saslauthd/md5global.h.orig 2003-03-28 19:59:24.000000000 +0000
++++ saslauthd/md5global.h
+@@ -3,6 +3,13 @@
+ #ifndef MD5GLOBAL_H
+ #define MD5GLOBAL_H
+
++#ifdef HAVE_STDINT_H
++#include <stdint.h>
++#endif
++#ifdef HAVE_INTTYPES_H
++#include <inttypes.h>
++#endif
++
+ /* PROTOTYPES should be set to one if and only if the compiler supports
+ function argument prototyping.
+ The following makes PROTOTYPES default to 0 if it has not already
+@@ -15,13 +22,13 @@ The following makes PROTOTYPES default t
+ /* POINTER defines a generic pointer type */
+ typedef unsigned char *POINTER;
+
+-typedef signed char INT1; /* 8 bits */
+-typedef short INT2; /* 16 bits */
+-typedef int INT4; /* 32 bits */
++typedef int8_t INT1; /* 8 bits */
++typedef int16_t INT2; /* 16 bits */
++typedef int32_t INT4; /* 32 bits */
+ /* There is no 64 bit type */
+-typedef unsigned char UINT1; /* 8 bits */
+-typedef unsigned short UINT2; /* 16 bits */
+-typedef unsigned int UINT4; /* 32 bits */
++typedef uint8_t UINT1; /* 8 bits */
++typedef uint16_t UINT2; /* 16 bits */
++typedef uint32_t UINT4; /* 32 bits */
+ /* There is no 64 bit type */
+
+ /* PROTO_LIST is defined depending on how PROTOTYPES is defined above.
diff --git a/security/cyrus-sasl/patches/patch-saslauthd_saslcache.c b/security/cyrus-sasl/patches/patch-saslauthd_saslcache.c
new file mode 100644
index 00000000000..65b2e6afab4
--- /dev/null
+++ b/security/cyrus-sasl/patches/patch-saslauthd_saslcache.c
@@ -0,0 +1,15 @@
+$NetBSD: patch-saslauthd_saslcache.c,v 1.1 2011/09/17 11:32:02 obache Exp $
+
+* fixes build with gcc-4.
+
+--- saslauthd/saslcache.c.orig 2003-03-28 19:59:24.000000000 +0000
++++ saslauthd/saslcache.c
+@@ -137,7 +137,7 @@ int main(int argc, char **argv) {
+ }
+
+ table_stats = shm_base + 64;
+- (char *)table = (char *)table_stats + 128;
++ table = (struct bucket *)((char *)table_stats + 128);
+
+ if (dump_stat_info == 0 && dump_user_info == 0)
+ dump_stat_info = 1;