From f7b04737611525e4c8f2cdee6df02ee4a8079986 Mon Sep 17 00:00:00 2001 From: steve Date: Wed, 9 Jun 1999 01:43:06 +0000 Subject: Initial import of fcgi-devkit version 2.1. The FastCGI development kit. PR: 11699 Submitted by: Kelly Yancey --- www/fcgi/Makefile | 25 ++++++++ www/fcgi/distinfo | 1 + www/fcgi/files/patch-aa | 36 +++++++++++ www/fcgi/files/patch-ab | 103 ++++++++++++++++++++++++++++++ www/fcgi/pkg-comment | 1 + www/fcgi/pkg-descr | 23 +++++++ www/fcgi/pkg-plist | 163 ++++++++++++++++++++++++++++++++++++++++++++++++ 7 files changed, 352 insertions(+) create mode 100644 www/fcgi/Makefile create mode 100644 www/fcgi/distinfo create mode 100644 www/fcgi/files/patch-aa create mode 100644 www/fcgi/files/patch-ab create mode 100644 www/fcgi/pkg-comment create mode 100644 www/fcgi/pkg-descr create mode 100644 www/fcgi/pkg-plist diff --git a/www/fcgi/Makefile b/www/fcgi/Makefile new file mode 100644 index 0000000..2ed1394e --- /dev/null +++ b/www/fcgi/Makefile @@ -0,0 +1,25 @@ +# New ports collection makefile for: fcgi-devkit +# Version required: 2.1 +# Date created: 13 May 1999 +# Whom: kbyanc +# +# $Id$ +# + +DISTNAME= fcgi-devkit-2.1 +CATEGORIES= www +MASTER_SITES= http://fastcgi.idle.com/dist/ + +MAINTAINER= kbyanc@alcnet.com + +MAN1= cgi-fcgi.1 +MAN3= FCGI_Accept.3 FCGI_Finish.3 FCGI_SetExitStatus.3 FCGI_StartFilterData.3 + +USE_PERL5= yes +GNU_CONFIGURE= yes + +post-install: + @rm -f ${PREFIX}/fcgi-devkit/libfcgi/os_unix.c.orig \ + ${PREFIX}/fcgi-devkit/Makefile.in.orig + +.include diff --git a/www/fcgi/distinfo b/www/fcgi/distinfo new file mode 100644 index 0000000..87af0d1 --- /dev/null +++ b/www/fcgi/distinfo @@ -0,0 +1 @@ +MD5 (fcgi-devkit-2.1.tar.gz) = c397edce40036372d230193223549f98 diff --git a/www/fcgi/files/patch-aa b/www/fcgi/files/patch-aa new file mode 100644 index 0000000..d994c74 --- /dev/null +++ b/www/fcgi/files/patch-aa @@ -0,0 +1,36 @@ +*** Makefile.in.orig Thu May 13 17:22:24 1999 +--- Makefile.in Thu May 13 17:31:56 1999 +*************** +*** 14,20 **** + prefix = @prefix@ + common_prefix = @common_prefix@ + CVS_TAG = @CVS_TAG@ +! EXPORT_DIR = $(prefix)/build + PROTO_DIR = ../proto + BIN_DIR = $(exec_prefix)/bin + LIB_DIR = $(prefix)/lib +--- 14,20 ---- + prefix = @prefix@ + common_prefix = @common_prefix@ + CVS_TAG = @CVS_TAG@ +! EXPORT_DIR = $(prefix)/fcgi-devkit + PROTO_DIR = ../proto + BIN_DIR = $(exec_prefix)/bin + LIB_DIR = $(prefix)/lib +*************** +*** 41,47 **** + (cd cgi-fcgi; make all) + (cd examples; make all) + +! export: + @ for i in $(TARGET_DIRS); \ + do \ + if test ! -d $$i; then \ +--- 41,47 ---- + (cd cgi-fcgi; make all) + (cd examples; make all) + +! install: all + @ for i in $(TARGET_DIRS); \ + do \ + if test ! -d $$i; then \ diff --git a/www/fcgi/files/patch-ab b/www/fcgi/files/patch-ab new file mode 100644 index 0000000..6fc891d --- /dev/null +++ b/www/fcgi/files/patch-ab @@ -0,0 +1,103 @@ +*** libfcgi/os_unix.c.orig Sat Feb 6 00:08:33 1999 +--- libfcgi/os_unix.c Thu May 13 10:32:00 1999 +*************** +*** 412,420 **** + */ + int OS_Read(int fd, char * buf, size_t len) + { +! return(read(fd, buf, len)); + } +! + /* + *-------------------------------------------------------------- + * +--- 412,424 ---- + */ + int OS_Read(int fd, char * buf, size_t len) + { +! int result; +! do { +! result = read(fd, buf, len); +! } while((result == -1) && (errno == EINTR)); +! return(result); + } +! + /* + *-------------------------------------------------------------- + * +*************** +*** 433,442 **** + */ + int OS_Write(int fd, char * buf, size_t len) + { +! return(write(fd, buf, len)); + } + +- + /* + *---------------------------------------------------------------------- + * +--- 437,449 ---- + */ + int OS_Write(int fd, char * buf, size_t len) + { +! int result; +! do { +! result = write(fd, buf, len); +! } while((result == -1) && (errno == EINTR)); +! return(result); + } + + /* + *---------------------------------------------------------------------- + * +*************** +*** 761,768 **** + * any work to do. + */ + if(numRdPosted == 0 && numWrPosted == 0) { +! selectStatus = select((maxFd+1), &readFdSetCpy, &writeFdSetCpy, +! NULL, tmo); + if(selectStatus < 0) { + exit(errno); + } +--- 768,777 ---- + * any work to do. + */ + if(numRdPosted == 0 && numWrPosted == 0) { +! do { +! selectStatus = select((maxFd+1), &readFdSetCpy, &writeFdSetCpy, +! NULL, tmo); +! } while ((selectStatus == -1) && (errno == EINTR)); + if(selectStatus < 0) { + exit(errno); + } +*************** +*** 1020,1030 **** + { + struct timeval tval = { READABLE_UNIX_FD_DROP_DEAD_TIMEVAL }; + fd_set read_fds; + + FD_ZERO(&read_fds); + FD_SET(fd, &read_fds); + +! return select(fd + 1, &read_fds, NULL, NULL, &tval) >= 0 && FD_ISSET(fd, &read_fds); + } + + /* +--- 1029,1043 ---- + { + struct timeval tval = { READABLE_UNIX_FD_DROP_DEAD_TIMEVAL }; + fd_set read_fds; ++ int result; + + FD_ZERO(&read_fds); + FD_SET(fd, &read_fds); + +! do { +! result = select(fd + 1, &read_fds, NULL, NULL, &tval); +! } while((result == -1) && (errno == EINTR)); +! return result >= 0 && FD_ISSET(fd, &read_fds); + } + + /* diff --git a/www/fcgi/pkg-comment b/www/fcgi/pkg-comment new file mode 100644 index 0000000..3a0d170 --- /dev/null +++ b/www/fcgi/pkg-comment @@ -0,0 +1 @@ +FastCGI Development Kit. diff --git a/www/fcgi/pkg-descr b/www/fcgi/pkg-descr new file mode 100644 index 0000000..6a96843 --- /dev/null +++ b/www/fcgi/pkg-descr @@ -0,0 +1,23 @@ +FastCGI Development Kit. + +FastCGI is a fast, open, and secure Web server interface that solves the +performance problems inherent in CGI, without introducing the overhead and +complexity of proprietary APIs (Application Programming Interfaces). + +FastCGI allows for many nice features such as persistent CGI applications +(eliminating process creation time per request) and being able run CGI +applications on hosts remote to the web server itself. + +Most web servers have optional or add-on support for FastCGI. Applications +which are developed with FastCGI behave as standard CGIs when invoked by web +servers without FastCGI support. In other words, if the server supports +FastCGI, then FastCGI applications get all the perks (mainly being *really* +fast); if the server does not support FastCGI, then FastCGI applications +behave exactly like standard CGIs. + +See http://www.fastcgi.com/ for more information about the benefits of +FastCGI, for developer documentation, and for the Apache FastCGI module (to +enable FastCGI support for the popular Apache web server). + +- Kelly +kbyanc@posi.net diff --git a/www/fcgi/pkg-plist b/www/fcgi/pkg-plist new file mode 100644 index 0000000..05b6278 --- /dev/null +++ b/www/fcgi/pkg-plist @@ -0,0 +1,163 @@ +bin/cgi-fcgi +fcgi-devkit/FastCGI.mak +fcgi-devkit/FastCGI.mak.in +fcgi-devkit/FastCGI.mb +fcgi-devkit/LICENSE.TERMS +fcgi-devkit/Makefile +fcgi-devkit/Makefile.in +fcgi-devkit/Perl/ChangeLog +fcgi-devkit/Perl/FCGI.PL +fcgi-devkit/Perl/FCGI.pm +fcgi-devkit/Perl/Makefile.PL +fcgi-devkit/Perl/README +fcgi-devkit/Perl/configure +fcgi-devkit/Perl/configure.in +fcgi-devkit/Perl/configure.readme +fcgi-devkit/Perl/echo.PL +fcgi-devkit/Perl/typemap +fcgi-devkit/README +fcgi-devkit/README_NT.txt +fcgi-devkit/acconfig.h +fcgi-devkit/build.bat +fcgi-devkit/build_no_shell.bat +fcgi-devkit/cgi-fcgi/Makefile +fcgi-devkit/cgi-fcgi/Makefile.in +fcgi-devkit/cgi-fcgi/cgi-fcgi.c +fcgi-devkit/cgi-fcgi/cgi-fcgi.mak +fcgi-devkit/cgi-fcgi/cgi-fcgi.mak.in +fcgi-devkit/cgi-fcgi/cgi-fcgi.mdp +fcgi-devkit/cgi-fcgi/descrip.dfc +fcgi-devkit/configure +fcgi-devkit/configure.in +fcgi-devkit/dependencies.in +fcgi-devkit/descrip.dfc +fcgi-devkit/doc/FCGI_Accept.3 +fcgi-devkit/doc/FCGI_Finish.3 +fcgi-devkit/doc/FCGI_SetExitStatus.3 +fcgi-devkit/doc/FCGI_StartFilterData.3 +fcgi-devkit/doc/Makefile +fcgi-devkit/doc/cgi-fcgi.1 +fcgi-devkit/doc/fastcgi-prog-guide/ap_guida.htm +fcgi-devkit/doc/fastcgi-prog-guide/ap_guide.htm +fcgi-devkit/doc/fastcgi-prog-guide/apaman.htm +fcgi-devkit/doc/fastcgi-prog-guide/ch1inta1.gif +fcgi-devkit/doc/fastcgi-prog-guide/ch1intra.gif +fcgi-devkit/doc/fastcgi-prog-guide/ch1intro.htm +fcgi-devkit/doc/fastcgi-prog-guide/ch2c.htm +fcgi-devkit/doc/fastcgi-prog-guide/ch3perl.htm +fcgi-devkit/doc/fastcgi-prog-guide/ch4tcl.htm +fcgi-devkit/doc/fastcgi-prog-guide/cover.htm +fcgi-devkit/doc/fastcgi-prog-guide/covera.gif +fcgi-devkit/doc/fastcgi-whitepaper/Makefile +fcgi-devkit/doc/fastcgi-whitepaper/fastcgi.htm +fcgi-devkit/doc/fastcgi-whitepaper/img00001.gif +fcgi-devkit/doc/fastcgi-whitepaper/img00002.gif +fcgi-devkit/doc/fastcgi-whitepaper/img00003.gif +fcgi-devkit/doc/fcgi-devel-kit.htm +fcgi-devkit/doc/fcgi-java.htm +fcgi-devkit/doc/fcgi-perf.htm +fcgi-devkit/doc/fcgi-perl.htm +fcgi-devkit/doc/fcgi-spec.html +fcgi-devkit/doc/fcgi-tcl.htm +fcgi-devkit/doc/omi-logo.gif +fcgi-devkit/doc/www5-api-workshop.html +fcgi-devkit/examples/Makefile +fcgi-devkit/examples/Makefile.in +fcgi-devkit/examples/SampleStore/Images/cart-hd.gif +fcgi-devkit/examples/SampleStore/Images/main-hd.gif +fcgi-devkit/examples/SampleStore/Images/offer-hd.gif +fcgi-devkit/examples/SampleStore/Images/purch-hd.gif +fcgi-devkit/examples/SampleStore/Images/thank-hd.gif +fcgi-devkit/examples/SampleStore/Protected/RMSTitanic.html +fcgi-devkit/examples/SampleStore/Unprotected/Purchase.html +fcgi-devkit/examples/SampleStore/Unprotected/ThankYou.html +fcgi-devkit/examples/conf/om-httpd.config +fcgi-devkit/examples/echo-perl +fcgi-devkit/examples/echo-tcl +fcgi-devkit/examples/echo.c +fcgi-devkit/examples/echo.cgi +fcgi-devkit/examples/echo.html +fcgi-devkit/examples/echo.mak +fcgi-devkit/examples/echo2.c +fcgi-devkit/examples/echo2.html +fcgi-devkit/examples/echo2.mak +fcgi-devkit/examples/echo2_nt.fcgi +fcgi-devkit/examples/echo_nt.fcgi +fcgi-devkit/examples/log-dump.c +fcgi-devkit/examples/sample-store.c +fcgi-devkit/examples/tclHash.c +fcgi-devkit/examples/tiny-authorizer.c +fcgi-devkit/examples/tiny-cgi.c +fcgi-devkit/examples/tiny-fcgi.c +fcgi-devkit/examples/tiny-fcgi.cgi +fcgi-devkit/examples/tiny-fcgi.mak +fcgi-devkit/examples/tiny-fcgi2.c +fcgi-devkit/examples/tiny-fcgi2.cgi +fcgi-devkit/examples/tiny-fcgi2.mak +fcgi-devkit/examples/tiny-fcgi2_nt.fcgi +fcgi-devkit/examples/tiny-fcgi_nt.fcgi +fcgi-devkit/examples/tiny-perl-fcgi +fcgi-devkit/examples/tiny-tcl-fcgi +fcgi-devkit/images/aplib-hd.gif +fcgi-devkit/images/divider.gif +fcgi-devkit/images/fcgi-hd.gif +fcgi-devkit/images/mail-hd.gif +fcgi-devkit/images/navbar.gif +fcgi-devkit/images/serv-hd.gif +fcgi-devkit/images/words-hd.gif +fcgi-devkit/include/fastcgi.h +fcgi-devkit/include/fcgi_config.h +fcgi-devkit/include/fcgi_config.h.in +fcgi-devkit/include/fcgi_config_x86.h +fcgi-devkit/include/fcgi_stdio.h +fcgi-devkit/include/fcgiapp.h +fcgi-devkit/include/fcgiappmisc.h +fcgi-devkit/include/fcgimisc.h +fcgi-devkit/include/fcgios.h +fcgi-devkit/include/tcl.h +fcgi-devkit/include/tclInt.h +fcgi-devkit/include/tclRegexp.h +fcgi-devkit/index.html +fcgi-devkit/install.sh +fcgi-devkit/java/FCGIGlobalDefs.java +fcgi-devkit/java/FCGIInputStream.java +fcgi-devkit/java/FCGIInterface.java +fcgi-devkit/java/FCGIMessage.java +fcgi-devkit/java/FCGIOutputStream.java +fcgi-devkit/java/FCGIRequest.java +fcgi-devkit/libfcgi/Makefile +fcgi-devkit/libfcgi/Makefile.in +fcgi-devkit/libfcgi/descrip.dfc +fcgi-devkit/libfcgi/fcgi_stdio.c +fcgi-devkit/libfcgi/fcgiapp.c +fcgi-devkit/libfcgi/libfcgi.mak +fcgi-devkit/libfcgi/libfcgi.mak.in +fcgi-devkit/libfcgi/os_unix.c +fcgi-devkit/libfcgi/os_win32.c +fcgi-devkit/libfcgi/strerror.c +fcgi-devkit/tcl/common/tclAppInit.c +fcgi-devkit/tcl/common/tclFCGI.c +fcgi-devkit/tcl/tcl7.4/Makefile.in +fcgi-devkit/tcl/tcl7.4/configure.in +fcgi-devkit/version.conf +fcgi-devkit/version.in +lib/libfcgi.a +@dirrm fcgi-devkit/Perl +@dirrm fcgi-devkit/cgi-fcgi +@dirrm fcgi-devkit/doc/fastcgi-prog-guide +@dirrm fcgi-devkit/doc/fastcgi-whitepaper +@dirrm fcgi-devkit/doc +@dirrm fcgi-devkit/examples/SampleStore/Images +@dirrm fcgi-devkit/examples/SampleStore/Protected +@dirrm fcgi-devkit/examples/SampleStore/Unprotected +@dirrm fcgi-devkit/examples/SampleStore +@dirrm fcgi-devkit/examples/conf +@dirrm fcgi-devkit/examples +@dirrm fcgi-devkit/images +@dirrm fcgi-devkit/include +@dirrm fcgi-devkit/java +@dirrm fcgi-devkit/libfcgi +@dirrm fcgi-devkit/tcl/common +@dirrm fcgi-devkit/tcl/tcl7.4 +@dirrm fcgi-devkit/tcl +@dirrm fcgi-devkit -- cgit v1.1