# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils apache-module DESCRIPTION="An Apache2 authentication DSO using Kerberos." HOMEPAGE="http://modauthkerb.sourceforge.net/" SRC_URI="mirror://sourceforge/modauthkerb/${PN}-${PV}.tar.gz" LICENSE="as-is" KEYWORDS="~x86 ~amd64" IUSE="apache2" SLOT="0" DEPEND="virtual/krb5" RDEPEND="" APACHE1_MOD_CONF="11_${PN}" APACHE1_MOD_DEFINE="AUTH_KERB" APACHE2_MOD_CONF="11_${PN}" APACHE2_MOD_DEFINE="AUTH_KERB" DOCFILES="INSTALL README" need_apache S="${WORKDIR}/${PN}-${PV}" src_compile() { if use apache2 ; then CFLAGS="" APXS="${APXS2}" econf --with-krb5=/usr --without-krb4 || die "econf failed" else CFLAGS="" APXS="${APXS}" econf --with-krb5=/usr --without-krb4 || die "econf failed" fi emake || die "make failed" }