summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Heim <phreak@gentoo.org>2007-01-09 21:27:49 +0000
committerChristian Heim <phreak@gentoo.org>2007-01-09 21:27:49 +0000
commit10f9b987d474612a0dbac5cc511910ab56720507 (patch)
treeee44401780344ac98fe7c6be593ad49633aa4e4e /net-www/mod_auth_mysql/mod_auth_mysql-3.0.0-r2.ebuild
parentAdded a license for the Descent 2 data, extracted from the readme.txt shipped... (diff)
downloadgentoo-2-10f9b987d474612a0dbac5cc511910ab56720507.tar.gz
gentoo-2-10f9b987d474612a0dbac5cc511910ab56720507.tar.bz2
gentoo-2-10f9b987d474612a0dbac5cc511910ab56720507.zip
Revision bump, including a fix for =net-www/apache-2.2* (hopefully fixing #128501).
(Portage version: 2.1.2_rc4-r6)
Diffstat (limited to 'net-www/mod_auth_mysql/mod_auth_mysql-3.0.0-r2.ebuild')
-rw-r--r--net-www/mod_auth_mysql/mod_auth_mysql-3.0.0-r2.ebuild49
1 files changed, 49 insertions, 0 deletions
diff --git a/net-www/mod_auth_mysql/mod_auth_mysql-3.0.0-r2.ebuild b/net-www/mod_auth_mysql/mod_auth_mysql-3.0.0-r2.ebuild
new file mode 100644
index 000000000000..8dda92f2c450
--- /dev/null
+++ b/net-www/mod_auth_mysql/mod_auth_mysql-3.0.0-r2.ebuild
@@ -0,0 +1,49 @@
+# 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-r2.ebuild,v 1.1 2007/01/09 21:27:49 phreak Exp $
+
+inherit apache-module eutils
+
+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}"
+
+BASE_CONFIG_PVR="2.8.1"
+
+APXS1_ARGS="-DENABLE=0 -c -I/usr/include/mysql -lmysqlclient -lm -lz ${PN}.c"
+APACHE1_MOD_CONF="${BASE_CONFIG_PVR}/12_mod_auth_mysql"
+APACHE1_MOD_DEFINE="AUTH_MYSQL"
+
+APXS2_ARGS="-c -I/usr/include/mysql -lmysqlclient -lm -lz ${PN}.c"
+APACHE2_MOD_CONF="${BASE_CONFIG_PVR}/12_mod_auth_mysql"
+APACHE2_MOD_DEFINE="AUTH_MYSQL"
+
+DOCFILES="README"
+
+need_apache
+
+src_unpack() {
+ unpack ${A}
+ EPATCH_OPTS="-d ${S} -p1" epatch "${FILESDIR}/${P}-apache-2.2.patch"
+ EPATCH_OPTS="-d ${S} -p1" epatch "${FILESDIR}/${P}-htpasswd2-auth-style.patch"
+}
+
+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
+}