From ec5fa6bf1815d1df455589933f7a7f572333778f Mon Sep 17 00:00:00 2001 From: Will Andrews Date: Wed, 19 Dec 2001 03:12:05 +0000 Subject: [PATCH] Add mod_auth_pwcheck 1.0, an Apache module for user authentication via Cyrus pwcheck daemon. PR: 29667 Submitted by: Anton Voronin --- www/Makefile | 1 + www/mod_auth_pwcheck/Makefile | 41 ++++++++++++++++++++++++++++++++ www/mod_auth_pwcheck/distinfo | 1 + www/mod_auth_pwcheck/pkg-comment | 1 + www/mod_auth_pwcheck/pkg-descr | 10 ++++++++ www/mod_auth_pwcheck/pkg-message | 4 ++++ www/mod_auth_pwcheck/pkg-plist | 4 ++++ 7 files changed, 62 insertions(+) create mode 100644 www/mod_auth_pwcheck/Makefile create mode 100644 www/mod_auth_pwcheck/distinfo create mode 100644 www/mod_auth_pwcheck/pkg-comment create mode 100644 www/mod_auth_pwcheck/pkg-descr create mode 100644 www/mod_auth_pwcheck/pkg-message create mode 100644 www/mod_auth_pwcheck/pkg-plist diff --git a/www/Makefile b/www/Makefile index be943577be99..422da1eceb13 100644 --- a/www/Makefile +++ b/www/Makefile @@ -135,6 +135,7 @@ SUBDIR += mod_auth_mysql SUBDIR += mod_auth_pam SUBDIR += mod_auth_pgsql + SUBDIR += mod_auth_pwcheck SUBDIR += mod_backhand SUBDIR += mod_bf SUBDIR += mod_cgi_debug diff --git a/www/mod_auth_pwcheck/Makefile b/www/mod_auth_pwcheck/Makefile new file mode 100644 index 000000000000..17407b1635c8 --- /dev/null +++ b/www/mod_auth_pwcheck/Makefile @@ -0,0 +1,41 @@ +# New ports collection makefile for: mod_auth_pwcheck +# Date created: 2001/08/08 +# Whom: Anton Voronin +# +# $FreeBSD$ +# + +PORTNAME= mod_auth_pwcheck +PORTVERSION= 1.0 +CATEGORIES= www +MASTER_SITES= http://www.chelcom.ru/~anton/projects/files/ + +MAINTAINER= anton@urc.ac.ru + +BUILD_DEPENDS= ${APXS}:${PORTSDIR}/${AP_CATEGORY}/${AP_PORT} +RUN_DEPENDS= ${LOCALBASE}/sbin/${AP_TARGET}:${PORTSDIR}/${AP_CATEGORY}/${AP_PORT} \ + ${LOCALBASE}/sbin/pwcheck:${PORTSDIR}/security/cyrus-sasl + +WRKSRC= ${WRKDIR}/${PORTNAME} + +.include + +APXS?= ${LOCALBASE}/sbin/apxs +.if exists(${APXS}) +AP_MOD_SSL_SUFFIX!= ${APXS} -q CFLAGS | ${GREP} DMOD_SSL >/dev/null \ + || ${ECHO} -modssl +AP_CATEGORY!= ${APXS} -q CFLAGS | ${GREP} DRUSSIAN_APACHE >/dev/null \ + || ${ECHO} www +AP_TARGET!= ${APXS} -q TARGET +AP_LIBEXEC!= ${APXS} -q LIBEXECDIR | ${SED} 's@^${PREFIX}/@@' +.else +AP_CATEGORY= www +.endif + +AP_PORT= apache13${AP_MOD_SSL_SUFFIX} +AUTH_PWCHECK_DOCS= share/doc/apache/manual/mod/mod_auth_pwcheck +PLIST_SUB= AUTH_PWCHECK_DOCS="${AUTH_PWCHECK_DOCS}" \ + AP_LIBEXEC="${AP_LIBEXEC}" \ + APXS="${APXS}" + +.include diff --git a/www/mod_auth_pwcheck/distinfo b/www/mod_auth_pwcheck/distinfo new file mode 100644 index 000000000000..6bf3537c69f0 --- /dev/null +++ b/www/mod_auth_pwcheck/distinfo @@ -0,0 +1 @@ +MD5 (mod_auth_pwcheck-1.0.tar.gz) = 40c484b33d6f98beceb29a844339f1e8 diff --git a/www/mod_auth_pwcheck/pkg-comment b/www/mod_auth_pwcheck/pkg-comment new file mode 100644 index 000000000000..ee3879fd5da1 --- /dev/null +++ b/www/mod_auth_pwcheck/pkg-comment @@ -0,0 +1 @@ +Apache module for user authentication via Cyrus pwcheck daemon diff --git a/www/mod_auth_pwcheck/pkg-descr b/www/mod_auth_pwcheck/pkg-descr new file mode 100644 index 000000000000..e12005633fc6 --- /dev/null +++ b/www/mod_auth_pwcheck/pkg-descr @@ -0,0 +1,10 @@ +This module provides the way for user authentication using the pwcheck +daemon from the Cyrus SASL package. This lets the authentication to be done +via the system password file without root permissions. The module also +optionally provides access control via the system group file instead of any +special group file used by the standard mod_auth_* modules. + +Unless you wish to do access control using the system group file, then you +need any of the standard mod_auth_* modules to be in use. + +WWW: http://rnoc.urc.ac.ru/~anton/projects/mod_auth_pwcheck/ diff --git a/www/mod_auth_pwcheck/pkg-message b/www/mod_auth_pwcheck/pkg-message new file mode 100644 index 000000000000..759ae68d19b0 --- /dev/null +++ b/www/mod_auth_pwcheck/pkg-message @@ -0,0 +1,4 @@ +Please add the user under which your web server is running to the group +"cyrus" and ensure that directory /var/pwcheck is readable and searchable +by group. + diff --git a/www/mod_auth_pwcheck/pkg-plist b/www/mod_auth_pwcheck/pkg-plist new file mode 100644 index 000000000000..317dc86c9283 --- /dev/null +++ b/www/mod_auth_pwcheck/pkg-plist @@ -0,0 +1,4 @@ +%%AP_LIBEXEC%%/mod_auth_pwcheck.so +%%AUTH_PWCHECK_DOCS%%/index.html +@unexec %%APXS%% -e -A -n auth_pwcheck mod_auth_pwcheck.so +@dirrm %%AUTH_PWCHECK_DOCS%%