# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/www-apache/mod-auth-mysql/mod-auth-mysql-4.3.9.ebuild,v 1.1 2010/03/24 20:34:54 robbat2 Exp $ EAPI=3 inherit apache-module eutils DESCRIPTION="A module for the Apache 2 web server which enables HTTP authentication against information stored in a MySQL database. " HOMEPAGE="http://packages.debian.org/source/mod-auth-mysql" DEBIAN_PV="13" MY_P="${PN}_${PV/-/_}" DEBIAN_URI="mirror://debian/pool/main/${PN:0:1}/${PN}" DEBIAN_PATCH="${MY_P}-${DEBIAN_PV}.diff.gz" DEBIAN_SRC="${MY_P}.orig.tar.gz" SRC_URI="${DEBIAN_URI}/${DEBIAN_SRC} ${DEBIAN_URI}/${DEBIAN_PATCH}" LICENSE="Apache-1.1" SLOT="0" KEYWORDS="~amd64 ~ppc ~x86" IUSE="" DEPEND="virtual/mysql" RDEPEND="${DEPEND} !www-apache/mod_auth_mysql" APACHE2_MOD_FILE="${S}/apache2_mod_auth_mysql.so" APACHE2_MOD_CONF="12_${PN//-/_}" APACHE2_MOD_DEFINE="AUTH_MYSQL" DOCFILES="USAGE DIRECTIVES" need_apache2_2 src_unpack() { unpack "${DEBIAN_SRC}" } src_prepare() { EPATCH_OPTS="-p1" epatch "${DISTDIR}"/"${DEBIAN_PATCH}" for i in $(<"${S}"/debian/patches/00list) ; do epatch "${S}"/debian/patches/${i}* done } src_configure() { econf \ --enable-apache2 \ --disable-apache13 \ --with-apxs2=/usr/sbin/apxs2 \ || die "Failed econf" } src_compile() { emake || die "Failed to compile" } src_install() { apache-module_src_install }