OpenSSH has AFS support, but the ebuild does not enable it. The following configure flags need to be given: --with-afs --with-kerberos4 The following dependancies need to be added: app-crypt/kth-krb net-fs/openafs app-crypt/kth-krb-1.2.1, as currently in portage, does not compile, so I'm making this bug dependant on #22916 after entering it. You should also consider splitting up the USE flag "kerberos" into "kerberos4" and "kerberos5" since they are totally different protocols and sometimes even mutually exclusive. Reproducible: Always Steps to Reproduce: Portage 2.0.48-r5 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1) ================================================================= System uname: 2.4.21-cube-2 i686 AMD Athlon(tm) processor GENTOO_MIRRORS="ftp://ftp.easynet.nl/mirror/gentoo/ http://gentoo.inode.at/ ftp://gentoo.inode.at/source/" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/vice/etc /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config" CONFIG_PROTECT_MASK="/etc/afs/modload /etc/make.globals /etc/afs/C /etc/afs/afsws /etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="/usr/local/portage" USE="x86 foomaticdb libg++ mad gtkhtml gdbm berkdb libwww gtk cdr -3dfx 3dnow -aalib acl afs -alsa apm -arts avi -bonobo crypt -cups dga -directfb doc dvd encode -esd -evo -fbcon -ggi gif -gnome -gnome-libs -gphoto2 -gpm guile hbci -icc -icc-pgo imap imlib ipv6 -java jpeg kde kerberos lcms ldap -matrox maildir mbox mikmod mmx monitor -motif mozilla mpeg -mule mysql nas ncurses nls -odbc oggvorbis opengl oss pam -pcmcia -pda pdflib -perl png -pnp postgres python qt qtmt quicktime readline -ruby samba -sasl sdl slang -slp -snmp socks5 spell ssl -static -svga -tcltk -tcpd tetex tiff truetype -voodoo3 X xml xml2 -xmms xv -zeo zlib" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-march=athlon-tbird -O3 -pipe" CXXFLAGS="-O2 -mcpu=i686 -pipe" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://hybrid.sascha.silbe.org/gentoo-portage" FEATURES="sandbox ccache"
Well, should have inspected the ebuild more thoroughly, Kerberos 4 support is already there if KTH_KRB is set. I wonder why you use an environment variable that's only documented in this ebuild instead of a USE variable, though. Anyway, I've made a patch with the necessary changes. It works fine on my system (apart from the problems OpenSSH itself has with AFS support).
Created attachment 15569 [details, diff] Adding support for USE=afs to openssh-3.6.1_p2.ebuild
fixed in -r2