# Copyright 1999-2004 Gentoo Foundation # 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.8 2004/06/25 00:59:57 agriffis Exp $ DESCRIPTION="Basic authentication for Apache2 using a MySQL database" HOMEPAGE="ftp://ftp.kciLink.com/pub/" SRC_URI="mirror://gentoo/mod_auth_mysql-1.11-gentoo.tar.bz2" DEPEND="=dev-db/mysql-3* =net-www/apache-2*" RDEPEND="" LICENSE="Apache-1.1" KEYWORDS="x86" IUSE="" SLOT="0" IUSE="" 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 -n +84 | head -n 101 \ | cut -c 4- > mod_auth_mysql.txt dodoc ${FILESDIR}/12_mod_auth_mysql.conf \ mysql-group-auth.txt mod_auth_mysql.txt }