--- mod_auth_kerb-4.11.ebuild 2003-06-06 19:21:24.000000000 -0500 +++ mod_auth_kerb-4.13.ebuild 2003-07-23 13:16:51.000000000 -0500 @@ -1,37 +1,53 @@ # Copyright 1999-2003 Gentoo Technologies, Inc. +# Copyright 2003 The Trustees of Indiana University # Distributed under the terms of the GNU General Public License v2 -# $Header: /home/cvsroot/gentoo-x86/net-www/mod_auth_kerb/mod_auth_kerb-4.11.ebuild,v 1.3 2003/06/06 23:58:22 rphillips Exp $ inherit eutils -DESCRIPTION="An Apache2 authentication DSO using Kerberos" +DESCRIPTION="An Apache authentication DSO using Kerberos" HOMEPAGE="http://modauthkerb.sourceforge.net/" S=${WORKDIR}/src -SRC_URI="mirror://sourceforge/modauthkerb/${P}.tar.gz" -DEPEND="app-crypt/mit-krb5 =net-www/apache-2*" +SRC_URI="mirror://sourceforge/modauthkerb/mod_auth_kerb-4.13.tar.gz" +DEPEND="app-crypt/mit-krb5 + apache2? ( =net-www/apache-2* ) + !apache2? ( =net-www/apache/apache-1* )" LICENSE="Apache-1.1" -KEYWORDS="~x86" +KEYWORDS="x86" IUSE="" SLOT="0" src_unpack() { unpack ${A} || die; cd ${S} || die; - epatch ${FILESDIR}/mod_auth_kerb_register.patch + if [ "`use apache2`" ]; \ + then epatch ${FILESDIR}/mod_auth_kerb_register.patch; \ + fi } src_compile() { cd modules/kerberos - apxs2 -DAPXS2 -DKRB5 -DKRB5_SAVE_CREDENTIALS \ + if [ "`use apache2`" ]; \ + then apxs2 -DAPXS2 -DKRB5 -DKRB5_SAVE_CREDENTIALS \ -DKRB_DEF_REALM=\\\"EOS.NCSU.EDU\\\" \ - -ldl -lkrb5 -lcom_err -lk5crypto -c ${PN}.c || die + -ldl -lkrb5 -lcom_err -lk5crypto -c mod_auth_kerb.c || die; \ + else + apxs -DKRB5 -DKRB5_SAVE_CREDENTIALS \ + -DKRB_DEF_REALM=\\\"EOS.NCSU.EDU\\\" \ + -ldl -lkrb5 -lcom_err -lk5crypto -c mod_auth_kerb.c || die; \ + fi } src_install() { - exeinto /usr/lib/apache2-extramodules - doexe modules/kerberos/.libs/${PN}.so - insinto /etc/apache2/conf/modules.d - doins ${FILESDIR}/11_mod_auth_kerb.conf - dodoc ${FILESDIR}/11_mod_auth_kerb.conf - #thats all the docs there is right now! + if [ "`use apache2`" ] + then + exeinto /usr/lib/apache2-extramodules + doexe modules/kerberos/mod_auth_kerb.so + insinto /etc/apache2/conf/modules.d + else + exeinto /usr/lib/apache-extramodules; \ + doexe modules/kerberos/mod_auth_kerb.so; \ + insinto /etc/apache/conf/modules.d + fi + doins ${FILESDIR}/13_mod_auth_kerb.conf + dodoc ${FILESDIR}/13_mod_auth_kerb.conf }