From anders@totem.fix.no  Mon May 14 16:00:36 2001
Return-Path: <anders@totem.fix.no>
Received: from totem.fix.no (totem.fix.no [213.142.66.130])
	by hub.freebsd.org (Postfix) with ESMTP id 24D9F37B423
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 14 May 2001 16:00:34 -0700 (PDT)
	(envelope-from anders@totem.fix.no)
Received: by totem.fix.no (Postfix, from userid 1000)
	id 130FB3CC8; Tue, 15 May 2001 01:00:28 +0200 (CEST)
Message-Id: <20010514230028.130FB3CC8@totem.fix.no>
Date: Tue, 15 May 2001 01:00:28 +0200 (CEST)
From: Anders Nordby <anders@fix.no>
Reply-To: Anders Nordby <anders@fix.no>
To: FreeBSD-gnats-submit@freebsd.org
Subject: New port: www/mod_auth_external
X-Send-Pr-Version: 3.2

>Number:         27321
>Category:       ports
>Synopsis:       New port: www/mod_auth_external
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 14 16:10:00 PDT 2001
>Closed-Date:    Sat May 19 20:15:50 PDT 2001
>Last-Modified:  Sat May 19 20:16:06 PDT 2001
>Originator:     Anders Nordby
>Release:        FreeBSD 4.3-STABLE i386
>Organization:
Fluxpod Information eXchange
>Environment:

kern.osreldate: 430000 (4.3-STABLE)
kern.osreldate: 500018 (5.0-20010420-CURRENT)

>Description:

New port of mod_auth_external, an Apache module enabling the use of external
mechanisms for user authentication.

>How-To-Repeat:

	

>Fix:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	mod_auth_external
#	mod_auth_external/Makefile
#	mod_auth_external/distinfo
#	mod_auth_external/pkg-descr
#	mod_auth_external/pkg-message
#	mod_auth_external/pkg-plist
#	mod_auth_external/pkg-comment
#	mod_auth_external/files
#	mod_auth_external/files/patch-mod_auth_external.c
#
echo c - mod_auth_external
mkdir -p mod_auth_external > /dev/null 2>&1
echo x - mod_auth_external/Makefile
sed 's/^X//' >mod_auth_external/Makefile << 'END-of-mod_auth_external/Makefile'
X# New ports collection makefile for:	mod_auth_external
X# Date created:				14 May 2001
X# Whom:					Anders Nordby <anders@fix.no>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	mod_auth_external
XPORTVERSION=	2.1.11
XCATEGORIES=	www
XMASTER_SITES=	http://www.wwnet.net/~janc/software/ \
X		ftp://ftp.nuug.no/pub/anders/distfiles/
X
XMAINTAINER=	anders@fix.no
X
XBUILD_DEPENDS=	${APXS}:${PORTSDIR}/www/apache13
XRUN_DEPENDS=	${APXS}:${PORTSDIR}/www/apache13
X
XAPXS?=		${LOCALBASE}/sbin/apxs
X
XDOCDIR=		${PREFIX}/share/doc/${PORTNAME}
XDOCS=		AUTHENTICATORS CHANGES INSTALL README TODO
X
Xdo-build:
X	@cd ${WRKSRC} && ${APXS} -c mod_auth_external.c
X
Xdo-install:
X	${APXS} -i -A -n auth_external ${WRKSRC}/mod_auth_external.so
X.if !defined(NOPORTDOCS)
X	${INSTALL} -d -o root -g wheel -m 0755 ${DOCDIR}/examples
X	cd ${WRKSRC} && ${TAR} -chf - pwauth radius sybase test \
X		| ${TAR} -xf - -C ${DOCDIR}/examples
X.for f in ${DOCS}
X	${INSTALL_DATA} ${WRKSRC}/${f} ${DOCDIR}/
X.endfor
X.endif
X	${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.mk>
END-of-mod_auth_external/Makefile
echo x - mod_auth_external/distinfo
sed 's/^X//' >mod_auth_external/distinfo << 'END-of-mod_auth_external/distinfo'
XMD5 (mod_auth_external-2.1.11.tar.gz) = ac9ae5236f1597f66f96aefd6ad76e3a
END-of-mod_auth_external/distinfo
echo x - mod_auth_external/pkg-descr
sed 's/^X//' >mod_auth_external/pkg-descr << 'END-of-mod_auth_external/pkg-descr'
XMod_Auth_External is an Apache module used for authentication.  The Apache
XHTTP Daemon can be configured to require users to supply logins and passwords
Xbefore accessing pages in some directories. Authentication is the process
Xof checking if the password given is correct for a user. Apache has standard
Xmodules for authenticating out of several different kinds of databases.
XMod_Auth_External is a flexible tool for creating authentication systems
Xbased on other databases.
X
XWWW: http://www.wwnet.net/~janc/mod_auth_external.html
X
X- Anders Nordby <anders@fix.no>
END-of-mod_auth_external/pkg-descr
echo x - mod_auth_external/pkg-message
sed 's/^X//' >mod_auth_external/pkg-message << 'END-of-mod_auth_external/pkg-message'
X************************************************************
XYou've installed mod_auth_external, an Apache authentication
Xmodule enabling the use of external mechanisms for user
Xauthentication.
X
XEdit your apache.conf or httpd.conf to enable and setup this
Xmodule. Have a look at the files in
X${PREFIX}/share/doc/mod_auth_external for information on how
Xto configure it, example authentication programs, etc.
X
XThen do this to make it work effective:
X
X# apachectl configtest (see if there are any config errors)
X# apachectl restart
X
X************************************************************
END-of-mod_auth_external/pkg-message
echo x - mod_auth_external/pkg-plist
sed 's/^X//' >mod_auth_external/pkg-plist << 'END-of-mod_auth_external/pkg-plist'
Xlibexec/apache/mod_auth_external.so
X@exec %D/sbin/apxs -e -A -n auth_external %D/%F
X@unexec %D/sbin/apxs -e -A -n auth_external %D/%F
X%%PORTDOCS%%share/doc/mod_auth_external/examples/pwauth/pwauth.c
X%%PORTDOCS%%share/doc/mod_auth_external/examples/pwauth/config.h
X%%PORTDOCS%%share/doc/mod_auth_external/examples/pwauth/README
X%%PORTDOCS%%share/doc/mod_auth_external/examples/pwauth/INSTALL
X%%PORTDOCS%%share/doc/mod_auth_external/examples/pwauth/Makefile
X%%PORTDOCS%%share/doc/mod_auth_external/examples/pwauth/FORM_AUTH
X%%PORTDOCS%%share/doc/mod_auth_external/examples/radius/CHANGES
X%%PORTDOCS%%share/doc/mod_auth_external/examples/radius/md5-radius.c
X%%PORTDOCS%%share/doc/mod_auth_external/examples/radius/md5-radius.h
X%%PORTDOCS%%share/doc/mod_auth_external/examples/radius/mod-radfuncs.c
X%%PORTDOCS%%share/doc/mod_auth_external/examples/radius/mod-radius.h
X%%PORTDOCS%%share/doc/mod_auth_external/examples/radius/mod_auth_external_radius.c
X%%PORTDOCS%%share/doc/mod_auth_external/examples/radius/README
X%%PORTDOCS%%share/doc/mod_auth_external/examples/sybase/mod_auth_external_sybase.c
X%%PORTDOCS%%share/doc/mod_auth_external/examples/sybase/README
X%%PORTDOCS%%share/doc/mod_auth_external/examples/test/test.pipe
X%%PORTDOCS%%share/doc/mod_auth_external/examples/test/test.env
X%%PORTDOCS%%share/doc/mod_auth_external/examples/test/testgroup.env
X%%PORTDOCS%%share/doc/mod_auth_external/examples/test/testgroup.pipe
X%%PORTDOCS%%share/doc/mod_auth_external/examples/test/README
X%%PORTDOCS%%share/doc/mod_auth_external/AUTHENTICATORS
X%%PORTDOCS%%share/doc/mod_auth_external/CHANGES
X%%PORTDOCS%%share/doc/mod_auth_external/INSTALL
X%%PORTDOCS%%share/doc/mod_auth_external/README
X%%PORTDOCS%%share/doc/mod_auth_external/TODO
X%%PORTDOCS%%@dirrm share/doc/mod_auth_external/examples/pwauth
X%%PORTDOCS%%@dirrm share/doc/mod_auth_external/examples/radius
X%%PORTDOCS%%@dirrm share/doc/mod_auth_external/examples/sybase
X%%PORTDOCS%%@dirrm share/doc/mod_auth_external/examples/test
X%%PORTDOCS%%@dirrm share/doc/mod_auth_external/examples
X%%PORTDOCS%%@dirrm share/doc/mod_auth_external
END-of-mod_auth_external/pkg-plist
echo x - mod_auth_external/pkg-comment
sed 's/^X//' >mod_auth_external/pkg-comment << 'END-of-mod_auth_external/pkg-comment'
XEnables the use of external mechanisms for user authentication
END-of-mod_auth_external/pkg-comment
echo c - mod_auth_external/files
mkdir -p mod_auth_external/files > /dev/null 2>&1
echo x - mod_auth_external/files/patch-mod_auth_external.c
sed 's/^X//' >mod_auth_external/files/patch-mod_auth_external.c << 'END-of-mod_auth_external/files/patch-mod_auth_external.c'
X--- mod_auth_external.c.orig	Tue May 15 00:49:04 2001
X+++ mod_auth_external.c	Tue May 15 00:50:55 2001
X@@ -239,7 +239,7 @@
X  * Structure for the module itself
X  */
X 
X-module external_auth_module;
X+module auth_external_module;
X 
X /*
X  *  Data types for per-dir and server configuration
X@@ -303,7 +303,7 @@
X     extauth_server_config_rec *sc_rec;
X 
X     sc_rec= ap_get_module_config( cmd->server->module_config,
X-	&external_auth_module);
X+	&auth_external_module);
X 
X     ap_table_set( sc_rec->auth_extpath, keyword, path );
X 
X@@ -323,7 +323,7 @@
X     extauth_server_config_rec *sc_rec;
X 
X     sc_rec= ap_get_module_config( cmd->server->module_config,
X-	&external_auth_module);
X+	&auth_external_module);
X 
X     ap_table_set( sc_rec->group_extpath, keyword, path );
X 
X@@ -343,7 +343,7 @@
X 	extauth_server_config_rec *sc_rec;
X 
X 	sc_rec= ap_get_module_config( cmd->server->module_config,
X-	    &external_auth_module);
X+	    &auth_external_module);
X 
X 	ap_table_set( sc_rec->auth_extmethod, keyword, method );
X 	
X@@ -361,7 +361,7 @@
X 	extauth_server_config_rec *sc_rec;
X 
X 	sc_rec= ap_get_module_config( cmd->server->module_config,
X-	    &external_auth_module);
X+	    &auth_external_module);
X 
X 	ap_table_set( sc_rec->group_extmethod, keyword, method );
X 	
X@@ -565,11 +565,11 @@
X {
X     extauth_dir_config_rec *dir_config_rec=
X 	(extauth_dir_config_rec *)ap_get_module_config(r->per_dir_config,
X-	&external_auth_module);
X+	&auth_external_module);
X 
X     extauth_server_config_rec *server_config_rec=
X 	(extauth_server_config_rec *)ap_get_module_config(r->server->module_config,
X-	&external_auth_module);
X+	&auth_external_module);
X 
X     const char *sent_pw;
X     int res, code= 1;
X@@ -679,11 +679,11 @@
X {
X     extauth_dir_config_rec *dir_config_rec=
X 	(extauth_dir_config_rec *)ap_get_module_config(r->per_dir_config,
X-	&external_auth_module);
X+	&auth_external_module);
X 
X     extauth_server_config_rec *server_config_rec=
X 	(extauth_server_config_rec *)ap_get_module_config(r->server->module_config,
X-	&external_auth_module);
X+	&auth_external_module);
X 
X     conn_rec *c= r->connection;
X 
X@@ -787,7 +787,7 @@
X     return AUTH_REQUIRED;
X }
X 
X-module external_auth_module= {
X+module auth_external_module= {
X     STANDARD_MODULE_STUFF,
X     NULL,			 /* initializer */
X     create_extauth_dir_config,	 /* dir config creater */
END-of-mod_auth_external/files/patch-mod_auth_external.c
exit

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: will 
State-Changed-When: Sat May 19 20:15:50 PDT 2001 
State-Changed-Why:  
Committed, thanks. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=27321 
>Unformatted:
