--- /dev/null
+drwxr-xr-x root/root etc/
+drwxr-xr-x root/root etc/rc.d/
+-rwxr-xr-x root/root etc/rc.d/saslauthd
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/include/
+drwxr-xr-x root/root usr/include/sasl/
+-rw-r--r-- root/root usr/include/sasl/hmac-md5.h
+-rw-r--r-- root/root usr/include/sasl/md5.h
+-rw-r--r-- root/root usr/include/sasl/md5global.h
+-rw-r--r-- root/root usr/include/sasl/prop.h
+-rw-r--r-- root/root usr/include/sasl/sasl.h
+-rw-r--r-- root/root usr/include/sasl/saslplug.h
+-rw-r--r-- root/root usr/include/sasl/saslutil.h
+drwxr-xr-x root/root usr/lib/
+-rwxr-xr-x root/root usr/lib/libsasl2.la
+lrwxrwxrwx root/root usr/lib/libsasl2.so -> libsasl2.so.2.0.23
+lrwxrwxrwx root/root usr/lib/libsasl2.so.2 -> libsasl2.so.2.0.23
+-rwxr-xr-x root/root usr/lib/libsasl2.so.2.0.23
+drwxr-xr-x root/root usr/lib/sasl2/
+-rwxr-xr-x root/root usr/lib/sasl2/libanonymous.la
+lrwxrwxrwx root/root usr/lib/sasl2/libanonymous.so -> libanonymous.so.2.0.23
+lrwxrwxrwx root/root usr/lib/sasl2/libanonymous.so.2 -> libanonymous.so.2.0.23
+-rwxr-xr-x root/root usr/lib/sasl2/libanonymous.so.2.0.23
+-rwxr-xr-x root/root usr/lib/sasl2/libcrammd5.la
+lrwxrwxrwx root/root usr/lib/sasl2/libcrammd5.so -> libcrammd5.so.2.0.23
+lrwxrwxrwx root/root usr/lib/sasl2/libcrammd5.so.2 -> libcrammd5.so.2.0.23
+-rwxr-xr-x root/root usr/lib/sasl2/libcrammd5.so.2.0.23
+-rwxr-xr-x root/root usr/lib/sasl2/libdigestmd5.la
+lrwxrwxrwx root/root usr/lib/sasl2/libdigestmd5.so -> libdigestmd5.so.2.0.23
+lrwxrwxrwx root/root usr/lib/sasl2/libdigestmd5.so.2 -> libdigestmd5.so.2.0.23
+-rwxr-xr-x root/root usr/lib/sasl2/libdigestmd5.so.2.0.23
+-rwxr-xr-x root/root usr/lib/sasl2/liblogin.la
+lrwxrwxrwx root/root usr/lib/sasl2/liblogin.so -> liblogin.so.2.0.23
+lrwxrwxrwx root/root usr/lib/sasl2/liblogin.so.2 -> liblogin.so.2.0.23
+-rwxr-xr-x root/root usr/lib/sasl2/liblogin.so.2.0.23
+-rwxr-xr-x root/root usr/lib/sasl2/libotp.la
+lrwxrwxrwx root/root usr/lib/sasl2/libotp.so -> libotp.so.2.0.23
+lrwxrwxrwx root/root usr/lib/sasl2/libotp.so.2 -> libotp.so.2.0.23
+-rwxr-xr-x root/root usr/lib/sasl2/libotp.so.2.0.23
+-rwxr-xr-x root/root usr/lib/sasl2/libplain.la
+lrwxrwxrwx root/root usr/lib/sasl2/libplain.so -> libplain.so.2.0.23
+lrwxrwxrwx root/root usr/lib/sasl2/libplain.so.2 -> libplain.so.2.0.23
+-rwxr-xr-x root/root usr/lib/sasl2/libplain.so.2.0.23
+-rwxr-xr-x root/root usr/lib/sasl2/libsasldb.la
+lrwxrwxrwx root/root usr/lib/sasl2/libsasldb.so -> libsasldb.so.2.0.23
+lrwxrwxrwx root/root usr/lib/sasl2/libsasldb.so.2 -> libsasldb.so.2.0.23
+-rwxr-xr-x root/root usr/lib/sasl2/libsasldb.so.2.0.23
+drwxr-xr-x root/root usr/man/
+drwxr-xr-x root/root usr/man/man3/
+-rw-r--r-- root/root usr/man/man3/sasl.3.gz
+-rw-r--r-- root/root usr/man/man3/sasl_authorize_t.3.gz
+-rw-r--r-- root/root usr/man/man3/sasl_auxprop.3.gz
+-rw-r--r-- root/root usr/man/man3/sasl_auxprop_getctx.3.gz
+-rw-r--r-- root/root usr/man/man3/sasl_auxprop_request.3.gz
+-rw-r--r-- root/root usr/man/man3/sasl_callbacks.3.gz
+-rw-r--r-- root/root usr/man/man3/sasl_canon_user_t.3.gz
+-rw-r--r-- root/root usr/man/man3/sasl_chalprompt_t.3.gz
+-rw-r--r-- root/root usr/man/man3/sasl_checkapop.3.gz
+-rw-r--r-- root/root usr/man/man3/sasl_checkpass.3.gz
+-rw-r--r-- root/root usr/man/man3/sasl_client_init.3.gz
+-rw-r--r-- root/root usr/man/man3/sasl_client_new.3.gz
+-rw-r--r-- root/root usr/man/man3/sasl_client_start.3.gz
+-rw-r--r-- root/root usr/man/man3/sasl_client_step.3.gz
+-rw-r--r-- root/root usr/man/man3/sasl_decode.3.gz
+-rw-r--r-- root/root usr/man/man3/sasl_dispose.3.gz
+-rw-r--r-- root/root usr/man/man3/sasl_done.3.gz
+-rw-r--r-- root/root usr/man/man3/sasl_encode.3.gz
+-rw-r--r-- root/root usr/man/man3/sasl_encodev.3.gz
+-rw-r--r-- root/root usr/man/man3/sasl_errdetail.3.gz
+-rw-r--r-- root/root usr/man/man3/sasl_errors.3.gz
+-rw-r--r-- root/root usr/man/man3/sasl_errstring.3.gz
+-rw-r--r-- root/root usr/man/man3/sasl_getconfpath_t.3.gz
+-rw-r--r-- root/root usr/man/man3/sasl_getopt_t.3.gz
+-rw-r--r-- root/root usr/man/man3/sasl_getpath_t.3.gz
+-rw-r--r-- root/root usr/man/man3/sasl_getprop.3.gz
+-rw-r--r-- root/root usr/man/man3/sasl_getrealm_t.3.gz
+-rw-r--r-- root/root usr/man/man3/sasl_getsecret_t.3.gz
+-rw-r--r-- root/root usr/man/man3/sasl_getsimple_t.3.gz
+-rw-r--r-- root/root usr/man/man3/sasl_global_listmech.3.gz
+-rw-r--r-- root/root usr/man/man3/sasl_idle.3.gz
+-rw-r--r-- root/root usr/man/man3/sasl_listmech.3.gz
+-rw-r--r-- root/root usr/man/man3/sasl_log_t.3.gz
+-rw-r--r-- root/root usr/man/man3/sasl_server_init.3.gz
+-rw-r--r-- root/root usr/man/man3/sasl_server_new.3.gz
+-rw-r--r-- root/root usr/man/man3/sasl_server_start.3.gz
+-rw-r--r-- root/root usr/man/man3/sasl_server_step.3.gz
+-rw-r--r-- root/root usr/man/man3/sasl_server_userdb_checkpass_t.3.gz
+-rw-r--r-- root/root usr/man/man3/sasl_server_userdb_setpass_t.3.gz
+-rw-r--r-- root/root usr/man/man3/sasl_setpass.3.gz
+-rw-r--r-- root/root usr/man/man3/sasl_setprop.3.gz
+-rw-r--r-- root/root usr/man/man3/sasl_user_exists.3.gz
+-rw-r--r-- root/root usr/man/man3/sasl_verifyfile_t.3.gz
+drwxr-xr-x root/root usr/man/man8/
+-rw-r--r-- root/root usr/man/man8/pluginviewer.8.gz
+-rw-r--r-- root/root usr/man/man8/saslauthd.8.gz
+-rw-r--r-- root/root usr/man/man8/sasldblistusers2.8.gz
+-rw-r--r-- root/root usr/man/man8/saslpasswd2.8.gz
+drwxr-xr-x root/root usr/sbin/
+-rwxr-xr-x root/root usr/sbin/pluginviewer
+-rwxr-xr-x root/root usr/sbin/saslauthd
+-rwxr-xr-x root/root usr/sbin/sasldblistusers2
+-rwxr-xr-x root/root usr/sbin/saslpasswd2
+-rwxr-xr-x root/root usr/sbin/testsaslauthd
+drwxr-xr-x root/root var/
+drwxr-xr-x root/root var/sasl/
+drwxr-xr-x root/root var/sasl/saslauthd/
--- /dev/null
+# Description: Simple Authentication and Security Layer
+# URL: http://asg.web.cmu.edu/sasl/sasl-library.html
+# Packager: Daniel Mueller, daniel at danm dot de
+# Maintainer: Simon Glossner, viper at hometux dot de
+# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
+# Packager: Daniel Mueller, daniel at danm dot de
+# Depends on: db openssl
+
+name=cyrus-sasl
+version=2.1.23
+release=2
+source=(ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/$name-$version.tar.gz \
+ saslauthd $name-$version-gcc44.patch)
+
+build(){
+ cd $name-$version
+
+ patch -p0 -i $SRC/$name-$version-gcc44.patch
+
+ export SAVED_CC="$CC" SAVED_CXX="$CXX"
+ export SAVED_CFLAGS="$CFLAGS" SAVED_CXXFLAGS="$CXXFLAGS"
+ unset CC CXX CFLAGS CXXFLAGS
+
+ # build native tools
+ ./configure --prefix=/usr
+ make -j 1
+ mv include/makemd5{,-host}
+ make distclean
+
+ # and now crossbuild
+ export CC="$SAVED_CC" CXX="$SAVED_CXX"
+ export CFLAGS="$SAVED_CFLAGS" CXXFLAGS="$SAVED_CXXFLAGS"
+
+ ./configure --build=$CHOST \
+ --host=$CTARGET \
+ --prefix=/usr \
+ --sysconfdir=/etc/sasl \
+ --with-plugindir=/usr/lib/sasl2 \
+ --with-saslauthd=/var/sasl/saslauthd \
+ --with-dbpath=/etc/sasl/sasldb2 \
+ --with-dblib=berkeley \
+ --with-bdb-incdir=$CLFS/usr/include \
+ --with-bdb-libdir=$CLFS/usr/lib \
+ --with-openssl=$CLFS/usr \
+ --enable-login \
+ --enable-cram \
+ --enable-digest \
+ --enable-shared
+
+ # fix to use native tools
+ sed -i include/Makefile \
+ -e 's|./makemd5 md5global.h|./makemd5-host md5global.h|'
+
+ make -j 1
+ make DESTDIR=$PKG install
+
+ mkdir -p \
+ $PKG/usr/lib/sasl2 \
+ $PKG/var/sasl/saslauthd \
+ $PKG/etc/rc.d
+
+ install -m 644 saslauthd/saslauthd.mdoc $PKG/usr/man/man8/saslauthd.8
+ install -m 755 $SRC/saslauthd $PKG/etc/rc.d
+}