summaryrefslogtreecommitdiff
path: root/www/ap-auth-cookie
diff options
context:
space:
mode:
authortv <tv@pkgsrc.org>1998-06-04 20:41:08 +0000
committertv <tv@pkgsrc.org>1998-06-04 20:41:08 +0000
commit616694bbacbdb0845c643ce3b88f4795785ff177 (patch)
treea4a46fc4faaeacea392b721d42f9c0f26daf7cc3 /www/ap-auth-cookie
parent3255847d19ffd1a7bcb89a4c0721c19722b37e7d (diff)
downloadpkgsrc-616694bbacbdb0845c643ce3b88f4795785ff177.tar.gz
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.
Diffstat (limited to 'www/ap-auth-cookie')
-rw-r--r--www/ap-auth-cookie/Makefile32
-rw-r--r--www/ap-auth-cookie/files/md51
-rw-r--r--www/ap-auth-cookie/pkg/COMMENT1
-rw-r--r--www/ap-auth-cookie/pkg/DESCR5
-rw-r--r--www/ap-auth-cookie/pkg/MESSAGE11
-rw-r--r--www/ap-auth-cookie/pkg/PLIST2
6 files changed, 52 insertions, 0 deletions
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