# Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-www/mod_auth_mysql/mod_auth_mysql-1.11.ebuild,v 1.2 2002/11/28 20:36:07 woodchip Exp $ DESCRIPTION="Basic authentication for Apache2 using a MySQL database" HOMEPAGE="ftp://ftp.kciLink.com/pub/" S=${WORKDIR}/${P} SRC_URI="mirror://gentoo/mod_auth_mysql-1.11-gentoo.tar.bz2" DEPEND="=dev-db/mysql-3* =net-www/apache-2*" LICENSE="Apache-1.1" KEYWORDS="~x86" IUSE="" SLOT="0" src_compile() { apxs2 -c ${PN}.c -I/usr/include/mysql -Wl,-lmysqlclient || die } src_install() { exeinto /usr/lib/apache2-extramodules doexe .libs/${PN}.so insinto /etc/apache2/conf/modules.d doins ${FILESDIR}/12_mod_auth_mysql.conf cat mod_auth_mysql.c | tail +84 | head -101 \ | cut -c 4- > mod_auth_mysql.txt dodoc ${FILESDIR}/12_mod_auth_mysql.conf \ mysql-group-auth.txt mod_auth_mysql.txt }