From 1470a41dfc609e589a107932a02f339570f287ec Mon Sep 17 00:00:00 2001
From: tv <tv>
Date: Sat, 3 Oct 1998 21:49:59 +0000
Subject: Add the FastCGI module for Apache, v 2.0.17.  This pkg version of the
 module compiles using apxs instead of compiling into the main binary.

---
 www/ap-fastcgi/Makefile    | 29 +++++++++++++++++++++++++++++
 www/ap-fastcgi/files/md5   |  3 +++
 www/ap-fastcgi/pkg/COMMENT |  1 +
 www/ap-fastcgi/pkg/DESCR   |  6 ++++++
 www/ap-fastcgi/pkg/MESSAGE | 12 ++++++++++++
 www/ap-fastcgi/pkg/PLIST   |  4 ++++
 6 files changed, 55 insertions(+)
 create mode 100644 www/ap-fastcgi/Makefile
 create mode 100644 www/ap-fastcgi/files/md5
 create mode 100644 www/ap-fastcgi/pkg/COMMENT
 create mode 100644 www/ap-fastcgi/pkg/DESCR
 create mode 100644 www/ap-fastcgi/pkg/MESSAGE
 create mode 100644 www/ap-fastcgi/pkg/PLIST

diff --git a/www/ap-fastcgi/Makefile b/www/ap-fastcgi/Makefile
new file mode 100644
index 00000000000..ca45d827c63
--- /dev/null
+++ b/www/ap-fastcgi/Makefile
@@ -0,0 +1,29 @@
+# $NetBSD: Makefile,v 1.1 1998/10/03 21:49:59 tv Exp $
+#
+
+DISTNAME=	mod_fastcgi-2.0.17
+PKGNAME=	ap-fastcgi-2.0.17
+CATEGORIES=	www
+MASTER_SITES=	http://www.fastcgi.com/
+
+MAINTAINER=	tv@netbsd.org
+HOMEPAGE=	http://www.fastcgi.com/
+
+#BUILD_DEPENDS+=	${PREFIX}/sbin/apxs:../../www/apache
+#RUN_DEPENDS+=	${PREFIX}/sbin/apxs:../../www/apache
+
+USE_PERL5=	yes	# for "apxs"
+
+do-build:
+	@cd ${WRKSRC} && ${PREFIX}/sbin/apxs -c -o mod_fastcgi.so \
+		mod_fastcgi.c fcgibuf.c fcgios.c fcgitcl.c
+
+do-install:
+	@cd ${WRKSRC} && ${PREFIX}/sbin/apxs -i mod_fastcgi.so
+	${INSTALL_DATA_DIR} ${PREFIX}/share/doc/mod_fastcgi
+	${INSTALL_DATA} ${WRKSRC}/docs/mod_fastcgi.html \
+		${PREFIX}/share/doc/mod_fastcgi/
+	${INSTALL_DATA} ${WRKSRC}/conf/httpd.conf \
+		${PREFIX}/share/doc/mod_fastcgi/httpd.conf.example
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/www/ap-fastcgi/files/md5 b/www/ap-fastcgi/files/md5
new file mode 100644
index 00000000000..4cad1fd9b7a
--- /dev/null
+++ b/www/ap-fastcgi/files/md5
@@ -0,0 +1,3 @@
+$NetBSD: md5,v 1.1 1998/10/03 21:49:59 tv Exp $
+
+MD5 (mod_fastcgi-2.0.17.tar.gz) = f7e76e48081292c7e047ec811449f4e4
diff --git a/www/ap-fastcgi/pkg/COMMENT b/www/ap-fastcgi/pkg/COMMENT
new file mode 100644
index 00000000000..96d497639bc
--- /dev/null
+++ b/www/ap-fastcgi/pkg/COMMENT
@@ -0,0 +1 @@
+A new, improved CGI-like interface module for Apache.
diff --git a/www/ap-fastcgi/pkg/DESCR b/www/ap-fastcgi/pkg/DESCR
new file mode 100644
index 00000000000..a5236bf1454
--- /dev/null
+++ b/www/ap-fastcgi/pkg/DESCR
@@ -0,0 +1,6 @@
+FastCGI provides a high-performance alternative to CGI for writing Web
+server applications in a variety of languages, including Perl, C, C++,
+Java, and Python.  FastCGI gets its speed by having keeping application
+processes running between requests.  So, unlike CGI, you do not have the
+overhead of starting up a new process and doing application initialization
+(e.g. connecting to a database) each time somebody requests a document.
diff --git a/www/ap-fastcgi/pkg/MESSAGE b/www/ap-fastcgi/pkg/MESSAGE
new file mode 100644
index 00000000000..4b047bfde7f
--- /dev/null
+++ b/www/ap-fastcgi/pkg/MESSAGE
@@ -0,0 +1,12 @@
+=============================================================================
+$NetBSD: MESSAGE,v 1.1 1998/10/03 21:49:59 tv Exp $
+
+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_fastcgi.so
+...
+AddModule mod_fastcgi.c
+
+=============================================================================
diff --git a/www/ap-fastcgi/pkg/PLIST b/www/ap-fastcgi/pkg/PLIST
new file mode 100644
index 00000000000..81f0a1e2ce2
--- /dev/null
+++ b/www/ap-fastcgi/pkg/PLIST
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1 1998/10/03 21:50:00 tv Exp $
+lib/apache/mod_fastcgi.so
+share/doc/mod_fastcgi/httpd.conf.example
+share/doc/mod_fastcgi/mod_fastcgi.html
-- 
cgit v1.2.3