blob: 3685e54444a36a081f8067388242d83cd0a15b17 (
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
30
31
32
33
34
35
36
37
38
39
40
41
|
# Copyright 1999-2007 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-3.0.0-r1.ebuild,v 1.4 2007/01/13 20:25:36 chtekk Exp $
inherit apache-module
KEYWORDS="amd64 x86"
DESCRIPTION="Basic authentication for Apache using a MySQL database."
HOMEPAGE="http://modauthmysql.sourceforge.net/"
SRC_URI="mirror://sourceforge/modauthmysql/${P}.tar.gz"
LICENSE="Apache-1.1"
SLOT="0"
DEPEND="virtual/mysql
sys-libs/zlib"
RDEPEND="${DEPEND}"
APXS1_ARGS="-DENABLE=0 -c -I/usr/include/mysql -lmysqlclient -lm -lz ${PN}.c"
APACHE1_MOD_CONF="12_mod_auth_mysql"
APACHE1_MOD_DEFINE="AUTH_MYSQL"
APXS2_ARGS="-c -I/usr/include/mysql -lmysqlclient -lm -lz ${PN}.c"
APACHE2_MOD_CONF="12_mod_auth_mysql"
APACHE2_MOD_DEFINE="AUTH_MYSQL"
DOCFILES="README"
need_apache
pkg_postinst() {
if ! useq apache2 ; then
elog "With regard to bug #132391 the behaviour of ${PN}"
elog "has changed for Apache-1.3.XX."
elog
elog "You now need to enable ${PN} in your .htaccess"
elog "files explicitely using:"
elog
elog " AuthMySQLEnable On"
fi
}
|