diff options
author | will <will@FreeBSD.org> | 2001-05-20 03:16:09 +0000 |
---|---|---|
committer | will <will@FreeBSD.org> | 2001-05-20 03:16:09 +0000 |
commit | 0671bd5988c4884ead65a11a0110a1eff37cc27c (patch) | |
tree | 9903157073ab0b06499439bc17582cd455b93356 | |
parent | 0f92ef6ce84f0fc91066b3e90e6ce4e3243befe7 (diff) | |
download | FreeBSD-ports-0671bd5988c4884ead65a11a0110a1eff37cc27c.zip FreeBSD-ports-0671bd5988c4884ead65a11a0110a1eff37cc27c.tar.gz |
Add mod_auth_external 2.1.11, an Apache module that enables the use
of external mechanisms for user authentication.
PR: 27321
Submitted by: Anders Nordby <anders@fix.no>
-rw-r--r-- | www/Makefile | 1 | ||||
-rw-r--r-- | www/mod_auth_external/Makefile | 39 | ||||
-rw-r--r-- | www/mod_auth_external/distinfo | 1 | ||||
-rw-r--r-- | www/mod_auth_external/files/patch-mod_auth_external.c | 84 | ||||
-rw-r--r-- | www/mod_auth_external/pkg-comment | 1 | ||||
-rw-r--r-- | www/mod_auth_external/pkg-descr | 11 | ||||
-rw-r--r-- | www/mod_auth_external/pkg-message | 16 | ||||
-rw-r--r-- | www/mod_auth_external/pkg-plist | 34 |
8 files changed, 187 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile index cd85ad8..8aee802 100644 --- a/www/Makefile +++ b/www/Makefile @@ -115,6 +115,7 @@ SUBDIR += mod_access_identd SUBDIR += mod_access_referer SUBDIR += mod_auth_any + SUBDIR += mod_auth_external SUBDIR += mod_auth_mysql SUBDIR += mod_auth_pam SUBDIR += mod_auth_pgsql diff --git a/www/mod_auth_external/Makefile b/www/mod_auth_external/Makefile new file mode 100644 index 0000000..1bffe4b9 --- /dev/null +++ b/www/mod_auth_external/Makefile @@ -0,0 +1,39 @@ +# New ports collection makefile for: mod_auth_external +# Date created: 14 May 2001 +# Whom: Anders Nordby <anders@fix.no> +# +# $FreeBSD$ +# + +PORTNAME= mod_auth_external +PORTVERSION= 2.1.11 +CATEGORIES= www +MASTER_SITES= http://www.wwnet.net/~janc/software/ \ + ftp://ftp.nuug.no/pub/anders/distfiles/ + +MAINTAINER= anders@fix.no + +BUILD_DEPENDS= ${APXS}:${PORTSDIR}/www/apache13 +RUN_DEPENDS= ${APXS}:${PORTSDIR}/www/apache13 + +APXS?= ${LOCALBASE}/sbin/apxs + +DOCDIR= ${PREFIX}/share/doc/${PORTNAME} +DOCS= AUTHENTICATORS CHANGES INSTALL README TODO + +do-build: + @cd ${WRKSRC} && ${APXS} -c mod_auth_external.c + +do-install: + ${APXS} -i -A -n auth_external ${WRKSRC}/mod_auth_external.so +.if !defined(NOPORTDOCS) + ${INSTALL} -d -o root -g wheel -m 0755 ${DOCDIR}/examples + cd ${WRKSRC} && ${TAR} -chf - pwauth radius sybase test \ + | ${TAR} -xf - -C ${DOCDIR}/examples +.for f in ${DOCS} + ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCDIR}/ +.endfor +.endif + ${CAT} ${PKGMESSAGE} + +.include <bsd.port.mk> diff --git a/www/mod_auth_external/distinfo b/www/mod_auth_external/distinfo new file mode 100644 index 0000000..f38ae1d --- /dev/null +++ b/www/mod_auth_external/distinfo @@ -0,0 +1 @@ +MD5 (mod_auth_external-2.1.11.tar.gz) = ac9ae5236f1597f66f96aefd6ad76e3a diff --git a/www/mod_auth_external/files/patch-mod_auth_external.c b/www/mod_auth_external/files/patch-mod_auth_external.c new file mode 100644 index 0000000..a25b520 --- /dev/null +++ b/www/mod_auth_external/files/patch-mod_auth_external.c @@ -0,0 +1,84 @@ +--- mod_auth_external.c.orig Tue May 15 00:49:04 2001 ++++ mod_auth_external.c Tue May 15 00:50:55 2001 +@@ -239,7 +239,7 @@ + * Structure for the module itself + */ + +-module external_auth_module; ++module auth_external_module; + + /* + * Data types for per-dir and server configuration +@@ -303,7 +303,7 @@ + extauth_server_config_rec *sc_rec; + + sc_rec= ap_get_module_config( cmd->server->module_config, +- &external_auth_module); ++ &auth_external_module); + + ap_table_set( sc_rec->auth_extpath, keyword, path ); + +@@ -323,7 +323,7 @@ + extauth_server_config_rec *sc_rec; + + sc_rec= ap_get_module_config( cmd->server->module_config, +- &external_auth_module); ++ &auth_external_module); + + ap_table_set( sc_rec->group_extpath, keyword, path ); + +@@ -343,7 +343,7 @@ + extauth_server_config_rec *sc_rec; + + sc_rec= ap_get_module_config( cmd->server->module_config, +- &external_auth_module); ++ &auth_external_module); + + ap_table_set( sc_rec->auth_extmethod, keyword, method ); + +@@ -361,7 +361,7 @@ + extauth_server_config_rec *sc_rec; + + sc_rec= ap_get_module_config( cmd->server->module_config, +- &external_auth_module); ++ &auth_external_module); + + ap_table_set( sc_rec->group_extmethod, keyword, method ); + +@@ -565,11 +565,11 @@ + { + extauth_dir_config_rec *dir_config_rec= + (extauth_dir_config_rec *)ap_get_module_config(r->per_dir_config, +- &external_auth_module); ++ &auth_external_module); + + extauth_server_config_rec *server_config_rec= + (extauth_server_config_rec *)ap_get_module_config(r->server->module_config, +- &external_auth_module); ++ &auth_external_module); + + const char *sent_pw; + int res, code= 1; +@@ -679,11 +679,11 @@ + { + extauth_dir_config_rec *dir_config_rec= + (extauth_dir_config_rec *)ap_get_module_config(r->per_dir_config, +- &external_auth_module); ++ &auth_external_module); + + extauth_server_config_rec *server_config_rec= + (extauth_server_config_rec *)ap_get_module_config(r->server->module_config, +- &external_auth_module); ++ &auth_external_module); + + conn_rec *c= r->connection; + +@@ -787,7 +787,7 @@ + return AUTH_REQUIRED; + } + +-module external_auth_module= { ++module auth_external_module= { + STANDARD_MODULE_STUFF, + NULL, /* initializer */ + create_extauth_dir_config, /* dir config creater */ diff --git a/www/mod_auth_external/pkg-comment b/www/mod_auth_external/pkg-comment new file mode 100644 index 0000000..94d36ed --- /dev/null +++ b/www/mod_auth_external/pkg-comment @@ -0,0 +1 @@ +Enables the use of external mechanisms for user authentication diff --git a/www/mod_auth_external/pkg-descr b/www/mod_auth_external/pkg-descr new file mode 100644 index 0000000..42d844d --- /dev/null +++ b/www/mod_auth_external/pkg-descr @@ -0,0 +1,11 @@ +Mod_Auth_External is an Apache module used for authentication. 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. +Mod_Auth_External is a flexible tool for creating authentication systems +based on other databases. + +WWW: http://www.wwnet.net/~janc/mod_auth_external.html + +- Anders Nordby <anders@fix.no> diff --git a/www/mod_auth_external/pkg-message b/www/mod_auth_external/pkg-message new file mode 100644 index 0000000..bbd4d27 --- /dev/null +++ b/www/mod_auth_external/pkg-message @@ -0,0 +1,16 @@ +************************************************************ +You've installed mod_auth_external, an Apache authentication +module enabling the use of external mechanisms for user +authentication. + +Edit your apache.conf or httpd.conf to enable and setup this +module. Have a look at the files in +${PREFIX}/share/doc/mod_auth_external for information on how +to configure it, example authentication programs, etc. + +Then do this to make it work effective: + +# apachectl configtest (see if there are any config errors) +# apachectl restart + +************************************************************ diff --git a/www/mod_auth_external/pkg-plist b/www/mod_auth_external/pkg-plist new file mode 100644 index 0000000..4566ef5 --- /dev/null +++ b/www/mod_auth_external/pkg-plist @@ -0,0 +1,34 @@ +libexec/apache/mod_auth_external.so +@exec %D/sbin/apxs -e -A -n auth_external %D/%F +@unexec %D/sbin/apxs -e -A -n auth_external %D/%F +%%PORTDOCS%%share/doc/mod_auth_external/examples/pwauth/pwauth.c +%%PORTDOCS%%share/doc/mod_auth_external/examples/pwauth/config.h +%%PORTDOCS%%share/doc/mod_auth_external/examples/pwauth/README +%%PORTDOCS%%share/doc/mod_auth_external/examples/pwauth/INSTALL +%%PORTDOCS%%share/doc/mod_auth_external/examples/pwauth/Makefile +%%PORTDOCS%%share/doc/mod_auth_external/examples/pwauth/FORM_AUTH +%%PORTDOCS%%share/doc/mod_auth_external/examples/radius/CHANGES +%%PORTDOCS%%share/doc/mod_auth_external/examples/radius/md5-radius.c +%%PORTDOCS%%share/doc/mod_auth_external/examples/radius/md5-radius.h +%%PORTDOCS%%share/doc/mod_auth_external/examples/radius/mod-radfuncs.c +%%PORTDOCS%%share/doc/mod_auth_external/examples/radius/mod-radius.h +%%PORTDOCS%%share/doc/mod_auth_external/examples/radius/mod_auth_external_radius.c +%%PORTDOCS%%share/doc/mod_auth_external/examples/radius/README +%%PORTDOCS%%share/doc/mod_auth_external/examples/sybase/mod_auth_external_sybase.c +%%PORTDOCS%%share/doc/mod_auth_external/examples/sybase/README +%%PORTDOCS%%share/doc/mod_auth_external/examples/test/test.pipe +%%PORTDOCS%%share/doc/mod_auth_external/examples/test/test.env +%%PORTDOCS%%share/doc/mod_auth_external/examples/test/testgroup.env +%%PORTDOCS%%share/doc/mod_auth_external/examples/test/testgroup.pipe +%%PORTDOCS%%share/doc/mod_auth_external/examples/test/README +%%PORTDOCS%%share/doc/mod_auth_external/AUTHENTICATORS +%%PORTDOCS%%share/doc/mod_auth_external/CHANGES +%%PORTDOCS%%share/doc/mod_auth_external/INSTALL +%%PORTDOCS%%share/doc/mod_auth_external/README +%%PORTDOCS%%share/doc/mod_auth_external/TODO +%%PORTDOCS%%@dirrm share/doc/mod_auth_external/examples/pwauth +%%PORTDOCS%%@dirrm share/doc/mod_auth_external/examples/radius +%%PORTDOCS%%@dirrm share/doc/mod_auth_external/examples/sybase +%%PORTDOCS%%@dirrm share/doc/mod_auth_external/examples/test +%%PORTDOCS%%@dirrm share/doc/mod_auth_external/examples +%%PORTDOCS%%@dirrm share/doc/mod_auth_external |