--- /usr/portage/dev-libs/cyrus-sasl/cyrus-sasl-2.1.22-r2.ebuild 2007-06-19 22:07:24.000000000 +0200 +++ cyrus-sasl-2.1.22-r2.ebuild 2007-08-18 14:31:33.000000000 +0200 @@ -20,6 +20,10 @@ SLOT="2" IUSE="authdaemond berkdb crypt gdbm kerberos ldap mysql ntlm_unsupported_patch pam postgres sample srp ssl urandom" +# virtual/krb5 support +use kerberos && KRB5_CONFIG="/usr/bin/krb5-config" + + RDEPEND="authdaemond? ( || ( >=net-mail/courier-imap-3.0.7 >=mail-mta/courier-0.46 ) ) berkdb? ( >=sys-libs/db-3.2 ) gdbm? ( >=sys-libs/gdbm-1.8.0 ) @@ -89,10 +93,12 @@ # Fix QA issues. append-flags -fno-strict-aliasing append-flags -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED -D_BSD_SOURCE -DLDAP_DEPRECATED + append-flags -I`krb5-config --cflags |sed -e's/^-I\([^ ]*\)\($\| .*$\)/\1/'` + append_ldflags -L`krb5-config --libs |sed -e's/^-L\([^ ]*\)\($\| .*$\)/\1/'` # Java support. use java && export JAVAC="${JAVAC} ${JAVACFLAGS}" - + local myconf="--enable-login --enable-ntlm --enable-auth-sasldb --disable-krb4 --disable-otp" myconf="${myconf} `use_with ssl openssl`" myconf="${myconf} `use_with pam`" @@ -102,6 +108,8 @@ myconf="${myconf} `use_enable kerberos gssapi`" myconf="${myconf} `use_with mysql` `use_enable mysql`" myconf="${myconf} `use_enable postgres`" + #myconf="${myconf} `--with-gss_impl=heimdal`" + use kerberos && myconf="${myconf} --enable-gssapi=`${KRB5_CONFIG} --prefix |sed -e's/^-I\([^ ]*\)\($\| .*$\)/\1/'`" use postgres && myconf="${myconf} `use_with postgres pgsql $(pg_config --libdir)`" # Add srp USE (bug #81970).