Skip site navigation (1)Skip section navigation (2)
Date:      Mon,  2 Apr 2001 23:33:06 +0200 (CEST)
From:      Anders Nordby <anders@fix.no>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/26301: New port: www/mod_auth_pam
Message-ID:  <20010402213306.C23F33CCE@totem.fix.no>

next in thread | raw e-mail | index | archive | help

>Number:         26301
>Category:       ports
>Synopsis:       New port: www/mod_auth_pam
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 02 14:40:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Anders Nordby
>Release:        FreeBSD 4.2-STABLE i386
>Organization:
Fluxpod Information eXchange
>Environment:

Tested in:                                                                      

4.2-STABLE from January                                                         

FreeBSD current.localnet 5.0-20010116-CURRENT FreeBSD 5.0-20010116-CURRENT #0:  
Tue Jan 16 16:30:03 GMT 2001
root@usw2.freebsd.org:/usr/src/sys/compile/GENERIC  i386

>Description:

New port of mod_auth_pam, a PAM authentication module for Apache.

>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_pam
#	mod_auth_pam/Makefile
#	mod_auth_pam/distinfo
#	mod_auth_pam/pkg-comment
#	mod_auth_pam/pkg-descr
#	mod_auth_pam/pkg-message
#	mod_auth_pam/pkg-plist
#	mod_auth_pam/files
#	mod_auth_pam/files/patch-mod_auth_pam.c
#
echo c - mod_auth_pam
mkdir -p mod_auth_pam > /dev/null 2>&1
echo x - mod_auth_pam/Makefile
sed 's/^X//' >mod_auth_pam/Makefile << 'END-of-mod_auth_pam/Makefile'
X# New ports collection makefile for:	mod_auth_pam
X# Date created:			2 April 2001
X# Whom:				Anders Nordby <anders@fix.no>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	mod_auth_pam
XPORTVERSION=	1.0a
XCATEGORIES=	www
XMASTER_SITES=	http://pam.sourceforge.net/mod_auth_pam/dist/ \
X		http://www.freenix.no/~anders/
X
XMAINTAINER=	anders@fix.no
X
XBUILD_DEPENDS=	${APXS}:${PORTSDIR}/www/apache13
XRUN_DEPENDS=	${APXS}:${PORTSDIR}/www/apache13
X
XAPXS?=		${LOCALBASE}/sbin/apxs
X
Xdo-build:
X	@cd ${WRKSRC} && \
X	${APXS} -c -lpam mod_auth_pam.c
X
Xdo-install:
X	${APXS} -i -A -n auth_pam ${WRKSRC}/mod_auth_pam.so
X.if !defined(NOPORTDOCS)
X	${MKDIR} ${PREFIX}/share/doc/mod_auth_pam
X	${MKDIR} ${PREFIX}/share/doc/mod_auth_pam/samples
X	${INSTALL_DATA} ${WRKSRC}/doc/configure.html ${PREFIX}/share/doc/mod_auth_pam/
X	${INSTALL_DATA} ${WRKSRC}/doc/faq.html ${PREFIX}/share/doc/mod_auth_pam/
X	${INSTALL_DATA} ${WRKSRC}/samples/dot-htaccess ${PREFIX}/share/doc/mod_auth_pam/samples/
X	${INSTALL_DATA} ${WRKSRC}/samples/httpd ${PREFIX}/share/doc/mod_auth_pam/samples/
X.endif
X	${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.mk>
END-of-mod_auth_pam/Makefile
echo x - mod_auth_pam/distinfo
sed 's/^X//' >mod_auth_pam/distinfo << 'END-of-mod_auth_pam/distinfo'
XMD5 (mod_auth_pam-1.0a.tar.gz) = 9e971e974de3bef0587f114694d04e47
END-of-mod_auth_pam/distinfo
echo x - mod_auth_pam/pkg-comment
sed 's/^X//' >mod_auth_pam/pkg-comment << 'END-of-mod_auth_pam/pkg-comment'
XAllows users to use PAM modules for user authentication
END-of-mod_auth_pam/pkg-comment
echo x - mod_auth_pam/pkg-descr
sed 's/^X//' >mod_auth_pam/pkg-descr << 'END-of-mod_auth_pam/pkg-descr'
XThe PAM authentication module implements Basic authentication on top of the
XPluggable Authentication Module library. Thereby it supports whatever
Xauthentication method your PAM subsystem has specific support installed &
Xconfigured for.
X
XWWW: http://pam.sourceforge.net/mod_auth_pam/
X
X- Anders Nordby <anders@fix.no>
END-of-mod_auth_pam/pkg-descr
echo x - mod_auth_pam/pkg-message
sed 's/^X//' >mod_auth_pam/pkg-message << 'END-of-mod_auth_pam/pkg-message'
X************************************************************
XYou've installed mod_auth_pam, a PAM authentication module
Xfor Apache.
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_pam for information on how to
Xto configure it 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_pam/pkg-message
echo x - mod_auth_pam/pkg-plist
sed 's/^X//' >mod_auth_pam/pkg-plist << 'END-of-mod_auth_pam/pkg-plist'
Xlibexec/apache/mod_auth_pam.so
X@exec %D/sbin/apxs -e -A -n auth_pam %D/%F
X@unexec %D/sbin/apxs -e -A -n auth_pam %D/%F
X%%PORTDOCS%%share/doc/mod_auth_pam/configure.html
X%%PORTDOCS%%share/doc/mod_auth_pam/faq.html
X%%PORTDOCS%%share/doc/mod_auth_pam/samples/dot-htaccess
X%%PORTDOCS%%share/doc/mod_auth_pam/samples/httpd
X%%PORTDOCS%%@dirrm share/doc/mod_auth_pam/samples
X%%PORTDOCS%%@dirrm share/doc/mod_auth_pam
END-of-mod_auth_pam/pkg-plist
echo c - mod_auth_pam/files
mkdir -p mod_auth_pam/files > /dev/null 2>&1
echo x - mod_auth_pam/files/patch-mod_auth_pam.c
sed 's/^X//' >mod_auth_pam/files/patch-mod_auth_pam.c << 'END-of-mod_auth_pam/files/patch-mod_auth_pam.c'
X--- mod_auth_pam.c.orig	Sun Feb 13 23:16:57 2000
X+++ mod_auth_pam.c	Mon Apr  2 22:20:44 2001
X@@ -113,7 +113,7 @@
X #define PAM_STRE_NEEDS_PAMH 1
X #define VERSION "1.0a"
X 
X-module pam_auth_module;
X+module auth_pam_module;
X 
X static const char
X *pam_servicename = "httpd",
X@@ -362,7 +362,7 @@
X   /* mod_auth_pam specific */
X   auth_pam_userinfo userinfo = { NULL, NULL };
X   auth_pam_dir_config *conf = (auth_pam_dir_config*)
X-    ap_get_module_config(r->per_dir_config, &pam_auth_module);
X+    ap_get_module_config(r->per_dir_config, &auth_pam_module);
X   /* PAM specific  */
X   struct pam_conv conv_info = { &auth_pam_talker, (void*)&userinfo};
X   pam_handle_t *pamh  = NULL;
X@@ -442,7 +442,7 @@
X   char method_restricted = 0, *line = 0, *word = 0;
X   table *groups = 0;
X   auth_pam_dir_config *conf = (auth_pam_dir_config*)
X-    ap_get_module_config(r->per_dir_config, &pam_auth_module);
X+    ap_get_module_config(r->per_dir_config, &auth_pam_module);
X 
X   /* check for allowed users/group */
X   const array_header *reqs_arr = ap_requires (r);
X@@ -505,7 +505,7 @@
X   return AUTH_REQUIRED;
X }
X 
X-module pam_auth_module = {
X+module auth_pam_module = {
X   STANDARD_MODULE_STUFF,
X   auth_pam_init,                        /* initializer */
X   create_auth_pam_dir_config,  /* dir config creater */
END-of-mod_auth_pam/files/patch-mod_auth_pam.c
exit

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010402213306.C23F33CCE>