diff options
author | will <will@FreeBSD.org> | 2001-04-07 12:25:18 +0800 |
---|---|---|
committer | will <will@FreeBSD.org> | 2001-04-07 12:25:18 +0800 |
commit | 06915f6ac3351337ecb7bff61b3c06fc73f9ad72 (patch) | |
tree | 77146a07160ee1e87d56c3b08b571712ad6ecae9 /www/mod_auth_pam | |
parent | dc0d18f60f016f77cbbb5118fd023c075461ce3f (diff) | |
download | freebsd-ports-gnome-06915f6ac3351337ecb7bff61b3c06fc73f9ad72.tar.gz freebsd-ports-gnome-06915f6ac3351337ecb7bff61b3c06fc73f9ad72.tar.zst freebsd-ports-gnome-06915f6ac3351337ecb7bff61b3c06fc73f9ad72.zip |
Add mod_auth_pam 1.0a, an apache module which allows users to use PAM
modules for user authentication.
PR: 26301
Submitted by: Anders Nordby <anders@fix.no>
Diffstat (limited to 'www/mod_auth_pam')
-rw-r--r-- | www/mod_auth_pam/Makefile | 37 | ||||
-rw-r--r-- | www/mod_auth_pam/distinfo | 1 | ||||
-rw-r--r-- | www/mod_auth_pam/files/patch-mod_auth_pam.c | 38 | ||||
-rw-r--r-- | www/mod_auth_pam/pkg-comment | 1 | ||||
-rw-r--r-- | www/mod_auth_pam/pkg-descr | 8 | ||||
-rw-r--r-- | www/mod_auth_pam/pkg-message | 15 | ||||
-rw-r--r-- | www/mod_auth_pam/pkg-plist | 9 |
7 files changed, 109 insertions, 0 deletions
diff --git a/www/mod_auth_pam/Makefile b/www/mod_auth_pam/Makefile new file mode 100644 index 000000000000..25cc2e5dac01 --- /dev/null +++ b/www/mod_auth_pam/Makefile @@ -0,0 +1,37 @@ +# New ports collection makefile for: mod_auth_pam +# Date created: 2 April 2001 +# Whom: Anders Nordby <anders@fix.no> +# +# $FreeBSD$ +# + +PORTNAME= mod_auth_pam +PORTVERSION= 1.0a +CATEGORIES= www +MASTER_SITES= http://pam.sourceforge.net/mod_auth_pam/dist/ \ + http://www.freenix.no/~anders/ + +MAINTAINER= anders@fix.no + +BUILD_DEPENDS= ${APXS}:${PORTSDIR}/www/apache13 +RUN_DEPENDS= ${APXS}:${PORTSDIR}/www/apache13 + +APXS?= ${LOCALBASE}/sbin/apxs + +do-build: + @cd ${WRKSRC} && \ + ${APXS} -c -lpam mod_auth_pam.c + +do-install: + ${APXS} -i -A -n auth_pam ${WRKSRC}/mod_auth_pam.so +.if !defined(NOPORTDOCS) + ${MKDIR} ${PREFIX}/share/doc/mod_auth_pam + ${MKDIR} ${PREFIX}/share/doc/mod_auth_pam/samples + ${INSTALL_DATA} ${WRKSRC}/doc/configure.html ${PREFIX}/share/doc/mod_auth_pam/ + ${INSTALL_DATA} ${WRKSRC}/doc/faq.html ${PREFIX}/share/doc/mod_auth_pam/ + ${INSTALL_DATA} ${WRKSRC}/samples/dot-htaccess ${PREFIX}/share/doc/mod_auth_pam/samples/ + ${INSTALL_DATA} ${WRKSRC}/samples/httpd ${PREFIX}/share/doc/mod_auth_pam/samples/ +.endif + ${CAT} ${PKGMESSAGE} + +.include <bsd.port.mk> diff --git a/www/mod_auth_pam/distinfo b/www/mod_auth_pam/distinfo new file mode 100644 index 000000000000..9d859646f385 --- /dev/null +++ b/www/mod_auth_pam/distinfo @@ -0,0 +1 @@ +MD5 (mod_auth_pam-1.0a.tar.gz) = 9e971e974de3bef0587f114694d04e47 diff --git a/www/mod_auth_pam/files/patch-mod_auth_pam.c b/www/mod_auth_pam/files/patch-mod_auth_pam.c new file mode 100644 index 000000000000..c0f380164492 --- /dev/null +++ b/www/mod_auth_pam/files/patch-mod_auth_pam.c @@ -0,0 +1,38 @@ +--- mod_auth_pam.c.orig Sun Feb 13 23:16:57 2000 ++++ mod_auth_pam.c Mon Apr 2 22:20:44 2001 +@@ -113,7 +113,7 @@ + #define PAM_STRE_NEEDS_PAMH 1 + #define VERSION "1.0a" + +-module pam_auth_module; ++module auth_pam_module; + + static const char + *pam_servicename = "httpd", +@@ -362,7 +362,7 @@ + /* mod_auth_pam specific */ + auth_pam_userinfo userinfo = { NULL, NULL }; + auth_pam_dir_config *conf = (auth_pam_dir_config*) +- ap_get_module_config(r->per_dir_config, &pam_auth_module); ++ ap_get_module_config(r->per_dir_config, &auth_pam_module); + /* PAM specific */ + struct pam_conv conv_info = { &auth_pam_talker, (void*)&userinfo}; + pam_handle_t *pamh = NULL; +@@ -442,7 +442,7 @@ + char method_restricted = 0, *line = 0, *word = 0; + table *groups = 0; + auth_pam_dir_config *conf = (auth_pam_dir_config*) +- ap_get_module_config(r->per_dir_config, &pam_auth_module); ++ ap_get_module_config(r->per_dir_config, &auth_pam_module); + + /* check for allowed users/group */ + const array_header *reqs_arr = ap_requires (r); +@@ -505,7 +505,7 @@ + return AUTH_REQUIRED; + } + +-module pam_auth_module = { ++module auth_pam_module = { + STANDARD_MODULE_STUFF, + auth_pam_init, /* initializer */ + create_auth_pam_dir_config, /* dir config creater */ diff --git a/www/mod_auth_pam/pkg-comment b/www/mod_auth_pam/pkg-comment new file mode 100644 index 000000000000..02168141c19f --- /dev/null +++ b/www/mod_auth_pam/pkg-comment @@ -0,0 +1 @@ +Allows users to use PAM modules for user authentication diff --git a/www/mod_auth_pam/pkg-descr b/www/mod_auth_pam/pkg-descr new file mode 100644 index 000000000000..825bf123fea9 --- /dev/null +++ b/www/mod_auth_pam/pkg-descr @@ -0,0 +1,8 @@ +The PAM authentication module implements Basic authentication on top of the +Pluggable Authentication Module library. Thereby it supports whatever +authentication method your PAM subsystem has specific support installed & +configured for. + +WWW: http://pam.sourceforge.net/mod_auth_pam/ + +- Anders Nordby <anders@fix.no> diff --git a/www/mod_auth_pam/pkg-message b/www/mod_auth_pam/pkg-message new file mode 100644 index 000000000000..90c2cacacd98 --- /dev/null +++ b/www/mod_auth_pam/pkg-message @@ -0,0 +1,15 @@ +************************************************************ +You've installed mod_auth_pam, a PAM authentication module +for Apache. + +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_pam for information on how to +to configure it 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_pam/pkg-plist b/www/mod_auth_pam/pkg-plist new file mode 100644 index 000000000000..f0f99a83561f --- /dev/null +++ b/www/mod_auth_pam/pkg-plist @@ -0,0 +1,9 @@ +libexec/apache/mod_auth_pam.so +@exec %D/sbin/apxs -e -A -n auth_pam %D/%F +@unexec %D/sbin/apxs -e -A -n auth_pam %D/%F +%%PORTDOCS%%share/doc/mod_auth_pam/configure.html +%%PORTDOCS%%share/doc/mod_auth_pam/faq.html +%%PORTDOCS%%share/doc/mod_auth_pam/samples/dot-htaccess +%%PORTDOCS%%share/doc/mod_auth_pam/samples/httpd +%%PORTDOCS%%@dirrm share/doc/mod_auth_pam/samples +%%PORTDOCS%%@dirrm share/doc/mod_auth_pam |