summaryrefslogtreecommitdiff
blob: 3ffde7982f86d58d92a9179ed0ad951217b9b58d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Copyright 1999-2003 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.4 2003/07/13 21:44:10 aliz 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
}