+++ /dev/null
-<IfDefine AUTH_MYSQL>
-LoadModule auth_mysql_module modules/apache2_mod_auth_mysql.so
-
-# mod_auth_mysql can be used to limit access to documents by checking
-# data in a MySQL database.
-
-# This will enable user-based MySQL authentication of everything
-# within /home/httpd. You'll need to do the following as the MySQL
-# root user beforehand:
-#
-# CREATE DATABASE auth;
-# USE auth;
-# CREATE TABLE users (
-# user_name CHAR(30) NOT NULL,
-# user_passwd CHAR(20) NOT NULL,
-# PRIMARY KEY (user_name)
-# );
-# GRANT SELECT
-# ON auth.users
-# TO authuser@localhost
-# IDENTIFIED BY 'PaSsW0Rd';
-#
-# INSERT INTO users VALUES ('testuser', ENCRYPT('testpass'));
-#
-#<Directory /home/httpd>
-# # If you want tot make mod_auth_mysql work with apache-2.2, please uncomment
-# # the following line:
-# #AuthBasicAuthoritative Off
-# AuthName "MySQL authenticated zone"
-# AuthType Basic
-#
-# AuthMySQLUser authuser
-# AuthMySQLPassword PaSsW0Rd
-# AuthMySQLDB auth
-# AuthMySQLUserTable users
-# AuthMySQLNameField user_name
-# AuthMySQLPasswordField user_passwd
-#
-# require valid-user
-#</Directory>
-
-# This will enable group-based MySQL authentication of everything
-# within /home/httpd. You'll need to do the following as the MySQL
-# root user beforehand:
-#
-# CREATE DATABASE auth;
-# USE auth;
-# CREATE TABLE users (
-# user_name CHAR(30) NOT NULL,
-# user_passwd CHAR(20) NOT NULL,
-# user_group CHAR(20) NOT NULL,
-# PRIMARY KEY (user_name)
-# );
-# GRANT SELECT
-# ON auth.users
-# TO authuser@localhost
-# IDENTIFIED BY 'PaSsW0Rd';
-#
-# INSERT INTO users VALUES ('testuser', ENCRYPT('testpass'), 'user');
-# INSERT INTO users VALUES ('testadmin', ENCRYPT('testpass'), 'admin');
-#
-#<Directory /home/httpd>
-# # If you want tot make mod_auth_mysql work with apache-2.2, please uncomment
-# # the following line:
-# #AuthBasicAuthoritative Off
-# AuthName "MySQL group authenticated zone"
-# AuthType Basic
-#
-# AuthMySQLUser authuser
-# AuthMySQLPassword PaSsW0Rd
-# AuthMySQLDB auth
-# AuthMySQLUserTable users
-# AuthMySQLNameField user_name
-# AuthMySQLPasswordField user_passwd
-# AuthMySQLGroupField user_group
-#
-# require group admin
-#</Directory>
-
-# Like the above this enables group-based MySQL authentication of
-# everything within /home/httpd, but this configuration allows users to
-# belong to more than one group. You'll need to do the following as
-# the MySQL root user beforehand:
-#
-# CREATE DATABASE auth;
-# USE auth;
-# CREATE TABLE users (
-# user_name CHAR(30) NOT NULL,
-# user_passwd CHAR(20) NOT NULL,
-# PRIMARY KEY (user_name)
-# );
-# CREATE TABLE groups (
-# user_name CHAR(30) NOT NULL,
-# user_group CHAR(20) NOT NULL,
-# PRIMARY KEY (user_name, user_group)
-# );
-# GRANT SELECT
-# ON auth.users
-# TO authuser@localhost
-# IDENTIFIED BY 'PaSsW0Rd';
-# GRANT SELECT
-# ON auth.groups
-# TO authuser@localhost
-# IDENTIFIED BY 'PaSsW0Rd';
-#
-# INSERT INTO users VALUES ('testuser', ENCRYPT('testpass'));
-# INSERT INTO groups VALUES ('testuser', 'user');
-# INSERT INTO users VALUES ('testadmin', ENCRYPT('testpass'));
-# INSERT INTO groups VALUES ('testadmin', 'admin');
-# INSERT INTO groups VALUES ('testadmin', 'user');
-#
-#<Directory /home/httpd>
-# # If you want tot make mod_auth_mysql work with apache-2.2, please uncomment
-# # the following line:
-# #AuthBasicAuthoritative Off
-# AuthName "MySQL group authenticated zone"
-# AuthType Basic
-#
-# AuthMySQLUser authuser
-# AuthMySQLPassword PaSsW0Rd
-# AuthMySQLDB auth
-# AuthMySQLUserTable users
-# AuthMySQLNameField user_name
-# AuthMySQLPasswordField user_passwd
-# AuthMySQLGroupTable groups
-# AuthMySQLGroupField user_group
-#
-# require group user
-#</Directory>
-</IfDefine>
-
-# vim: ts=4 filetype=apache
+++ /dev/null
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=5
-
-inherit apache-module eutils
-
-DESCRIPTION="Apache 2 module enabling HTTP authentication against MySQL databases. "
-HOMEPAGE="http://packages.debian.org/source/mod-auth-mysql"
-DEBIAN_PV="13"
-MY_P="${PN}_${PV/-/_}"
-DEBIAN_URI="mirror://debian/pool/main/${PN:0:1}/${PN}"
-DEBIAN_PATCH="${MY_P}-${DEBIAN_PV}.diff.gz"
-DEBIAN_SRC="${MY_P}.orig.tar.gz"
-SRC_URI="${DEBIAN_URI}/${DEBIAN_SRC} ${DEBIAN_URI}/${DEBIAN_PATCH}"
-
-LICENSE="Apache-1.1"
-SLOT="0"
-KEYWORDS="~amd64 ~ppc ~x86"
-IUSE=""
-
-DEPEND="virtual/mysql"
-RDEPEND="${DEPEND}
- !www-apache/mod_auth_mysql"
-
-APACHE2_MOD_FILE="${S}/apache2_mod_auth_mysql.so"
-APACHE2_MOD_CONF="12_${PN//-/_}"
-APACHE2_MOD_DEFINE="AUTH_MYSQL"
-
-DOCFILES="USAGE DIRECTIVES"
-
-need_apache2_2
-
-src_unpack() {
- unpack "${DEBIAN_SRC}"
-}
-
-src_prepare() {
- EPATCH_OPTS="-p1" epatch "${DISTDIR}"/"${DEBIAN_PATCH}"
- for i in $(<"${S}"/debian/patches/00list) ; do
- epatch "${S}"/debian/patches/${i}*
- done
- epatch_user
-}
-
-src_configure() {
- econf \
- --enable-apache2 \
- --disable-apache13 \
- --with-apxs2=/usr/sbin/apxs2
-}
-
-src_compile() {
- default
-}
-
-src_install() {
- apache-module_src_install
-}