--- /usr/portage/net-libs/librpcsecgss/librpcsecgss-0.14-r1.ebuild 2007-03-25 03:05:54.000000000 -0400 +++ /portageoverlay/net-libs/librpcsecgss/librpcsecgss-0.14-r1.ebuild 2007-07-24 15:49:50.000000000 -0400 @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-libs/librpcsecgss/librpcsecgss-0.14-r1.ebuild,v 1.11 2007/03/25 06:54:27 vapier Exp $ -inherit eutils +inherit eutils autotools DESCRIPTION="implementation of rpcsec_gss (RFC 2203) for secure rpc communication" HOMEPAGE="http://www.citi.umich.edu/projects/nfsv4/linux/" @@ -13,7 +13,10 @@ KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ppc64 s390 sh sparc x86" IUSE="" -RDEPEND=">=app-crypt/libgssapi-0.9" +RDEPEND=" || ( + >=app-crypt/libgssapi-0.9 + >=app-crypt/heimdal-1.0 + )" DEPEND="${RDEPEND} dev-util/pkgconfig" @@ -21,6 +24,17 @@ unpack ${A} cd "${S}" epatch "${FILESDIR}"/${P}-more-libs.patch + [[ -d /usr/include/heimdal ]] && epatch "${FILESDIR}"/remove_libgssapi_dep.patch + eautoreconf +} + +src_compile() { + if [[ -d /usr/include/heimdal ]]; then + export GSSAPI_CFLAGS=`krb5-config --cflags gssapi` + export GSSAPI_LIBS=`krb5-config --libs gssapi` + fi + econf + emake || die } src_install() {