From d972b1a661471ca2b04c3a5e88b796787cb955b0 Mon Sep 17 00:00:00 2001 From: tv Date: Thu, 4 Jun 1998 20:41:08 +0000 Subject: A cookie-based authentication mechanism for Apache, allowing Basic auth strings to be embedded in cookies. This pkg is intended also as a framework for creating other Apache module pkgs. --- www/ap-auth-cookie/Makefile | 32 ++++++++++++++++++++++++++++++++ www/ap-auth-cookie/files/md5 | 1 + www/ap-auth-cookie/pkg/COMMENT | 1 + www/ap-auth-cookie/pkg/DESCR | 5 +++++ www/ap-auth-cookie/pkg/MESSAGE | 11 +++++++++++ www/ap-auth-cookie/pkg/PLIST | 2 ++ 6 files changed, 52 insertions(+) create mode 100644 www/ap-auth-cookie/Makefile create mode 100644 www/ap-auth-cookie/files/md5 create mode 100644 www/ap-auth-cookie/pkg/COMMENT create mode 100644 www/ap-auth-cookie/pkg/DESCR create mode 100644 www/ap-auth-cookie/pkg/MESSAGE create mode 100644 www/ap-auth-cookie/pkg/PLIST (limited to 'www/ap-auth-cookie') diff --git a/www/ap-auth-cookie/Makefile b/www/ap-auth-cookie/Makefile new file mode 100644 index 00000000000..f27a9189cb9 --- /dev/null +++ b/www/ap-auth-cookie/Makefile @@ -0,0 +1,32 @@ +# $NetBSD: Makefile,v 1.1 1998/06/04 20:41:09 tv Exp $ +# + +# There are a few more mod_auth_cookie's out there doing slightly +# different things. This one pkg would be a good place to dump them all in +# one. + +DISTNAME= mod_auth_cookie.c +PKGNAME= ap-auth-cookie +WRKSRC= ${WRKDIR} +CATEGORIES= www +MASTER_SITES= ftp://ftp.kciLink.com/pub/ +EXTRACT_CMD= ${DO_NADA} +EXTRACT_SUFX= .gz + +MAINTAINER= tv@netbsd.org + +DEPENDS+= apache-1.3b7:../apache +USE_PERL5= yes # for "apxs" + +post-extract: + @(${ECHO} '#include "compat.h"'; ${GZIP_CMD} -dc ${DISTDIR}/${DISTFILES}) \ + >${WRKSRC}/${DISTNAME} + +do-build: + @cd ${WRKSRC} && ${PREFIX}/sbin/apxs -c mod_auth_cookie.c + +do-install: + @cd ${WRKSRC} && ${PREFIX}/sbin/apxs -i mod_auth_cookie.so + @${CAT} ${PKGDIR}/MESSAGE + +.include "../../mk/bsd.pkg.mk" diff --git a/www/ap-auth-cookie/files/md5 b/www/ap-auth-cookie/files/md5 new file mode 100644 index 00000000000..e404f0bc7e0 --- /dev/null +++ b/www/ap-auth-cookie/files/md5 @@ -0,0 +1 @@ +MD5 (mod_auth_cookie.c.gz) = b6582a0b949d7b76f8aec2d830b5811c diff --git a/www/ap-auth-cookie/pkg/COMMENT b/www/ap-auth-cookie/pkg/COMMENT new file mode 100644 index 00000000000..f63692345c0 --- /dev/null +++ b/www/ap-auth-cookie/pkg/COMMENT @@ -0,0 +1 @@ +Cookie-based authentication for Apache. diff --git a/www/ap-auth-cookie/pkg/DESCR b/www/ap-auth-cookie/pkg/DESCR new file mode 100644 index 00000000000..20adcba4dc4 --- /dev/null +++ b/www/ap-auth-cookie/pkg/DESCR @@ -0,0 +1,5 @@ +mod_auth_cookie.c allows a Basic authentication string to be encoded into +a cookie (using "Header set" from mod_headers). When a request comes in, +both the standard Basic auth field Authorization: and the specified cookie +are checked for auth info. + diff --git a/www/ap-auth-cookie/pkg/MESSAGE b/www/ap-auth-cookie/pkg/MESSAGE new file mode 100644 index 00000000000..69bb09de0fa --- /dev/null +++ b/www/ap-auth-cookie/pkg/MESSAGE @@ -0,0 +1,11 @@ +============================================================================= + +You will need to edit ${PREFIX}/http/conf/httpd.conf and add the following +lines to the Dynamic Shared Object section in order to use this module +(substitute ${PREFIX} with /usr/pkg or your prefix as appropriate): + +LoadModule ${PREFIX}/lib/apache/mod_auth_cookie.so +... +AddModule mod_auth_cookie.c + +============================================================================= diff --git a/www/ap-auth-cookie/pkg/PLIST b/www/ap-auth-cookie/pkg/PLIST new file mode 100644 index 00000000000..039087f5470 --- /dev/null +++ b/www/ap-auth-cookie/pkg/PLIST @@ -0,0 +1,2 @@ +@comment $NetBSD: PLIST,v 1.1 1998/06/04 20:41:09 tv Exp $ +lib/apache/mod_auth_cookie.so -- cgit v1.2.3