pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/www/ap2-auth-external Import apache 2.x portion after ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/4700a53c7b8e
branches: trunk
changeset: 536691:4700a53c7b8e
user: sborrill <sborrill%pkgsrc.org@localhost>
date: Thu Dec 20 14:59:14 2007 +0000
description:
Import apache 2.x portion after splitting ap-auth-external into 1.x and 2.x.
mod_auth_external allows you to use an external script for Apache authentication.
diffstat:
www/ap2-auth-external/DESCR | 20 ++++++++++++++++++++
www/ap2-auth-external/MESSAGE | 9 +++++++++
www/ap2-auth-external/Makefile | 25 +++++++++++++++++++++++++
www/ap2-auth-external/PLIST | 2 ++
www/ap2-auth-external/distinfo | 9 +++++++++
www/ap2-auth-external/patches/patch-aa | 22 ++++++++++++++++++++++
6 files changed, 87 insertions(+), 0 deletions(-)
diffs (111 lines):
diff -r 0e5d51dc8f9a -r 4700a53c7b8e www/ap2-auth-external/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/www/ap2-auth-external/DESCR Thu Dec 20 14:59:14 2007 +0000
@@ -0,0 +1,20 @@
+The Apache HTTP Daemon can be configured to require users to supply logins
+and passwords before accessing pages in some directories. Authentication is
+the process of checking if the password given is correct for a user. Apache
+has standard modules for authenticating out of several different kinds of
+databases. The external authentication module provides a flexible tool for
+creating authentication systems based on other databases.
+
+The module can be used in either of two somewhat divergent ways:
+1) External Authentication:
+
+When a user supplies a login and password, mod_auth*_external runs a program
+you write, passing it the login and password. Your program does whatever
+checking and logging it needs to, and then returns a Accept/Reject flag to
+Apache.
+
+2) Hardcoded Authentication:
+
+Some hooks have been inserted into mod_auth*_external to make it easy to
+replace the call to the external authentication program with a call to a
+hardcoded internal authentication routine that you write.
diff -r 0e5d51dc8f9a -r 4700a53c7b8e www/ap2-auth-external/MESSAGE
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/www/ap2-auth-external/MESSAGE Thu Dec 20 14:59:14 2007 +0000
@@ -0,0 +1,9 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1.1.1 2007/12/20 14:59:14 sborrill Exp $
+
+In order to use this module in your Apache installation, you need to
+add the following to your httpd.conf file:
+
+ LoadModule ${MODULE_NAME} lib/httpd/mod_auth_external.so
+
+===========================================================================
diff -r 0e5d51dc8f9a -r 4700a53c7b8e www/ap2-auth-external/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/www/ap2-auth-external/Makefile Thu Dec 20 14:59:14 2007 +0000
@@ -0,0 +1,25 @@
+# $NetBSD: Makefile,v 1.1.1.1 2007/12/20 14:59:14 sborrill Exp $
+#
+
+DISTNAME= mod_auth_external-${DISTVERS}
+PKGREVISION= 2
+PKGNAME= ${APACHE_PKG_PREFIX}-auth-external-${DISTVERS}
+CATEGORIES= www
+MASTER_SITES= http://unixpapa.com/software/
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= http://unixpapa.com/mod_authnz_external/
+COMMENT= Apache module for external program authentication
+
+PKG_APACHE_ACCEPTED= apache2 apache22
+
+.include "../../mk/apache.mk"
+
+APACHE_MODULE_NAME= mod_auth_external.${MODULE_EXT}
+
+DISTVERS= 2.2.11
+MODULE_EXT= la
+MESSAGE_SUBST+= MODULE_NAME=auth_external_module
+
+.include "../../www/apache/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 0e5d51dc8f9a -r 4700a53c7b8e www/ap2-auth-external/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/www/ap2-auth-external/PLIST Thu Dec 20 14:59:14 2007 +0000
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2007/12/20 14:59:14 sborrill Exp $
+lib/httpd/mod_auth_external.so
diff -r 0e5d51dc8f9a -r 4700a53c7b8e www/ap2-auth-external/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/www/ap2-auth-external/distinfo Thu Dec 20 14:59:14 2007 +0000
@@ -0,0 +1,9 @@
+$NetBSD: distinfo,v 1.1.1.1 2007/12/20 14:59:14 sborrill Exp $
+
+SHA1 (mod_auth_external-2.1.19.tar.gz) = da2266f93acf82e488e14380157f1acd69198ad9
+RMD160 (mod_auth_external-2.1.19.tar.gz) = f4012119f3e3eca73b07c1f90292338e6256e31a
+Size (mod_auth_external-2.1.19.tar.gz) = 51390 bytes
+SHA1 (mod_auth_external-2.2.11.tar.gz) = da89adcdac611ec8c0f69a79f2edff669210f2a1
+RMD160 (mod_auth_external-2.2.11.tar.gz) = be27183d8049989f64548a5c8dd3cdecc3b3a5e2
+Size (mod_auth_external-2.2.11.tar.gz) = 52542 bytes
+SHA1 (patch-aa) = 7232921601c3e61e70d13cd0bb252eb219de3569
diff -r 0e5d51dc8f9a -r 4700a53c7b8e www/ap2-auth-external/patches/patch-aa
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/www/ap2-auth-external/patches/patch-aa Thu Dec 20 14:59:14 2007 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-aa,v 1.1.1.1 2007/12/20 14:59:14 sborrill Exp $
+
+--- mod_auth_external.c.orig 2007-12-19 15:17:29.000000000 +0000
++++ mod_auth_external.c 2007-12-19 15:17:29.000000000 +0000
+@@ -242,6 +242,7 @@
+ #define ENV_PASS "PASS"
+ #define ENV_GROUP "GROUP"
+ #define ENV_URI "URI"
++#define ENV_METHOD "METHOD"
+ #define ENV_IP "IP"
+ #define ENV_HOST "HOST" /* Remote Host */
+ #define ENV_HTTP_HOST "HTTP_HOST" /* Local Host */
+@@ -506,6 +507,9 @@
+ if (r->uri)
+ child_env[i++]= apr_pstrcat(r->pool, ENV_URI"=", r->uri, NULL);
+
++ if (r->method)
++ child_env[i++]= apr_pstrcat(r->pool, ENV_METHOD"=", r->method, NULL);
++
+ if ((host= lookup_header(r,"Host")) != NULL)
+ child_env[i++]= apr_pstrcat(r->pool, ENV_HTTP_HOST"=", host, NULL);
+
Home |
Main Index |
Thread Index |
Old Index