mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-24 04:33:24 +00:00
Add mod_auth_mysql41_ap2 1.00, mySQL 4.1 and Apache 2 port of
mod_auth_mysql. PR: 57503 Submitted by: Douglas A. Maske <maske@maske.org> Approved by: erwin (mentor) (implicity)
This commit is contained in:
parent
7433b9218c
commit
643168d988
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=97817
@ -197,6 +197,7 @@
|
||||
SUBDIR += mod_auth_external2
|
||||
SUBDIR += mod_auth_kerb
|
||||
SUBDIR += mod_auth_mysql
|
||||
SUBDIR += mod_auth_mysql41_ap2
|
||||
SUBDIR += mod_auth_mysql_another
|
||||
SUBDIR += mod_auth_pam
|
||||
SUBDIR += mod_auth_pam2
|
||||
|
39
www/mod_auth_mysql41_ap2/Makefile
Normal file
39
www/mod_auth_mysql41_ap2/Makefile
Normal file
@ -0,0 +1,39 @@
|
||||
# New ports collection makefile for: mod_auth_mysql41_ap2
|
||||
# Date Created: Thu Oct 2 10:33:50 CDT 2003
|
||||
# Whom: Douglas A. Maske <maske@maske.org>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= mod_auth_mysql41_ap2
|
||||
PORTVERSION= 1.00
|
||||
CATEGORIES= www
|
||||
MASTER_SITES= ftp://ftp.maske.org/pub/FreeBSD/distfiles/
|
||||
DISTNAME= ${PORTNAME}_${PORTVERSION}
|
||||
DISTFILES= ${DISTNAME}.tar.gz
|
||||
|
||||
MAINTAINER= maske@maske.org
|
||||
COMMENT= MySQL 4.1 and Apache 2 port of mod_auth_mysql
|
||||
|
||||
USE_APACHE= YES
|
||||
WITH_APACHE2= YES
|
||||
|
||||
USE_MYSQL= YES
|
||||
WANT_MYSQL_VER= 41
|
||||
MYSQL_INC?= ${LOCALBASE}/include/mysql
|
||||
MYSQL_LIB?= ${LOCALBASE}/lib/mysql -lmysqlclient
|
||||
|
||||
MODULE_NAME= mod_auth_mysql
|
||||
PORTDOCS= README
|
||||
|
||||
do-build:
|
||||
@(cd ${WRKSRC} && ${APXS} -D APACHE2 -I ${MYSQL_INC} -L ${MYSQL_LIB} -c ${MODULE_NAME}.c)
|
||||
|
||||
do-install:
|
||||
@(cd ${WRKSRC} && ${APXS} -i -A -n ${MODULE_NAME:S/mod_//} ${MODULE_NAME}.la)
|
||||
.if !defined(NORPORTDOCS)
|
||||
${MKDIR} ${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${DOCSDIR}
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
1
www/mod_auth_mysql41_ap2/distinfo
Normal file
1
www/mod_auth_mysql41_ap2/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (mod_auth_mysql41_ap2_1.00.tar.gz) = 1bbb708dd08831e25aebc6191fd7e72c
|
11
www/mod_auth_mysql41_ap2/files/patch-mod_auth_mysql.c
Normal file
11
www/mod_auth_mysql41_ap2/files/patch-mod_auth_mysql.c
Normal file
@ -0,0 +1,11 @@
|
||||
--- mod_auth_mysql.c.orig Fri Jan 9 22:13:01 2004
|
||||
+++ mod_auth_mysql.c Fri Jan 9 22:13:12 2004
|
||||
@@ -692,7 +692,7 @@
|
||||
/* if AuthMySQLScrambledPassword is On, compare the scrambled password */
|
||||
if(sec->mysqlScrambled) {
|
||||
scrambled_sent_pw = PCALLOC(r->pool, 33);
|
||||
- make_scrambled_password(scrambled_sent_pw, sent_pw, NULL, 0);
|
||||
+ make_scrambled_password(scrambled_sent_pw, sent_pw);
|
||||
if(strcmp(real_pw, scrambled_sent_pw)) {
|
||||
passwords_match = 0;
|
||||
}
|
5
www/mod_auth_mysql41_ap2/pkg-descr
Normal file
5
www/mod_auth_mysql41_ap2/pkg-descr
Normal file
@ -0,0 +1,5 @@
|
||||
mod_auth_mysql41_ap2 is an Apache module that allows authentication using user and group data stored in MySQL databases. Originally by Vivek Khera for Apache1, now also includes a version for Apache 2. This version has been modified from the version by Sam Brauer <sbrauer@users.sourceforge.net> at http://sourceforge.net/projects/modauthmysql to support MySQL 4.1 with Apache 2. Group Authentication has not been implemented yet.
|
||||
|
||||
Douglas A. Maske
|
||||
maske@maske.org
|
||||
http://www.maske.org
|
27
www/mod_auth_mysql41_ap2/pkg-message
Normal file
27
www/mod_auth_mysql41_ap2/pkg-message
Normal file
@ -0,0 +1,27 @@
|
||||
*****************************************************************************
|
||||
|
||||
You have installed the mod_auth_mysql41_ap2 package.
|
||||
|
||||
Your Apache2 configuration file has been updated with the new module.
|
||||
|
||||
Please restart Apache2 for this module to activate.
|
||||
|
||||
You should put this to your .htaccess file:
|
||||
|
||||
AuthType Basic
|
||||
AuthName YOURAUTHNAME
|
||||
AuthMySQLDB YOURDATABASENAME
|
||||
AuthMySQLUser YOURMYSQLUSERNAME
|
||||
AuthMySQLPassword YOURMYSQLPASSWORD
|
||||
AuthMySQLHost YOURMYSQLHOSTNAME
|
||||
AuthMySQLUserTable YOURUSERTABLENAME
|
||||
AuthMySQLNameField USERNAMEFIELD
|
||||
AuthMySQLPasswordField PASSWORDFIELD
|
||||
|
||||
For .htaccess options, view /usr/local/share/doc/mod_auth_mysql41_ap2/README
|
||||
|
||||
For more information visit http://www.maske.org
|
||||
|
||||
Group authentication is not supported at this time.
|
||||
|
||||
*****************************************************************************
|
3
www/mod_auth_mysql41_ap2/pkg-plist
Normal file
3
www/mod_auth_mysql41_ap2/pkg-plist
Normal file
@ -0,0 +1,3 @@
|
||||
libexec/apache2/mod_auth_mysql.so
|
||||
@exec %D/sbin/apxs -e -a -n mysql_auth %D/%f
|
||||
@unexec %D/sbin/apxs -e -A -n mysql_auth %D/%f
|
Loading…
Reference in New Issue
Block a user